hotosm / galaxy-api

Backend to fetch data from Underpass
https://galaxy-api.hotosm.org/latest/redoc
GNU Affero General Public License v3.0
14 stars 5 forks source link

Feature : Add status filter on tasking manager validation stats #300

Closed kshitijrajsharma closed 2 years ago

kshitijrajsharma commented 2 years ago

Feature : Add status filter on tasking manager validation stats Project endpoint should be filtering by project status.

Originally posted by @kshitijrajsharma in https://github.com/hotosm/galaxy-api/issues/271#issuecomment-1210142049

kshitijrajsharma commented 2 years ago

status filter will be optional , if not supplied it will derive all of the data , if supplied it's value will support single int , and is derived from same class that tasking manager uses https://github.com/hotosm/tasking-manager/blob/develop/backend/models/postgis/statuses.py#L4 i.e.
ARCHIVED = 0 PUBLISHED = 1 DRAFT = 2