It allows easier discovery for humans, as clients need to know the authority
type/url to list metadata on a given SWHID.
Details
- Reviewers
olasd - Group Reviewers
Reviewers - Maniphest Tasks
- T2938: Create API endpoint to access raw_extrinsic_metadata
- Commits
- rDWAPPS7759503780d7: Add an endpoint to list metadata authorities for a given SWHID
Tests will fail because they depend on D5934.
Diff Detail
- Repository
- rDWAPPS Web applications
- Branch
- master
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 22294 Build 34698: Phabricator diff pipeline on jenkins Jenkins console · Jenkins Build 34697: arc lint + arc unit
Event Timeline
Build has FAILED
Patch application report for D5936 (id=21313)
Rebasing onto e18341dd82...
Current branch diff-target is up to date.
Changes applied before test
commit 6a11cd545f0e5509cda7f8eb7cc95d13500c1577 Author: Valentin Lorentz <vlorentz@softwareheritage.org> Date: Mon Jun 28 16:05:55 2021 +0200 Add an endpoint to list metadata authorities for a given SWHID It allows easier discovery for humans, as clients need to know the authority type/url to list metadata on a given SWHID.
Link to build: https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/911/
See console output for more information: https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/911/console
After clarification of the rationale on IRC, LGTM (with some marginal changes), thanks.
Has storage been tagged with this new endpoint?
swh/web/api/views/metadata.py | ||
---|---|---|
205 | s/objects/object/ or s/objects/target/ | |
211 | s/metadata/metadata-providing authorities/? | |
226 | Needs a trailing slash? | |
245–247 | *rolls eyes* Thanks black. |
Has storage been tagged with this new endpoint?
Not yet, I was waiting for the green light on this design.
Build is green
Patch application report for D5936 (id=21488)
Rebasing onto 3c06b0331d...
Current branch diff-target is up to date.
Changes applied before test
commit 7759503780d7a82e348e3209ef6b3257b7b66992 Author: Valentin Lorentz <vlorentz@softwareheritage.org> Date: Mon Jun 28 16:05:55 2021 +0200 Add an endpoint to list metadata authorities for a given SWHID It allows easier discovery for humans, as clients need to know the authority type/url to list metadata on a given SWHID.
See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/923/ for more details.