Closed hmitsch closed 6 years ago
@sanacl can you please assign this to the correct person at Bitergia?
@hmitsch I'll be the proxy. We are currently working on it.
We still owe you guys an update about this. Work in progress. As soon as we get an ETA we'll let you know
Tested with latest release and it is fixed with that version. So, as soon as Bugzilla is finished (tomorrow morning the latest) we'll recover Reps using latest release.
@hmitsch ETA: Thursday 5PM CET
@hmitsch data looks much better now with our latest release
2017:
October:
November (12th to 25th):
We have a couple of more events on the dashboard, maybe due to the interpretation of some dates. This is under study.
I can confirm that now is working :-D
I see little differences on the data, this is something that needs to be fixed.
Original data source returns 11 event in December (until today): https://reps.mozilla.org/events/#/period/custom/end/2017-12-08/start/2017-12-01/
Dashboard returns the same number of events but some of them differ: https://mozilla5.biterg.io/goto/cd788e3b7629ed9af236e5131e7ac699
I miss on the dashboard:
Event that appears on the dashboard but not on the original data source:
Uhm maybe because they are missing the metrics after event. For the reps council call i have to remove it (we didn't do the meeting) so I didn't added them. So if is this the reason probably ignore them is the right solution because is an activity not yet finished.
@Mte90 thank you so much for helping on this!
@sanacl can you confirm @Mte90's assumption (events are missing metrics)?
How should we proceed with this?
In the meantime the council weekly call event mentioned was removed ;-)
Our development team is trying to isolate the bug. I'll keep you updated. This ticket is high priority.
@hmitsch @Mte90 after reviewing the issue, it seems that the ReMo API is now returning the events from the newest (page=0) to the oldest (page=334): https://reps.mozilla.org/api/remo/v1/events
In our backend, the logic is the reverse, so the incremental update is broken. Our guest is that the APi has changed the behavior about the ordering of the events. We need to get the oldest first in order to have a robust incremental update of the data source.
Could you check if the API was changed? Could you check if it is possible to change the order in which the events are returned, so page=0 are the oldest ones?
Maybe is it already available? The Django REST Framework has support for this kind of stuff: http://www.django-rest-framework.org/api-guide/filtering/#filtering-against-query-parameters
Thanks and sorry about the delay for attending this ticket.
Could you check if the API was changed? Could you check if it is possible to change the order in which the events are returned, so page=0 are the oldest ones?
Yes it did, see https://github.com/mozilla/remo/pull/1407
Maybe we can add a parameter to define the order as ASC or DESC to avoid any issue
Yes, if you add a parameter to change the order, this fix for the ReMo backend is pretty easy (just to pass this option). And it is the only way to have a robust incremental collection of the data. Guys, could you confirm that this feature can be added? If so, we will wait until it is ready and then, we will modify the backend and deploy it.
Thanks!
@Mte90 @MichaelKohler any news? Thanks!
@Mte90 @MichaelKohler any news? Thanks!
We discussed and we need to find a slot of time to fix that issue on the portal.
@Mte90 thank you very much for the update. Is there any issue we can track to check when it has been fixed?
Cheers!
I'd say this one here? ;)
Ok @Mte90 . I was not sure if you have also another ticket in your portal development issue system. So let's focus in this one :)
Cheers!
Hi @Mte90 @MichaelKohler, this ping is just to make sure we are on the same page and the parameter has not been applied yet. Thanks!
I made a patch for that on remo: https://github.com/mozilla/remo/pull/1440
Waiting for tests and approval :-D
Great. Thanks for let us know @Mte90 Crossing fingers to get those tests passed :nerd_face:
The Pr is on production! With https://reps.mozilla.org/api/remo/v1/events/?format=json&orderby=ASC you can get the events by the most oldest if you change on DESC you will get the most recent :-)
@hmitsch @acs We've been doing some tests. Events can be collected from the older to the newer. Nevertheless, the other categories (activities and users) doesn't seem to be collected from the older to the newer using the parameter orderby=ASC. Is it a problem? I guess no, but just to make sure we don't need anything else from our Mozilla folks.
@hmitsch @acs We've been doing some tests. Events can be collected from the older to the newer. Nevertheless, the other categories (activities and users) doesn't seem to be collected from the older to the newer using the parameter orderby=ASC. Is it a problem? I guess no, but just to make sure we don't need anything else from our Mozilla folks.
It is a problem because we are also collecting activities following the same approach than events. So we need the same feature for activities at least.
As far as I know the behaviour of the activities hasn't changed. :/ I'm on my phone right now, so I can't test that well. Is it broken as well using the same URL as you have been before?
I added the code only for events because the ticket was referring on them. I think that we can add the same code also for the activities and users without problems. I will see today if I can do a PR :-)
@Mte90 that would be great. Sorry for not giving you all the information in the first place.
Another PR made waiting for the approval and push to production, https://github.com/mozilla/remo/pull/1445
Reps portal was deployed to production end of last week. Sorry for getting back so late.
@hmitsch the remo backend has been fixed to work with the new API. The fix is waiting for review at: https://github.com/chaoss/grimoirelab-perceval-mozilla/pull/30. Once it is accepted, it will be included in the next release of the platform, which will be deployed to your dashboard and then, the remo data will be another time active.
Probably all of this should occur during the next week but we have two bank holidays next week, so probably the release will appear in two weeks. And after that, it needs to be deployed.
@sanacl could provide you a more accurate timeline if needed.
Code is merged upstream, waiting for the next GrimoireLab release.
New version deployed. Waiting for the analysis to be finished.
Reps Events in October 2017:
Reps Activities:
This is a fail of the Reps REST API or not?
@Mte90 don't think so. We're still debugging it.
This is finally fixed.
Reps Events in October 2017:
Reps Activities:
Reps portal
Community Analytics
Additional information
According to an analysis by @kelimuttu, @mte90 and @MichaelKohler: