HomeSoftware Heritage

origin_save: Use API endpoint to submit save request in Web UI form

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

origin_save: Use API endpoint to submit save request in Web UI form

The "Save code now" Web UI form was using an internal dedicated endpoint
to submit an origin save request.

That endpoint is redundant with the /origin/save Web API one so drop
it and use Web API instead.

The internal endpoint was there to validate the CSRF token injected
by Django but the /origin/save already has a rate limit of 10 POST
requests per hour to prevent abuse.

Details

Provenance
anlambertAuthored on Apr 28 2021, 12:10 PM
anlambertPushed on Apr 28 2021, 5:08 PM
Differential Revision
D5636: origin_save: Use API endpoint to submit save request in Web UI form
Build Status
Buildable 21111
Build 32762: test-and-buildJenkins console · Jenkins

Commit No Longer Exists

This commit no longer exists in the repository.