Add new API endpoints for managing repository ACLs.

Review Request #12489 — Created July 27, 2022 and submitted — Latest diff uploaded

Information

Review Board
release-4.0.x

Reviewers

One thing we've had requests for over the years is a way to manage
repository ACLs via scripts or other automation. This change adds two
new API endpoints for these. These are both children of the repository
resource, and work similarly to the existing group member resource.

  • Ran unit tests.
  • Made a variety of API requests to manage repository ACLs.

Diff Revision 5

This is not the most recent revision of the diff. The latest diff is revision 6. See what's changed.

orig
1
2
3
4
5
6

Commits

First Last Summary ID Author
Add a management command for invalidating tokens
This change adds an `rb-site manage /path/to/site invalidate-api-tokens` command that allows administrators to invalidate the API tokens for a set of users. Now tokens can be invalidated individually via the API, or in batch with this command. Testing Done: Manually tested the command and checked that the right tokens were being invalidated. Reviewed at https://reviews.reviewboard.org/r/12481/
913976c93b0a7d6f3415981d5e9ccee7c1a85fd4 Michelle Aubin
docs/manual/admin/sites/management-commands.rst
reviewboard/accounts/sso/backends/saml/views.py
reviewboard/accounts/tests/test_saml_views.py
reviewboard/webapi/management/__init__.py
reviewboard/webapi/management/commands/__init__.py
reviewboard/webapi/management/commands/invalidate-api-tokens.py
Loading...