uplift: add API endpoint to link revisions to assessments (Bug 2029072) #1064 (lando@main)
| Warnings |
|
|---|---|
| Blockers |
|
| Branches | assessment-id-phab-auth -> main |
| Repo | lando@main (git) (git://github.com/cgsheeh/lando.git) |
| Author | cgsheeh |
| State | closed |
| Commit Title | uplift: add API endpoint to link revisions to assessments (Bug 2029072) |
| Commit Body | Introduce a new Ninja API at POST /api/uplift/assessments/link that allows moz-phab to associate a Phabricator revision with an existing uplift assessment after a developer submits their revision. The endpoint creates or updates an `UpliftRevision` record and triggers a Celery task to push the uplift request form back to Phabricator. Authentication uses a new reusable `PhabricatorTokenAuth` class for Django Ninja, which delegates to the existing `PhabricatorTokenAuthenticationMiddleware` rather than re-implementing token verification. The `X-Phabricator-API-Key` header name is extracted into a shared constant in `lando.utils.phabricator` and adopted by the existing `phabricator_api_key_required` decorator in `api/views.py`. |
Landings
Successfully landed
Landing requested on , by cosheehan@mozilla.com.
Landing Job: 34772