Skip to content
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-7443] - Planning: Migrate planning:delete_spiked command to async #2134

Merged
merged 41 commits into from
Dec 4, 2024

Conversation

BrianMwangi21
Copy link

@BrianMwangi21 BrianMwangi21 commented Nov 22, 2024

Purpose

This PR updates the planning:delete_spiked command to async by:

  • Updating command to use new format
  • Making use of the new async methods from events and planning
  • Fixing failing tests

Solves SDESK-7443

Note

This PR depends on #2131 so it is quite big but will become concise when the PR is merged.

@BrianMwangi21 BrianMwangi21 marked this pull request as draft November 22, 2024 08:23
@BrianMwangi21 BrianMwangi21 marked this pull request as ready for review November 27, 2024 03:18
BrianMwangi21 and others added 4 commits November 27, 2024 12:21
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
server/planning/events/service.py Outdated Show resolved Hide resolved
server/planning/events/service.py Outdated Show resolved Hide resolved
server/planning/events/service.py Outdated Show resolved Hide resolved
server/planning/events/service.py Outdated Show resolved Hide resolved
server/planning/events/service.py Outdated Show resolved Hide resolved
server/planning/planning/service.py Outdated Show resolved Hide resolved
server/planning/commands/delete_spiked_items.py Outdated Show resolved Hide resolved
server/planning/commands/delete_spiked_items.py Outdated Show resolved Hide resolved
server/planning/commands/delete_spiked_items.py Outdated Show resolved Hide resolved
server/planning/commands/delete_spiked_items.py Outdated Show resolved Hide resolved
@MarkLark86 MarkLark86 added this to the 3.0 milestone Nov 28, 2024
@BrianMwangi21 BrianMwangi21 force-pushed the SDESK-7443 branch 2 times, most recently from 153f58f to 7d1f4e6 Compare November 28, 2024 16:54
@MarkLark86
Copy link
Collaborator

@BrianMwangi21 There seems to be a couple unit tests failing. One with the elasticsearch query for the delete command, and another in the test using dictionary access instead of ResourceModel access. i.e.

assignments[plan_id] = planning["coverages"][0]["assigned_to"]["assignment_id"]
TypeError: 'PlanningResourceModel' object is not subscriptable

@BrianMwangi21
Copy link
Author

Yeah, I'm working on those.

@BrianMwangi21 BrianMwangi21 merged commit 421a61b into superdesk:async Dec 4, 2024
5 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants