Remove indexcourses as tutor command
Is your feature request related to a problem? Please describe. Its confusing to have indexcourses as a specific management command for tutor, because users can think that t other management command should also exists (like refresh_course_metadata)
Describe the solution you'd like Remove the command and add documentation on how to execute the same command using other tutor commands.
We have a dependency on importdemocourse:
@click.command(help="Import the demo course")
@opts.root
def importdemocourse(root):
config = tutor_config.load(root)
runner = ScriptRunner(root, config)
fmt.echo_info("Importing demo course")
scripts.import_demo_course(runner)
fmt.echo_info("Re-indexing courses")
indexcourses.callback(root)
I was thinking that it was just removing the command and adding documentation on how to execute it like this:
tutor local run cms ./manage.py cms reindex_course --all --setup
but now that I see that is being used from importdemocourse maybe we can keep it... what you you think @regisb?
but now that I see that is being used from importdemocourse maybe we can keep it... what you you think @regisb?
We can remove it all.
My initial though about this issue was that indexcourses could be replace with one line from the commandline and it was confusing to have this tutor command and not the rest. But for importdemocourse the template is actually executing more than one command, so it makes sense to have it.
Maybe by just adding some examples on how to execute different commands is enough.