Adding grant revoke admin endpoints
Addressing #10222
This PR will add API endpoints for granting and revoking admin rights. I have added tests for the endpoints.
Checklist
- [x] Lint and unit tests pass locally with my changes.
- [x] I have added tests that prove my fix is effective or that my feature works.
- [ ] I have added documentation to describe my feature.
- [x] I have described the changes in the commit messages.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 90.66%. Comparing base (
6aee586) to head (064cbd6). Report is 909 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #10292 +/- ##
==========================================
- Coverage 90.82% 90.66% -0.16%
==========================================
Files 554 561 +7
Lines 57306 57957 +651
Branches 9122 9260 +138
==========================================
+ Hits 52046 52548 +502
- Misses 3640 3746 +106
- Partials 1620 1663 +43
| Files | Coverage Δ | |
|---|---|---|
| weblate/api/tests.py | 100.00% <100.00%> (ø) |
|
| weblate/api/views.py | 90.00% <100.00%> (+0.46%) |
:arrow_up: |
| weblate/auth/permissions.py | 89.01% <100.00%> (+0.08%) |
:arrow_up: |
This pull request has been automatically marked as stale because there wasn’t any recent activity.
It will be closed soon if no further action occurs.
Thank you for your contributions!
Thank you for guiding me @nijel ! I have made the naming consistent for grant and revoke admin endpoints and updated the tests.
This pull request has been automatically marked as stale because there wasn’t any recent activity.
It will be closed soon if no further action occurs.
Thank you for your contributions!
This pull request has been automatically marked as stale because there wasn’t any recent activity.
It will be closed soon if no further action occurs.
Thank you for your contributions!