-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SDESK-7445] - Planning: Migrate planning:purge_expired_locks command…
… to async (#2142) * Implement base async `planning.events` resource and service SDESK-7441 * Fix linter issues SDESK-7441 * Implement base async `planning` resource and service SDESK-7441 * Update command to use new format * Basic async models and services for `published` & `assignments` SDESK-7441 * Copied get_expired_items to new Events async service * Copied get_expired_items to new Planning async service * Updated tests * Added utils file * Fix pytests and ~80% of behave tests Fix behave tests partially SDESK-7441 Allow behave tests to run async code SDESK-7441 Fix pytests and use python 3.10 only Disable some actions and add verbose mode 999 Remove python 3.8 Point sd core to fix branch Revert "Fix linter issues" This reverts commit 152cfb5. Revert changes to ci-install SDESK-7441 Fix first batch of tests Reapply "Fix linter issues" This reverts commit e5ac69a. Fix second batch of tests SDESK-7441 Fix tests batch 3 Fix tests batch 4 SDESK-7441 Fix superdesk-core dependency Fix linter issues SDESK-7441 * Update requirements to async branch SDESK-7441 * Adjusted fields and indexes in assignments SDESK-7441 * Fix for types according to PR review SDESK-7441 * Suggested fixes * Refactored celery call to run command * Removed double import * Add events module to test config * Code refactor * Update types based on review feedback SDESK-7441 * Proper names and type SDESK-7441 * Make some fields optional SDESK-7441 * Changed purge_expired_locks to new command style and async * Updated tests * Await system update * Instantiate the needed service in functions * Fix index serializing issue SDESK-7441 * Remove not needed import SDESK-7441 * Fix typo SDESK-7441 * Fix failing tests * Fix failing tests * Removed push_notification * Add date_to_str in the filter * Removed extra item on system_update * Remove print statement and uncomment other tests * Uncommented assignments * Made planning_item optional in model * Added planning items to assignment test items * Fixes from PR suggestions --------- Co-authored-by: Helmy Giacoman <[email protected]>
- Loading branch information
1 parent
421a61b
commit 9a1fe66
Showing
7 changed files
with
250 additions
and
199 deletions.
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.