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

How to set up and validate locally

  1. From main, run npm install.
  2. Run npm run download-gitlab-routes -- andunn/pmdb-sync-status. It reports 1 added, 0 updated.
  3. Run npm run generate-route-guards. src/generated_route_guards.ts does not change.
  4. Run npm run test -- routes.spec.ts. It fails, and the only snapshot difference is the plain and .json rows of the new route, both matching /api/* with a null claim.
  5. Run npm run test -- routes.spec.ts -u to update the snapshot.
  6. 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.

Merge request reports

Loading
Loading