From e09d98649755a08e2c30a5fbf7b3b2e67a660ad2 Mon Sep 17 00:00:00 2001 From: Bavisetti Narayan <72156168+NarayanBavisetti@users.noreply.github.com> Date: Tue, 28 Oct 2025 16:57:07 +0530 Subject: [PATCH] [WEB-5263] chore: removed the tracking of sanitized HTML (#8023) * chore: removed the html sanitized tracking * chore: added the greater than sign --- apps/api/plane/api/views/cycle.py | 2 +- apps/api/plane/utils/content_validator.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/api/plane/api/views/cycle.py b/apps/api/plane/api/views/cycle.py index 849dab340a..c77106dd5c 100644 --- a/apps/api/plane/api/views/cycle.py +++ b/apps/api/plane/api/views/cycle.py @@ -1221,7 +1221,7 @@ class TransferCycleIssueAPIEndpoint(BaseAPIView): pk=cycle_id, ) # transfer work items only when cycle is completed (passed the end data) - if old_cycle.end_date is not None and old_cycle.end_date < timezone.now(): + if old_cycle.end_date is not None and old_cycle.end_date > timezone.now(): return Response( {"error": "The old cycle is not completed yet"}, status=status.HTTP_400_BAD_REQUEST, diff --git a/apps/api/plane/utils/content_validator.py b/apps/api/plane/utils/content_validator.py index ff06a562fa..caf740e544 100644 --- a/apps/api/plane/utils/content_validator.py +++ b/apps/api/plane/utils/content_validator.py @@ -237,10 +237,6 @@ def validate_html_content(html_content: str): except Exception: summary = str(diff) logger.warning(f"HTML sanitization removals: {summary}") - log_exception( - ValueError(f"HTML sanitization removals: {summary}"), - warning=True, - ) return True, None, clean_html except Exception as e: log_exception(e)