Analytics reporting jobs issues

Abierto
#62 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
java, sql
Área
data

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Java
Estrellas
13
Forks
33
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de killbill/killbill-analytics-plugin

Todos los issues de killbill/killbill-analytics-plugin

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.