Open arunasank opened 8 years ago
Currently the object is in the form
[ { "key": <editor's name>, "color": <data-color>, "iduser": <editor's OSM id>, "values": [ { "x": <first-date-object-in-date-range>, "y": <objects-modified>, "change": <changesets-created> }, { "x": <second-date-object-in-date-range>, "y": <objects-modified>, "change": <changesets-created> }, .... .... { "x": <last-date-object-in-date-range>, "y": <objects-modified>, "change": <changesets-created> } ] } ... <more such objects> .......... ]
Besides renaming keys as suggested in https://github.com/mapbox/osm-edit-report/issues/31, each user object can include the following keys:
total-objects
total-changesets
The color key in each user object can be removed since this is done in the front end.
color
The array of user objects can be nested in a parent object containing the following keys:
active-users
active
Adding the above three consolidated keys will also be useful to resolve https://github.com/mapbox/osm-edit-report/issues/35.
cc @Rub21, @geohacker, @batpad.
Currently the object is in the form
Besides renaming keys as suggested in https://github.com/mapbox/osm-edit-report/issues/31, each user object can include the following keys:
total-objects
which contains the total number of objects modified by that user in the requested time range.total-changesets
which contains the total number of changesets created by that user in the requested time range.The
color
key in each user object can be removed since this is done in the front end.The array of user objects can be nested in a parent object containing the following keys:
total-objects
which contains the total number of objects modified by all users in the requested time range.total-changesets
which contains the total number of changesets created by all users in the requested time range.active-users
which is an array of names of all active users (or a keyactive
in each user object set to either true or false.)Adding the above three consolidated keys will also be useful to resolve https://github.com/mapbox/osm-edit-report/issues/35.
cc @Rub21, @geohacker, @batpad.