-
Notifications
You must be signed in to change notification settings - Fork 35
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
[SDESK-7445] - Planning: Migrate planning:purge_expired_locks command to async #2142
Merged
Merged
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
663523e
Implement base async `planning.events` resource and service
eos87 a452a92
Fix linter issues
eos87 98d4e37
Merge branch 'async' into hg/SDESK-7441-base-async-services-resources
eos87 2cdb25a
Implement base async `planning` resource and service
eos87 d7da0c9
Update command to use new format
BrianMwangi21 2112bad
Basic async models and services for `published` & `assignments`
eos87 6e60d55
Merge branch 'hg/SDESK-7441-base-async-services-resources' into SDESK…
BrianMwangi21 c131916
Copied get_expired_items to new Events async service
BrianMwangi21 db03451
Merge branch 'hg/SDESK-7441-base-async-services-resources' into SDESK…
BrianMwangi21 f79172c
Copied get_expired_items to new Planning async service
BrianMwangi21 f9763d8
Updated tests
BrianMwangi21 deb9f01
Added utils file
BrianMwangi21 9ef8423
Fix pytests and ~80% of behave tests
eos87 1dc92ec
Merge branch 'async' into hg/SDESK-7441-base-async-services-resources
eos87 9d87ded
Update requirements to async branch
eos87 a062037
Adjusted fields and indexes in assignments
eos87 5a12856
Fix for types according to PR review
eos87 e2713f0
Suggested fixes
BrianMwangi21 5b19216
Merge branch 'hg/SDESK-7441-base-async-services-resources' into SDESK…
BrianMwangi21 62dd304
Refactored celery call to run command
BrianMwangi21 114a507
Removed double import
BrianMwangi21 5b82274
Add events module to test config
BrianMwangi21 882f818
Code refactor
BrianMwangi21 2fd8799
Update types based on review feedback
eos87 b85a4e2
Proper names and type
eos87 d6cb71c
Make some fields optional
eos87 7c91bc4
Merge branch 'hg/SDESK-7441-base-async-services-resources' into SDESK…
BrianMwangi21 5739d2c
Changed purge_expired_locks to new command style and async
BrianMwangi21 ed3b37a
Updated tests
BrianMwangi21 8d32942
Await system update
BrianMwangi21 a39d49f
Instantiate the needed service in functions
BrianMwangi21 c8731f3
Fix index serializing issue
eos87 84c6f2c
Remove not needed import
eos87 36bd997
Merge branch 'hg/SDESK-7441-base-async-services-resources' into SDESK…
BrianMwangi21 0f26b18
Fix typo
eos87 9102f9c
Merge branch 'hg/SDESK-7441-base-async-services-resources' into SDESK…
BrianMwangi21 dd3feef
Fix failing tests
BrianMwangi21 2cb97c2
Merge branch 'SDESK-7443' into SDESK-7445
BrianMwangi21 183e76f
Merge branch 'async' into SDESK-7443
BrianMwangi21 650a801
Merge branch 'SDESK-7443' into SDESK-7445
BrianMwangi21 2bc4d05
Merge branch 'async' into SDESK-7445
BrianMwangi21 cf0573a
Fix failing tests
BrianMwangi21 95550ce
Removed push_notification
BrianMwangi21 804575a
Add date_to_str in the filter
BrianMwangi21 2b2408e
Removed extra item on system_update
BrianMwangi21 dd529b4
Remove print statement and uncomment other tests
BrianMwangi21 37156b9
Uncommented assignments
BrianMwangi21 1ab3097
Made planning_item optional in model
BrianMwangi21 f0fcf2a
Added planning items to assignment test items
BrianMwangi21 e3b559f
Fixes from PR suggestions
BrianMwangi21 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
from planning.core.service import BasePlanningAsyncService | ||
from planning.types import AssignmentResourceModel | ||
|
||
|
||
class AssignmentsAsyncService(BasePlanningAsyncService): | ||
class AssignmentsAsyncService(BasePlanningAsyncService[AssignmentResourceModel]): | ||
pass |
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
@MarkLark86 we are making use of autosave services here. They are yet to be converted to async. Do they remain as is and just add a TODO to get back to them when finished ?
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.
That sounds fine