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

Display user quota in "user-info" #90

Open
beatrizserrano opened this issue Oct 11, 2021 · 2 comments
Open

Display user quota in "user-info" #90

beatrizserrano opened this issue Oct 11, 2021 · 2 comments

Comments

@beatrizserrano
Copy link
Member

When users request quota increase I check their actual disk usage with this very useful command:

gxadmin report user-info EMAIL

It would be cool to see also their current quota, which would help to check whether the quota was properly increased. Is it something that could be easily added? Or maybe: Is there a better way to check the quota for a specific user?

Thank you :)

@hexylena
Copy link
Member

Definitely a good feature request! The quota tables are ... gross. to say the least, so, it may be difficult.

@hexylena
Copy link
Member

e.g. you need to do math and handle the = + and - operations and their precedence, it's possible, just no fun.

galaxy=> select pg_size_pretty(bytes), operation, deleted from quota limit 10;
 pg_size_pretty | operation | deleted
----------------+-----------+---------
 2048 GB        | =         | t
 2048 GB        | =         | f
 -1 bytes       | =         | f
 250 GB         | =         | f
 11 GB          | =         | f
 500 GB         | =         | f
 750 GB         | =         | f
 1024 GB        | +         | f
 512 GB         | +         | f
 750 GB         | +         | f
(10 rows)

@hexylena hexylena added help wanted Extra attention is needed feature request and removed help wanted Extra attention is needed labels Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants