-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add new url for roles master api keys #3154
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Uffizzi Preview |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #3154 +/- ##
==========================================
+ Coverage 95.99% 96.10% +0.11%
==========================================
Files 1062 1059 -3
Lines 32265 32038 -227
==========================================
- Hits 30973 30791 -182
+ Misses 1292 1247 -45 ☔ View full report in Codecov by Sentry. |
api/organisations/urls.py
Outdated
path( | ||
"api/v1/organisations/<int:organisation_pk>/roles-api-key/<str:prefix>/", | ||
RolesbyMasterAPIPrefixViewSet.as_view({"get": "list"}), | ||
name="roles_api_keys_by_prefix", | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why go with as_view
here instead of adding to the router?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The URL was updated and it was added to the router
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good so I approved it, but when are the view's tests going to be added?
This reverts commit d770399.
Thanks for submitting a PR! Please check the boxes below:
pre-commit
to check lintingdocs/
if required so people know about the feature!Changes
Add new URL for role's API keys.
GET: organisations/{organisation_pk}/roles-api-key/{prefix}/
Related with #3042 and https://github.com/Flagsmith/flagsmith-rbac/pull/14
How did you test this code?
The unit tests included in the RBAC PR: https://github.com/Flagsmith/flagsmith-rbac/pull/14