From 2eba42c7ad852632bd01279c611898fba5298b1b Mon Sep 17 00:00:00 2001 From: "qasim.gulzar" Date: Mon, 1 Apr 2024 14:27:32 +0500 Subject: [PATCH] temp: adding DeprecationWarning to remove neo4j. --- cms/djangoapps/coursegraph/apps.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/cms/djangoapps/coursegraph/apps.py b/cms/djangoapps/coursegraph/apps.py index 95d7873fce46..71ae91ad493e 100644 --- a/cms/djangoapps/coursegraph/apps.py +++ b/cms/djangoapps/coursegraph/apps.py @@ -3,7 +3,7 @@ Signal handlers are connected here. """ - +import warnings from django.apps import AppConfig @@ -15,3 +15,11 @@ class CoursegraphConfig(AppConfig): name = 'cms.djangoapps.coursegraph' from cms.djangoapps.coursegraph import tasks + + def ready(self) -> None: + warnings.warn( + "Neo4j support is going to be dropped after Sumac release," + "to read more here is a github issue https://github.com/openedx/edx-platform/issues/34342", + DeprecationWarning, + stacklevel=2 + )