Sync routes for the package metadata checkpoints API
What does this MR do and why?
Adds the one route that gitlab-org/gitlab!271211 introduces, GET /api/:version/admin/package_metadata/checkpoints, to the route snapshot. The cells-routes:router-in-sync job on that merge request fails until the router has it: https://gitlab.com/gitlab-org/gitlab/-/jobs/18085126470
No routing change is needed. This is case 1 in Adding GitLab routes to the HTTP Router. The endpoint requires an administrator, so it matches the existing /api/* rule with a null claim and is routed by session or token, like the other /api/:version/admin/* routes.
The change is the downloaded test/routes/gitlab_routes.json (1 route added) and the updated snapshot (2 rows).
References
- GitLab merge request that adds the route: gitlab-org/gitlab!271211
- Failing job: https://gitlab.com/gitlab-org/gitlab/-/jobs/18085126470
How to set up and validate locally
- From
main, runnpm install. - Run
npm run download-gitlab-routes -- andunn/pmdb-sync-status. It reports1 added, 0 updated. - Run
npm run generate-route-guards.src/generated_route_guards.tsdoes not change. - Run
npm run test -- routes.spec.ts. It fails, and the only snapshot difference is the plain and.jsonrows of the new route, both matching/api/*with anullclaim. - Run
npm run test -- routes.spec.ts -uto update the snapshot. - Run
npm test. All 45 test files pass, and the tree matches this branch.
An AI coding assistant wrote this change. The assistant also ran the download, the guard generator and the full test suite on a test VM, and checked the diff against the one route the GitLab merge request adds.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.