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

[BUG] Failing tests with /osm-users endpoints #331

Open NicolasGrosjean opened 2 years ago

NicolasGrosjean commented 2 years ago

See a1a7d62 and 7980056 for the tests from #326

Feel free to edit the issue to be more efficient and/or provide feedbacks for next report.

osm-users/ids/

test_osm_users_ids_no_user

Diagnostic

There is an internal 500 error when there is no user (the SQL execution fails).

Proposals

test_osm_users_ids_bad_timestamp_order

Diagnostic

When the timestamp are not in the good order, the result is an empty list.

Proposal

osm-users/statistics/

test_osm_users_statistics_project_empty and test_osm_users_statistics_missing_param

Diagnostic

The projectIds field is ignored by the API (it can also be missing )

Proposals

Bad return type compared to the documentation

Diagnostic

The result is a list of UserStatistics whereas in the document it is a UserStatistics.

In addition like only one user is set, there is only an element to the list.

Proposals