Page MenuHomeSoftware Heritage

api/throttling: Fix save code now throttle scope name
ClosedPublic

Authored by anlambert on May 9 2022, 3:44 PM.

Details

Summary

The scope name was missing the swh_ prefix, this was missed in tests
due to an invalid rate value for POST requests (registered users can
issue 10 times more requests that anonymous users).

Diff Detail

Repository
rDWAPPS Web applications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D7792 (id=28126)

Rebasing onto ae7c33ec99...

Current branch diff-target is up to date.
Changes applied before test
commit b30dc0510f78d8fcf514d7e7d43050e1c1084da2
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Mon May 9 15:43:27 2022 +0200

    api/throttling: Fix save code now throttle scope name
    
    The scope name was missing the swh_ prefix, this was missed in tests
    due to an invalid rate value for POST requests (registered users can
    issue 10 times more requests that anonymous users).

See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1805/ for more details.

This revision is now accepted and ready to land.May 9 2022, 4:15 PM