Skip to content

Commit 248138c

Browse files
authored
fix: Allow --experimental on reindex_studio as a no-op (#38433)
Putting this flag back as a backcompat no-op will smooth out the transition for developers and operators. Follows up on: 9af9d8f Related: overhangio/tutor#1374
1 parent c3d0c17 commit 248138c

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

openedx/core/djangoapps/content/search/management/commands/reindex_studio.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ class Command(BaseCommand):
4343

4444
def add_arguments(self, parser):
4545
# Removed flags — provide clear error messages for operators with old automation.
46+
parser.add_argument(
47+
"--experimental",
48+
action="store_true",
49+
default=False,
50+
help="(Removed) reindex_studio is no longer experimental.",
51+
)
4652
parser.add_argument(
4753
"--reset",
4854
action="store_true",
@@ -85,6 +91,11 @@ def handle(self, *args, **options):
8591
"The --incremental flag has been removed. "
8692
"Incremental population is now the default behavior of this command."
8793
)
94+
if options["experimental"]:
95+
log.warning(
96+
"The --experimental flag has been removed. "
97+
"reindex_studio is now a stable command, so the flag is no longer necessary."
98+
)
8899

89100
result = rebuild_index_incremental.delay()
90101

0 commit comments

Comments
 (0)