Skip to content
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

Fix passing of tub metadata #1017

Merged
merged 3 commits into from
Jun 23, 2022

Conversation

DocGarbanzo
Copy link
Contributor

@DocGarbanzo DocGarbanzo commented May 31, 2022

Template complete.py does not support passing tub metadata

According to the docopt string, the complete template should allow to read tub metadata as

--meta=foo:bar --meta=baz:44

but it doesn't. This change fixes it. We also add support for the config parameter METADATA to be merged with the command line options.

… a read tub metadata as --meta=foo:bar --meta=baz:44, but it doesn't. This change fixes it.
@DocGarbanzo DocGarbanzo requested a review from Ezward May 31, 2022 20:57
@cfox570
Copy link
Contributor

cfox570 commented Jun 1, 2022

Instead of changing the complete.py template, I recommend you change Tub_v2. Look at datastore.py which has the old code. The split code is in the init procedure for Tub. If the meta conversion is handled here, the meta data could be setup in config.py or myconfig.py and passed to the tub part instead of only relying on the command line parameter.

Copy link
Contributor

@Ezward Ezward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@DocGarbanzo
Copy link
Contributor Author

@cfox570 - I have changed the code to allow what you suggested, i.e. merging METADATA from the config with the template arguments. I hope you find that useful.

@DocGarbanzo DocGarbanzo requested a review from Ezward June 2, 2022 20:45
@cfox570
Copy link
Contributor

cfox570 commented Jun 3, 2022

Perfect. Thanks for the update.

@DocGarbanzo DocGarbanzo merged commit 5143794 into autorope:main Jun 23, 2022
@DocGarbanzo DocGarbanzo deleted the fix_passing_of_tub_metadata branch November 29, 2022 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants