Skip to content
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

Approval gates and their status via the v0 API #3652

Open
ajay-rah opened this issue Feb 7, 2024 · 1 comment
Open

Approval gates and their status via the v0 API #3652

ajay-rah opened this issue Feb 7, 2024 · 1 comment

Comments

@ajay-rah
Copy link

ajay-rah commented Feb 7, 2024

Can the approval gates and their status be exposed via the v0 API?

@jrobbins
Copy link
Collaborator

Sure, you are welcome to use the v0 API with the understanding that it will someday (maybe in 2025) be replaced with a better and more documented v1 API.

As it stands now, you can make a request to a URL like:
https://chromestatus.com/api/v0/features/5203909459312640/gates
to get the state of all the gates on that feature.

The gate types and state values are just integers in that JSON. The definition of those values can be found here:
https://github.com/GoogleChrome/chromium-dashboard/blob/main/client-src/elements/form-field-enums.js#L345
and the gate state values are in the next paragraph down from that. State 5 is "Approved.
There is also a gate_name field that is not always filled in, but for the I2S it is "Intent to Ship".

Specifically, in the response to the URL above, the gate at position 10 in the array has:
{
gate_name: "Intent to Ship",
gate_type: 4,
requested_on: "2023-11-22 18:09:59.464318",
responded_on: "2023-11-29 21:40:19.054007",
state: 5,
team_name: "API Owners",
...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants