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

feat(core): consistent template versioning #2763

Merged
merged 4 commits into from Mar 24, 2022

Conversation

m-alisafaee
Copy link
Contributor

@m-alisafaee m-alisafaee commented Mar 18, 2022

Description

Use template repository's tag as version (instead of the Renku version) for templates bundled with Renku CLI.

Fixes #2714

@m-alisafaee m-alisafaee force-pushed the 2714-consistent-template-versioning branch from 94d25dc to 9c784ad Compare March 18, 2022 15:43
@m-alisafaee m-alisafaee marked this pull request as ready for review March 18, 2022 16:21
@m-alisafaee m-alisafaee requested a review from a team as a code owner March 18, 2022 16:21

latest_reference, latest_version = latest
update_available = latest_reference != reference or latest_version != version
return update_available, latest_reference
Copy link
Member

Choose a reason for hiding this comment

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

This would mean that if I install hypothetical version 1.3.0 and migrate, and then install hypothetical version 1.2.0 and run migration check, it'd say a new version is available and downgrade, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, EmbeddedTemplates::get_latest_reference_and_version checks if project's template version is newer than renku's template version and returns the latest of the two, so, 1.3.0 will be the latest version/reference in that case and nothing will be changed.

@m-alisafaee m-alisafaee merged commit 9e8f1a0 into develop Mar 24, 2022
@m-alisafaee m-alisafaee deleted the 2714-consistent-template-versioning branch March 24, 2022 10:28
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.

Consistent template versioning
2 participants