Page MenuHomePhabricator

[API Gateway] Product Manager reads registered OAuth Client ID metrics
Open, Needs TriagePublic

Description

"As a Product Manager, I want to see how many OAuth Client IDs are registered, to determine if our efforts to increase content re-use has worked."

This is a user story for getting metrics about how our efforts with the API gateway have worked.

I need to have information on how many client IDs were registered per day. This can be in a text file (like a CSV file or query output), spreadsheet, or Web UI. I will need to refer to it weekly, at least to start off.

Event Timeline

Ok, so we have https://meta.wikimedia.org/wiki/Special:OAuthListConsumers page which lists the consumers, but it doesn't allow filtering/splitting by time period. We can probably add parameters like 'Registered After' and 'Registered before' which you would be able to use to set the date range. Personally, I don't think this would be generally useful and don't like this solution.

Alternatively, there we now have the /oauth2/client rest endpoint which is also capable of fetching consumers. That one has additional filter on OAuth version which makes it better, cause I believe you'd only be interested in OAuth2 consumers. I could write a little script for you in your language of choice that you could run locally to fetch consumers and tabulate the data. We could add {start} and {end} parameters to the consumer list endpoint, but it's possible to work without it in this case - results are ordered by consumer_id, which is an auto increment, thus they would be ordered in relatively chronological order.

Would a local script be sufficient? I can write it in node so that in future we could deploy it on toollabs to make a simple web page that would query the data for you.

Aklapper renamed this task from Product Manager reads registered OAuth Client ID metrics to [API Gateway] Product Manager reads registered OAuth Client ID metrics.Apr 1 2024, 8:10 AM
Aklapper removed subscribers: Pchelolo, eprodromou.

As API Gateway is nowadays owned by serviceops, adding the serviceops project tag to open API Gateway tasks tagged with the deprecated/archived "Platform Team Initiatives (API Gateway)" tag at https://phabricator.wikimedia.org/project/profile/4321/, as part of Phabricator Housekeeping.