GoogleChrome / chromium-dashboard

Chrome Status Dashboard

Home Page:https://www.chromestatus.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Approval gates and their status via the v0 API

ajay-rah opened this issue · comments

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

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",
...
}