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.

Changes between revision 4 and 5

orig
1
2
3
4
5
6

Commits

Summary ID Author
Add new API endpoints for managing repository ACLs.
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. Testing Done: - Ran unit tests. - Made a variety of API requests to manage repository ACLs.
6fbe71286e709ee3851b6667d227d79d0ce859ad David Trowbridge
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/errors.py
reviewboard/webapi/management/__init__.py
reviewboard/webapi/management/commands/__init__.py
reviewboard/webapi/management/commands/invalidate-api-tokens.py
reviewboard/webapi/resources/repository.py
reviewboard/webapi/resources/repository_group.py
reviewboard/webapi/resources/repository_user.py
reviewboard/webapi/tests/mimetypes.py
reviewboard/webapi/tests/test_repository_group.py
reviewboard/webapi/tests/test_repository_user.py
reviewboard/webapi/tests/urls.py
Loading...