-
Notifications
You must be signed in to change notification settings - Fork 40
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
Issue #5359 - Extend utility scripts to find out quota and its usage #5390
base: staging
Are you sure you want to change the base?
Conversation
…ses to a given teamspace
…es, fixed bug where active licenses are displayed if a single license is expired, ensure calculated quota only includes licenses of a valid type
…compare expected expired licenses against the actual ones
…ExpiredLicenses, added some common abstractions between them
…ave a valid format by including subscriptions type
@carmenfan Just tagging you here because I can't request a review without write access to the repo 😄 |
@jacobcons all good, I saw it. Just a bit preoccupied to have a look! Thank you for contributing 😄 |
@carmenfan No worries at all! 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…scriptions and defaults, add tests for full coverage, refactoring of teamspacesetting license functions to be a bit more efficient
@carmenfan Should all be good now 😄 |
Hey @carmenfan, just following up on this PR. Would love to get your thoughts when you have a chance. |
This fixes #5359
Description
allExpiredLicenses
andallActiveLicenses
scripts, include data quota usage, and license count data for the teamspace the license belongs toallExpiredLicenses
would include active licenses as long as it belongs to a teamspace with at least one expired license (and made a similar fix forallActiveLicenses
)quotaInfo
includes licenses of an invalid typeTest cases
allExpiredLicenses
andallActiveLicenses
scripts, ensuring it's seeded with teamspaces that contain multiple licensesgetTeamspaceValidLicenses
,extractTeamspaceActiveLicenses
andextractTeamspaceExpiredLicenses
testSufficientQuota
test to mock a db result of the correct format