-
Notifications
You must be signed in to change notification settings - Fork 29
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(core): extended template variable functionality #2120
Conversation
c9af8c3
to
a64209c
Compare
a64209c
to
e31efe3
Compare
Great to see this taking form! I was messing around a bit, and I've noticed that Should |
…taScienceCenter/renku-python into 2034-extended-template-variables
@lorenzo-cavazzi Oh actually that was a bug that has been around for a long time it seems, Not really a part of this ticket but I fixed it so you can test 🙂 |
This works well in the cli 👍 |
You can access the deployment of this PR at https://renku-ci-rp-2120.dev.renku.ch |
bbdd5d9
to
2898c36
Compare
Sorry for taking a bit longer for the review. I expected the core service to be compatible with the UI since no breaking changes have been introduced, but it crashes when creating a new project so I'm trying to go deeper into the problem. In the meanwhile, I've noticed the CLI doesn't ask for a value when the parameter has a default. The only way to change it is by providing it through the console. Funny fact: the cli shows the parameters in different orders every time. It's not a big deal, but I found it a bit unusual (I typed |
This looks good to me! I tested a bit with https://dev.renku.ch/gitlab/lorenzo.cavazzi.tech/template-variables It contains a breaking change for the UI since the |
Is it a breaking change or can it be merged independent of the UI PR? |
It should be backwards compatible (otherwise tests would fail as current templates don't contain this yet). |
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.
Looks very good! I've made some comments. I also notice that --describe
gets ignored when passed without -l
. This is a bit confusing. Perhaps we should rename it to --verbose
or make also list and describe templates. This of course should be done in a new story.
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.
Thank you!
Adds support for default values and typing (string, enum, boolean, number) to template variables.
https://dev.renku.ch/gitlab/renku-qa/core-it-template-variable-test-project contains an example of this.
closes #2034
/deploy