They were already deprecated.
This will allow simplifying code in swh.storage.
Differential D1969
Remove all API endpoints using an origin id. vlorentz on Sep 6 2019, 4:44 PM. Authored by
Details
They were already deprecated. This will allow simplifying code in swh.storage.
Diff Detail
Event TimelineComment Actions Build is green Comment Actions Build is green Comment Actions For your information, I extracted all requests to swh-web in production containing /origin/ in their urls for the last 1 year (using the following Python script P522): 141892 requests were found. As the associated elasticsearch index does not handle regexp query properly, I filtered the urls based on origin ids using grep ($ cat swh-web-origin-requests | grep -E /origin/[0-9]+) All requests using origin ids for the last 1 year (aka today minus 1 year range) can be found here: P523 (for a total of 852 requests) Almost all found requests consists querying an internal browse endpoint that has been removed since (rDWAPPS4762da3d332114f97bbebd86941d43a236929537). Otherwise, only 18 requests to Web API endpoints using origin ids have been issued. So removing the endpoints using origin ids seems pretty safe, considering they are not really used. Comment Actions Build has FAILED Link to build: https://jenkins.softwareheritage.org/job/DWAPPS/job/tox/721/ Comment Actions Build has FAILED Link to build: https://jenkins.softwareheritage.org/job/DWAPPS/job/cypress-diff/325/ |