Skip to content

fix(BA-1235): Allow String data to set quota limit #4527

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

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

fregataa
Copy link
Member

@fregataa fregataa commented May 28, 2025

resolves #4275 (BA-1235)

Query Example of Quota scope

query Quota {
    quota_scope (
        storage_host_name: "local:volume1"
        quota_scope_id: "user:f38..."
    ){
        id
        quota_scope_id
        details {
            hard_limit_bytes_as_string
            human_readable_hard_limit_bytes
        }
    }
}

Mutation Example of Quota scope

mutation Quota {
    set_quota_scope (
        storage_host_name: "local:volume1"
        quota_scope_id: "user:f38..."
        props: {
            hard_limit_bytes_as_string: "1000TB",
        }
    ){
        quota_scope {
            quota_scope_id
            storage_host_name
        }
    }
}

Checklist: (if applicable)

  • Milestone metadata specifying the target backport version
  • Mention to the original issue

📚 Documentation preview 📚: https://sorna--4527.org.readthedocs.build/en/4527/


📚 Documentation preview 📚: https://sorna-ko--4527.org.readthedocs.build/ko/4527/

@fregataa fregataa added this to the 25Q2 milestone May 28, 2025
@fregataa fregataa requested a review from yomybaby May 28, 2025 04:52
@fregataa fregataa self-assigned this May 28, 2025
@github-actions github-actions bot added size:XL 500~ LoC comp:manager Related to Manager component comp:common Related to Common component comp:storage-proxy Related to Storage proxy component labels May 28, 2025
Co-authored-by: octodog <mu001@lablup.com>
@github-actions github-actions bot added the area:docs Documentations label May 28, 2025
@fregataa fregataa requested a review from ragingwind May 28, 2025 05:09
@fregataa
Copy link
Member Author

  1. Separate BinarySize and DecimalSize
  2. Make a function in GQL resolver
  3. Separate real value field and human readable value field in GQL Query response schema

@github-actions github-actions bot added size:L 100~500 LoC and removed size:XL 500~ LoC labels May 28, 2025
Co-authored-by: octodog <mu001@lablup.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:docs Documentations comp:common Related to Common component comp:manager Related to Manager component comp:storage-proxy Related to Storage proxy component size:L 100~500 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot set storage quota values for users/projects larger than JavaScript BigInteger
1 participant