-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: deprecate runserver
in favor of start
#644
feat: deprecate runserver
in favor of start
#644
Conversation
a88cf20
to
4c39c1c
Compare
`tutor dev runserver` will be removed in a future release. Developers are encouraged to use `tutor dev start` instead, which is more flexible and provides a consistent interface with `tutor local start`. As part of this deprecation, we enable the `tty` and `stdin_open` options on development docker-compose services. This will allow developers to use `start` for breakpoint debugging, which was previously only availble via `runserver`. Several parallel PRs have been merged in order to make the same change in the development services of the official plugins. Although `start` does not support the `--volume` option, it supports a more-powerful `--mount` option. So, where developers previously used: tutor dev runserver --volume ... to bind-mount host directories, they should now use: tutor dev start --mount ... Resolves openedx-unsupported/wg-developer-experience#61
4c39c1c
to
830df37
Compare
@regisb This PR and its linked PRs are all ready for review :) |
for option in options: | ||
if option.startswith("-v") or option.startswith("--volume"): | ||
depr_warning += " Bind-mounts can be specified using '-m/--mount'." | ||
fmt.echo_alert(depr_warning) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI Click has a deprecated=True
option: https://click.palletsprojects.com/en/8.1.x/api/?highlight=deprecated#click.Command
This option adds "deprecated" warnings to stdout and in the command help, but it does not suggest any replacement. So your solution works just as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is exciting stuff!
Notes
Resolves openedx-unsupported/wg-developer-experience#61
Blocked by these plugin PRs:
runserver
in favor ofstart
tutor-mfe#46There are still a couple references to
tutor dev runserver
in the official plugins, but totally scrubbing them would require moving the plugins to the V1 API and implementing theCOMPOSE_MOUNTS
filter. I figure that we can punt that work to openedx-unsupported/wg-developer-experience#26.Description
See commit message / changelog for details.
Screenshots
Deprecation warning
Deprecation warning when --volume is provided
New section in the plugin dev tutorial