From 938f1533fa6d6dba092be08b4443f6af70fdb33b Mon Sep 17 00:00:00 2001 From: Ketan <73937490+devketanpro@users.noreply.github.com> Date: Tue, 2 Apr 2024 16:20:44 +0530 Subject: [PATCH] Fix : Some coverage items are not displaying in Newspro [SDCP-755] (#1940) * FIX : if planning item is locked when working on coverage assignment[CPCN-726] * remove all functionality related to check planning is locked * remove unwanted code --- server/planning/assignments/assignments.py | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/server/planning/assignments/assignments.py b/server/planning/assignments/assignments.py index 978b8869d..ca7534518 100644 --- a/server/planning/assignments/assignments.py +++ b/server/planning/assignments/assignments.py @@ -1296,22 +1296,7 @@ def _publish_planning(item): else: logger.error("Failed to save planning version for planning item id {}".format(item["_id"])) - try: - # check if the planning item is locked - lock_service.validate_relationship_locks(planning_item, "planning") - use_published_planning = False - except SuperdeskApiError as ex: - # planning item is already locked. - use_published_planning = True - logger.exception(str(ex)) - - if use_published_planning: - # use the published planning and enqueue again - plan = published_planning_item.get("published_item") - else: - plan = planning_item - - _publish_planning(plan) + _publish_planning(planning_item) except Exception: logger.exception("Failed to publish assignment for planning.")