osm-fr / osmose-frontend

Part of osmose that shows results on the website http://osmose.openstreetmap.fr
GNU General Public License v3.0
41 stars 38 forks source link

Export metrics for dashboards #381

Closed brawer closed 1 year ago

brawer commented 2 years ago

To build dashboards for mapathons, could Osmose export a CSV file with the following columns?

In a second step, could the Osmose frontend display a dashboard that graphically plots how the number of open and fixed issues evolved over time, restricted by issue class and region? Such a dashboard would be hugely motivating when organizing a mapathon event because volunteers can see how the collective effort has improved things day by day.

frodrigo commented 2 years ago

The stats are not part of the API yet. But it is planned to move from the web frontend to the API (help welcome).

Meanwhile you can have this data from this URL http://osmose.openstreetmap.fr/en/issues/open.json?country=france_aquitaine_gironde&item=xxxx&limit=0 Since it is not in the API it will subject to change in the future.

lbuchli commented 1 year ago

I'm also interested in this extension of the API, as I want to create a dashboard similar to how a hackathon might want it: The switzerland Project of the Month. Additionally, I need a way to have statistics of users that fixed issues. This would probably also be useful in a hackathon kind of situation. Both features would probably be parameterized by start and end date.

I will try to develop this and make a pull request if this is something you'd be willing to merge.

frodrigo commented 1 year ago

Note, there is important underwood changes not yet merged in master on https://github.com/frodrigo/osmose-frontend/ Merge will be happen soon (aka when is ready), this code is already live in beta.osmose.openstreetmap.fr

It will be better to explain more is detail what you want to change when you have an idea.

Note about stats on closed issues by contributors, data is not stored, and the plan is to store even less, or no, data about the users.

lbuchli commented 1 year ago

Hm ok, then it probably doesn't fit, because statistics about users is the primary goal of Project of the Month. Thanks for your feedback!

frodrigo commented 1 year ago

cc @PanierAvide FYI