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

Feature: Implement statistics endpoint #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JNKielmann
Copy link
Collaborator

The statistics endpoint was not yet implemented, so I though it would be a good task to get more familiar with the code base.

I call the list method of the respective manager and count the result to get the number of projects, users, service, ...
To list all projects (and not just the ones the user has access to) I used a workaround setting authorized_access to None. Is there a better way to do it?

Happy for any feedback on the implementation :)

@raethlein
Copy link
Member

Hey @JNKielmann, thanks for the contribution 🙂 This looks good to me! Though I think it would be good to have also a test written for that endpoint. Hence, for now I would keep the PR open so that a test can directly committed into the PR.

@lukasmasuch
Copy link
Contributor

This looks good for me as well. It might need some caching in the future, but I think this is not necessary for the current state.

@JNKielmann JNKielmann force-pushed the feature/statistics-endpoint branch from 81b72c2 to 78bd5ea Compare September 21, 2021 11:31
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