Analytics reporting jobs issues

Aperta
#62 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
java, sql
Ambito
data

Direzione di ricerca

Start by tracing the report submission endpoint shown in the curl request and how it schedules refresh jobs for refresh_mrr_daily. Then inspect how notifications are inserted into analytics_notifications_history for AnalyticsService:reports-jobs; done means reports schedule correctly and updating a job does not create repeated notifications.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

The first issue seems to be that after we post a new report, nothing happens (this may be an issue with the curl, which i don't have but both Pierre and I ran it, and jobs were not scheduled.

The second issue is that after i updated the job, the notification was correctly created, but then code keeps inserting notifications:

CURL to submit the job:

curl -v \
     -X PUT \
     -u 'superadmin:$uper@dmin13' \
     -H 'X-Killbill-ApiKey:demoKey' \
     -H 'X-Killbill-ApiSecret:demo$3cr3t' \
     -H 'Content-Type: application/json' \
     -d '{"reportPrettyName": "MRR",
          "refreshProcedureName": "refresh_mrr_daily",
          "refreshFrequency": "DAILY"}' \
     "http://127.0.0.1:8080/plugins/killbill-analytics/reports/mrr_daily"
> select count(*) from analytics_notifications_history where queue_name = 'AnalyticsService:reports-jobs'\G
count(*): 238
1 row in set (0.03 sec)

The code inserted it 238 times (and the next one is in a few minutes)... all for the same storeproc refresh_mrr_daily.

Lingua principale
Java
Stelle
13
Fork
33
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di killbill/killbill-analytics-plugin

Tutte le issue di killbill/killbill-analytics-plugin

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.