Skip to content

feat: Add resource usage endpoint to get usage for a given user#1238

Open
eikek wants to merge 4 commits intomainfrom
eikek/resource-request-user-query
Open

feat: Add resource usage endpoint to get usage for a given user#1238
eikek wants to merge 4 commits intomainfrom
eikek/resource-request-user-query

Conversation

@eikek
Copy link
Copy Markdown
Member

@eikek eikek commented Mar 11, 2026

This only adds another endpoint to get resource usage of a pool for admins, that allows to specify a user_id.

/deploy

@eikek eikek requested review from a team, SalimKayal and sgaist as code owners March 11, 2026 14:31
@RenkuBot
Copy link
Copy Markdown
Contributor

You can access the deployment of this PR at https://renku-ci-ds-1238.dev.renku.ch

Comment thread components/renku_data_services/resource_usage/api.spec.yaml Outdated
@eikek eikek marked this pull request as draft March 11, 2026 16:04
@eikek eikek force-pushed the eikek/resource-request-user-query branch 2 times, most recently from e4a80cb to 1c5c3c1 Compare March 13, 2026 14:32
@coveralls
Copy link
Copy Markdown

coveralls commented Mar 13, 2026

Pull Request Test Coverage Report for Build 23785898670

Details

  • 11 of 11 (100.0%) changed or added relevant lines in 2 files are covered.
  • 7 unchanged lines in 5 files lost coverage.
  • Overall coverage increased (+0.03%) to 87.15%

Files with Coverage Reduction New Missed Lines %
components/renku_data_services/base_api/error_handler.py 1 90.72%
components/renku_data_services/capacity_reservation/core.py 1 29.49%
components/renku_data_services/authz/authz.py 1 90.47%
components/renku_data_services/crc/core.py 2 77.9%
components/renku_data_services/namespace/db.py 2 85.74%
Totals Coverage Status
Change from base Build 23599115438: 0.03%
Covered Lines: 25073
Relevant Lines: 28770

💛 - Coveralls

@eikek eikek force-pushed the eikek/resource-request-user-query branch 2 times, most recently from 015a663 to bd76a6c Compare March 13, 2026 21:25
@eikek eikek marked this pull request as ready for review March 13, 2026 21:26
@eikek eikek requested a review from sgaist March 17, 2026 08:20
Copy link
Copy Markdown
Collaborator

@sgaist sgaist left a comment

Choose a reason for hiding this comment

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

One last question otherwise looks good

Comment thread components/renku_data_services/resource_usage/blueprints.py Outdated
@eikek eikek requested a review from sgaist March 19, 2026 08:03
@eikek eikek force-pushed the eikek/resource-request-user-query branch from bd76a6c to 563e946 Compare March 19, 2026 08:03
sgaist
sgaist previously approved these changes Mar 23, 2026
Comment thread components/renku_data_services/resource_usage/blueprints.py Outdated
Comment thread components/renku_data_services/resource_usage/blueprints.py Outdated
Comment thread components/renku_data_services/resource_usage/blueprints.py Outdated
Comment thread components/renku_data_services/resource_usage/blueprints.py Outdated
@eikek eikek force-pushed the eikek/resource-request-user-query branch 2 times, most recently from 62d9f8e to 4d99986 Compare March 27, 2026 14:59
@eikek eikek requested a review from leafty March 27, 2026 15:00
Copy link
Copy Markdown
Member

@leafty leafty left a comment

Choose a reason for hiding this comment

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

LGTM

Looks very clean now 👏

@eikek eikek force-pushed the eikek/resource-request-user-query branch from 3294c00 to e756749 Compare April 21, 2026 06:26
eikek added 4 commits April 29, 2026 16:34
- use `requested_by` as the user id argument
- make use of sanics query validator for start- end-date
@eikek eikek force-pushed the eikek/resource-request-user-query branch from e756749 to 903bfd7 Compare April 29, 2026 14:34
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.

5 participants