-
Notifications
You must be signed in to change notification settings - Fork 13
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
Meta endpoint expansion #562
Conversation
BREAKING CHANGE: `meta/versions` is now gone, replaced with `meta/version` (server version) and `meta/libraries` (some core libraries).
e25383d
to
dbd51e3
Compare
This endpoint shows some meta information about the user in question. Normal users can see their own information, superusers, admins, group admins, and network admins can add `?username=foo` to see information about that user. Information provided: - username - django status for the user (superuser, admin, active) - mreg status for the user (superuser, admin, group admin, network admin, hostpolicy admin, dns wildcard admin, and underscore admin). - group memberships - mreg permissions granted based on the groups one is a member of.
We are getting dangerously close to the point where the But yeah, we either need to consider setting the limit to 97, or the tests should be expanded to cover more of the changes in this PR. |
This could do with some testing indeed. I'll poke at it. |
Tests added, coverage OK. I'll do another coverage pass PR soon[tm]. |
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.
LGTM!
BREAKING CHANGE:
api/meta/versions
is now gone! (But this was never taken into use)This has been replaced with
api/meta/version
(server version, open to authenticated users) andapi/meta/libraries
(core libraries, available to superusers and administrators).