-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support user stats for other Tasking Manager instances #48
Comments
An influencing factor for the solution might be if we expect this to happen more often. |
There are at least a dozen active instances of the Tasking Manager out there. The OSM Wiki lists a few of them, but I'm not sure if all of these are actually operational: |
We are also affected by this issue. Our hashtag will be |
@Hagellach37 do we want an endpoint which has the hashtag parameter, or do we want to connect the token to the hashtag internally, so that the token does not grant unrestricted user queries to whoever holds any token? I think once we start distributing more keys we cannot guarantee them not leaking to unauthorized users. |
I think the expected behavior here is that once you have the token, you will get stats for any user. For the existing endpoint this means that you need to be able to pass the hashtag filter as a parameter. We don't want to connect tokens to specific hashtags in our code. |
940835a now introduced hashtag parameter for topic endpoint -> this will enable different Tasking Manager instances to supply their own hashtag in the future The authorization for this endpoint will probably be handled based on the origin request url - thus will not concern service code itself. I will keep this issue open until we can provide a way for users to give us their TM instance urls |
OSM Perú is hosting their own TM instance and would like to integrate the user stats endpoint of the ohsomeNow stats API. They can't use the existing endpoint as it would not give the correct numbers. For their projects they use the hashtags
osmpe-project-*
.Problem:
hotosm-project-*
Potential Solution:
hashtag
parameter (as it is done for the other endpoints of ohsomeNow stats API)hotosm-project-*
as the default value of this new parameter if no explicit value is providedosmpe-project-*
to receive the correct statsEUthmappers-project-*
The text was updated successfully, but these errors were encountered: