-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Implement quota interface - with better logic isolation and unit tests. #10212
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Member
jmchilton
commented
Sep 11, 2020
•
edited
Loading
edited
- Add 'interface' (abc) Quota agent with more documentation to define the interface jobs and user pieces have to quota management.
- Remove unused 'get_user_quotas' method from implementations of quota_agent.
- Add factory method to refactor logic for determining which quota agent to use out of galaxy/app and into galaxy.quota.
- Break get_quota into get_quota and get_quota_nice_size based on return type - I think return types varying so wildly based on input parameters is an anti-pattern.
- Unit tests that cover a lot of the complex get_quota logic.
- Integration test case for simple API testing of quotas.
- Refactor checking if quota is exceeded out of job.handler so it can be tested in isolation and so new functionality for quota calculation is extended in quota modules and not in job handler logic. I think this will make User-based ObjectStore #4840 a little cleaner.
jmchilton
added
the
kind/refactoring
cleanup or refactoring of existing code, no functional changes
label
Sep 11, 2020
jmchilton
force-pushed
the
quota_interface
branch
2 times, most recently
from
September 11, 2020 21:27
2fef5a9
to
30cbc41
Compare
jmchilton
changed the title
[WIP] Implement quota interface, refactor access to quota checking.
[WIP] Implement quota interface - with better logic isolation and unit tests.
Sep 11, 2020
jmchilton
changed the title
[WIP] Implement quota interface - with better logic isolation and unit tests.
Implement quota interface - with better logic isolation and unit tests.
Sep 14, 2020
Closed
jmchilton
force-pushed
the
quota_interface
branch
from
September 18, 2020 15:28
8404175
to
e17d4d2
Compare
jmchilton
force-pushed
the
quota_interface
branch
from
September 28, 2020 20:59
e17d4d2
to
2d35d06
Compare
jmchilton
force-pushed
the
quota_interface
branch
from
September 30, 2020 15:01
2d35d06
to
5e55693
Compare
jmchilton
force-pushed
the
quota_interface
branch
from
October 9, 2020 13:19
5e55693
to
d2a785b
Compare
- Add 'interface' (abc) Quota agent with more documentation to define the interface jobs and user pieces have to quota management. - Remove unused 'get_user_quotas' method from implementations of quota_agent. - Add factory method to refactor logic for determining which quota agent to use out of galaxy/app and into galaxy.quota. - Break get_quota into get_quota and get_quota_nice_size based on return type - I think return types varying so wildly based on input parameters is an anti-pattern.
jmchilton
force-pushed
the
quota_interface
branch
from
October 20, 2020 15:45
d2a785b
to
b628309
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/admin
kind/enhancement
kind/refactoring
cleanup or refactoring of existing code, no functional changes
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.