Skip to content
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

Merged
merged 9 commits into from
Nov 23, 2024
Merged

Meta endpoint expansion #562

merged 9 commits into from
Nov 23, 2024

Conversation

terjekv
Copy link
Collaborator

@terjekv terjekv commented Nov 21, 2024

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) and api/meta/libraries (core libraries, available to superusers and administrators).

@terjekv terjekv self-assigned this Nov 21, 2024
@coveralls
Copy link
Collaborator

coveralls commented Nov 21, 2024

Coverage Status

coverage: 98.368% (-0.02%) from 98.392%
when pulling 1972d7f on meta_endpoint_expansion
into 64a7cd9 on master.

BREAKING CHANGE:

`meta/versions` is now gone, replaced with `meta/version` (server version) and `meta/libraries` (some core libraries).
@terjekv terjekv force-pushed the meta_endpoint_expansion branch from e25383d to dbd51e3 Compare November 22, 2024 09:05
terjekv and others added 3 commits November 22, 2024 11:06
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.
@terjekv terjekv marked this pull request as ready for review November 22, 2024 13:57
@pederhan
Copy link
Member

pederhan commented Nov 22, 2024

We are getting dangerously close to the point where the coverage tox environment will fail in CI (<98%). Coveralls is giving me timeout errors when trying to check the views.py file which lost coverage in this PR, so I can't really provide any more input on that front.

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.

@terjekv
Copy link
Collaborator Author

terjekv commented Nov 22, 2024

This could do with some testing indeed. I'll poke at it.

@terjekv
Copy link
Collaborator Author

terjekv commented Nov 22, 2024

Tests added, coverage OK. I'll do another coverage pass PR soon[tm].

Copy link
Member

@pederhan pederhan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@terjekv terjekv merged commit 99c5aa9 into master Nov 23, 2024
29 checks passed
@pederhan pederhan deleted the meta_endpoint_expansion branch November 24, 2024 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants