-
Notifications
You must be signed in to change notification settings - Fork 94
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
Play should have no cylc rose options #6068
Play should have no cylc rose options #6068
Conversation
The logic removed was designed to handle option config being either a new Options object, or just a dict. There are no options defined as just a dict anymore.
@@ -309,12 +309,8 @@ def get_option_parser(add_std_opts: bool = False) -> COP: | |||
argdoc=[WORKFLOW_ID_ARG_DOC] | |||
) | |||
|
|||
options = parser.get_cylc_rose_options() + PLAY_OPTIONS | |||
for option in options: | |||
if isinstance(option, OptionSettings): |
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.
There are no longer any options stored as Dicts rather than OptionSettings objects :. this is redundant.
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.
Makes sense to me, could do with a changelog entry I think
(breaking change entry I'm afraid) |
* upstream/master: (25 commits) Delete public DB if private DB does not exist on scheduler start (cylc#6070) Include xtrigger function signatures in `cylc config` (cylc#6071) Add Nano syntax highlighter (cylc#6072) Play should have no cylc rose options (cylc#6068) tests/integration: address urwid deprecation warning (cylc#6063) Bump dev version Prepare release 8.2.5 add mailmap entry Tutorials: avoid validation errors due to implicit tasks Update CONTRIBUTING.md Update xtrigger_mgr.py documentation Another small tweak. Tweak previous. Tutorials: increase sleep and don't sleep in CI Fix bad doctests tutorial: make the tutorial workflow run a little slower Style tweaks. Simply workflow-state code a bit. Add unit tests for workflow-state. Add to doc string. ...
& Reload should not mess with Cylc Rose CLI options.
Companion to cylc/cylc-rose#312
Cylc Play was (according to the proposal doc) never intended to take Rose config CLI options (
-O
,-D
and-S
).For example:
Would lead to foo = 2 being stored on the scheduler as
self.options.rose_template_vars
: If we then doWill lead to the installed files updating, but reload cannot update the
self.options.rose_template_vars
object created by Cylc Play, so we cannot get rid offoo=2
.Without the scheduler storing these items, reload can examine all the files and get the updated value.
Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).CHANGES.md
entry included if this is a change that can affect users?.?.x
branch.