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

Commit

Permalink
feat: Deprecate the structures script.
Browse files Browse the repository at this point in the history
This script has been copied into edx-platform in
openedx/edx-platform#34328 and so we want to
make sure we leave a warning here.
  • Loading branch information
feanil committed Mar 12, 2024
1 parent 95319f5 commit 7bc4a31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
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

0 comments on commit 7bc4a31

Please sign in to comment.