-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add extra and gifted execution minutes #1361
Conversation
e5807ba
to
7bd5ab8
Compare
Looking into it!
Ah, I missed that and you're entirely right! Will add in a follow-up commit.
No reason to be sorry! This was just a holdover from a previous iteration and I hadn't noticed the difference in the mockups! Happy to change |
Update: merged and rebased |
21b2a0d
to
f86abe0
Compare
@Shrinks99 @emma-sg Branch has been updated to resolve review comments, including:
Updated screenshotsNo extra/gifted execution minute quotas (similar behavior as before)![]() ![]() ![]() Extra/gifted execution minute quotas added![]() (Single tooltip per type of execution minutes, displays if cursor is over used or remaining, centering on used if present) ![]() ![]() ![]() ![]() ![]() |
4de5eed
to
f2dc7d6
Compare
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.
Sweet! Nicely done, all works well as far as I can tell with my poking around
Combines used and remaining bars for each type into one component with a shared tooltip. Uses traditional meter-bar instead if no extra or gifted time has been set.
and show short units when style is short
- Explicitly set giftedExecSecondsAvailable to 0 if appropriate - Use min of seconds still over quota or available extra seconds for calculating extraExecSeconds usage
- Make crawlExecSeconds total - Add monthlyExecSeconds - Add migration to copy previous crawlExecSeconds to monthly, since other categories didn't exist before now - Don't let quota updates result in negative time available, set to 0 instead when applicable
cc16635
to
d666680
Compare
Done! |
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.
I think we can finally merge this! (@tw4l just want to make sure the PR message is still accurate, if any tweaks should be made before merging)
Fixes #1358 - Adds `extraExecMinutes` and `giftedExecMinutes` org quotas, which are not reset monthly but are updateable amounts that carry across months - Adds `quotaUpdate` field to `Organization` to track when quotas were updated with timestamp - Adds `extraExecMinutesAvailable` and `giftedExecMinutesAvailable` fields to `Organization` to help with tracking available time left (includes tested migration to initialize these to 0) - Modifies org backend to track time across multiple categories, using monthlyExecSeconds, then giftedExecSeconds, then extraExecSeconds. All time is also written into crawlExecSeconds, which is now the monthly total and also contains any overage time above the quotas - Updates Dashboard crawling meter to include all types of execution time if `extraExecMinutes` and/or `giftedExecMinutes` are set above 0 - Updates Dashboard Usage History table to include all types of execution time (only displaying columns that have data) - Adds backend nightly test to check handling of quotas and execution time - Includes migration to add new fields and copy crawlExecSeconds to monthlyExecSeconds for previous months Co-authored-by: emma <[email protected]>
Fixes #1358 - Adds `extraExecMinutes` and `giftedExecMinutes` org quotas, which are not reset monthly but are updateable amounts that carry across months - Adds `quotaUpdate` field to `Organization` to track when quotas were updated with timestamp - Adds `extraExecMinutesAvailable` and `giftedExecMinutesAvailable` fields to `Organization` to help with tracking available time left (includes tested migration to initialize these to 0) - Modifies org backend to track time across multiple categories, using monthlyExecSeconds, then giftedExecSeconds, then extraExecSeconds. All time is also written into crawlExecSeconds, which is now the monthly total and also contains any overage time above the quotas - Updates Dashboard crawling meter to include all types of execution time if `extraExecMinutes` and/or `giftedExecMinutes` are set above 0 - Updates Dashboard Usage History table to include all types of execution time (only displaying columns that have data) - Adds backend nightly test to check handling of quotas and execution time - Includes migration to add new fields and copy crawlExecSeconds to monthlyExecSeconds for previous months Co-authored-by: emma <[email protected]>
Fixes #1358
Could use a good bit of additional manual testing, edge cases/fuzz testing welcomed (e.g. this has not been tested across months yet)! And very open to any suggestions to simplify the implementation on backend and/or frontend.
Overview
extraExecMinutes
andgiftedExecMinutes
org quotas, which are not reset monthly but a one-time update-able bucketquotaUpdate
field toOrganization
to track when quotas were updated with timestampextraExecMinutesAvailable
andgiftedExecMinutesAvailable
fields toOrganization
to help with tracking available time left (includes tested migration to initialize these to 0)extraExecMinutes
and/orgiftedExecMinutes
are set above 0Screenshots
Only monthly quota set, no execution time used yet
Only monthly quota set, with some execution time used
All three quotas set, no execution time used yet
All three quotas set, some execution time used
Tooltips
Quota reached
With storage quota also enabled