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

Commit

Permalink
Merge pull request #744 from openedx/feanil/deprecate_structures_script
Browse files Browse the repository at this point in the history
feat: Deprecate the structures script.
  • Loading branch information
Feanil Patel authored Mar 12, 2024
2 parents 95319f5 + 7bc4a31 commit fa0363c
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 fa0363c

Please sign in to comment.