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,