Page MenuHomeSoftware Heritage

Use type attribute from visit instead of origin
ClosedPublic

Authored by anlambert on Oct 22 2019, 3:42 PM.

Details

Summary

As origin type attribute will be removed in favor of visit type attribute, remove any reference of it in swh-web codebase and use visit type instead.

As a consequence, the web api endpoint [[ https://archive.softwareheritage.org/api/1/origin/ | /api/1/origin/(origin_type)/url/(origin_url)/ ]] has been removed.
I can add it back for backward compatibility if needed but considering it has been marked as deprecated since a couple of months, I do not think it is necessary.

Related T1891

Diff Detail

Repository
rDWAPPS Web applications
Branch
remove-origin-type
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 8599
Build 12492: Cypress tests for swh-web diffsJenkins
Build 12491: tox-on-jenkinsJenkins
Build 12490: arc lint + arc unit

Event Timeline

olasd added a subscriber: olasd.

This all looks good, thanks.

This revision is now accepted and ready to land.Oct 23 2019, 1:06 PM