HomeSoftware Heritage

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

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
Parents
rDWAPPS2fb5a2e72feb: Fix malformatted date value when null
Branches
Unknown
Tags
Unknown
Build Status
Buildable 21111
Build 32762: test-and-buildJenkins console · Jenkins