Skip to content

fix: preserve YAML template variable metadata on update - #4973

Merged
leozhang2018 merged 2 commits into
koderover:mainfrom
Cynthia-0203:fix/template-library-render-validation
Sep 15, 2026
Merged

leozhang2018 merged 2 commits into
koderover:mainfrom
Cynthia-0203:fix/template-library-render-validation

Conversation

@Cynthia-0203

@Cynthia-0203 Cynthia-0203 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

What this PR does / Why we need it:

Fixes YAML template variable updates incorrectly resetting frontend-defined metadata, such as enum types and options, to string.

What is changed and how it works?

Separates variable validation from metadata handling:

  • Template content determines which variables are required.
  • Submitted service_variable_kvs preserves type, options, and description.
  • Variables removed from variable_yaml are still cleaned up.

Does this PR introduce a user-facing change?

  • API change
  • database schema change
  • upgrade assistant change
  • change in non-functional attributes such as efficiency or availability
  • fix of a previous issue

This change is Reviewable

Signed-off-by: Cynthia <chenchen@koderover.com>
@Cynthia-0203
Cynthia-0203 force-pushed the fix/template-library-render-validation branch from 64e55c0 to 97fd70e Compare September 10, 2026 02:38
Signed-off-by: Cynthia <chenchen@koderover.com>
@leozhang2018
leozhang2018 merged commit 15ed85c into koderover:main Sep 15, 2026
4 checks passed
leozhang2018 added a commit that referenced this pull request Sep 15, 2026
…-validation-release-5.0.0

cp: cherry pick #4973 to release 5.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants