From a26947da9de9bc3f143079485c244aba488a889b Mon Sep 17 00:00:00 2001 From: Ketan <73937490+devketanpro@users.noreply.github.com> Date: Thu, 12 Dec 2024 09:13:10 +0530 Subject: [PATCH] Add Coverage Provider to Embedded Planning and Synchronize Coverage Assignee Updates to Assignments [SDCP-875] (#2151) * Fix : Coverages assignment: Reassigned / unassigned user is not retained on Save / Update * update schema and implement changes to populate coverage_provider through event form * refactore code * remove unwanted code * add tests * refactore logix --- client/api/events.ts | 2 ++ server/features/event_embedded_planning.feature | 14 +++++++++++++- server/features/planning.feature | 2 +- server/planning/events/events_schema.py | 9 +++++++++ .../events/events_sync/embedded_planning.py | 14 +++++++++++++- server/planning/planning/planning.py | 7 +++++++ server/planning/types/__init__.py | 1 + 7 files changed, 46 insertions(+), 3 deletions(-) diff --git a/client/api/events.ts b/client/api/events.ts index 703a6cc3b..178c58ddb 100644 --- a/client/api/events.ts +++ b/client/api/events.ts @@ -146,6 +146,7 @@ function create(updates: Partial): Promise> { ednote: coverage.planning.ednote, internal_note: coverage.planning.internal_note, headline: coverage.planning.headline, + coverage_provider: coverage.assigned_to.coverage_provider })), })), update_method: updates.update_method?.value ?? updates.update_method @@ -193,6 +194,7 @@ function update(original: IEventItem, updates: Partial): Promise