From 7bc4a3149f00c942f2b414d0601d9814161a59e7 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Tue, 12 Mar 2024 11:02:22 -0400 Subject: [PATCH] feat: Deprecate the structures script. This script has been copied into edx-platform in https://github.com/openedx/edx-platform/pull/34328 and so we want to make sure we leave a warning here. --- README.md | 1 + tubular/scripts/structures.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/README.md b/README.md index e601812d..5ee04204 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ and migrated [here](https://github.com/openedx/edx-platform/tree/master/scripts/ - `tubular/scripts/retirement_archive_and_cleanup.py` - `tubular/scripts/retirement_bulk_status_update.py` - `tubular/scripts/retirement_partner_report.py` +- `tubular/scripts/structures.py` This decision was made to streamline and consolidate our codebase. diff --git a/tubular/scripts/structures.py b/tubular/scripts/structures.py index b37ec0d4..12ba0368 100644 --- a/tubular/scripts/structures.py +++ b/tubular/scripts/structures.py @@ -16,6 +16,7 @@ sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from tubular.splitmongo import ChangePlan, SplitMongoBackend # pylint: disable=wrong-import-position +from tubular.utils.deprecation import deprecated_script LOG = logging.getLogger('structures') click_log.basic_config(LOG) @@ -38,6 +39,7 @@ help='Name of the edX Mongo database containing the course structures to prune.' ) @click.pass_context +@deprecated_script def cli(ctx, connection, database_name): """ Recover space on MongoDB for edx-platform by deleting unreachable,