Skip to content

feat: added R usage quotas management functions - #28

Merged
ymarcon merged 1 commit into
masterfrom
feat/quotas
Sep 10, 2026
Merged

ymarcon merged 1 commit into
masterfrom
feat/quotas

Conversation

@ymarcon

@ymarcon ymarcon commented Sep 10, 2026

Copy link
Copy Markdown
Member

Map the R quotas web services introduced in Opal 6.0.

DataSHIELD context administration: dsadmin.quotas, dsadmin.quota, dsadmin.quota_exists, dsadmin.quota_save, dsadmin.quota_enable, dsadmin.quota_delete and dsadmin.quota_usage. Quotas are addressed by their natural key (metric, subject type, subject) rather than by their identifier, which is looked up when updating or deleting one.

opal.quotas reports the quota that applies to the current user in an R execution context, and what they have consumed against it. It requires no permission, as it only ever reports on the authenticated user.

Limits and usages are expressed in minutes, as in the Opal UI, and are NA when no quota applies: nothing is measured then, so the zeros Opal reports are not a usage.

Map the R quotas web services introduced in Opal 6.0.

DataSHIELD context administration: dsadmin.quotas, dsadmin.quota,
dsadmin.quota_exists, dsadmin.quota_save, dsadmin.quota_enable,
dsadmin.quota_delete and dsadmin.quota_usage. Quotas are addressed by
their natural key (metric, subject type, subject) rather than by their
identifier, which is looked up when updating or deleting one.

opal.quotas reports the quota that applies to the current user in an R
execution context, and what they have consumed against it. It requires
no permission, as it only ever reports on the authenticated user.

Limits and usages are expressed in minutes, as in the Opal UI, and are
NA when no quota applies: nothing is measured then, so the zeros Opal
reports are not a usage.
@ymarcon
ymarcon merged commit 7aba8bf into master Sep 10, 2026
3 checks passed
@ymarcon
ymarcon deleted the feat/quotas branch September 10, 2026 06: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.

1 participant