Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

feat: Deprecate the structures script. #744

Merged
merged 1 commit into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 2 additions & 0 deletions tubular/scripts/structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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,
Expand Down
Loading