Skip to content

Enhance code alignment for template feature#2353

Merged
cb-github-robot merged 2 commits intocloud-barista:mainfrom
seokho-son:main
Mar 10, 2026
Merged

Enhance code alignment for template feature#2353
cb-github-robot merged 2 commits intocloud-barista:mainfrom
seokho-son:main

Conversation

@seokho-son
Copy link
Copy Markdown
Member

@seokho-son seokho-son commented Mar 10, 2026

Signed-off-by: Seokho Son <shsongist@gmail.com>
@seokho-son seokho-son requested a review from yunkon-kim as a code owner March 10, 2026 02:22
Copilot AI review requested due to automatic review settings March 10, 2026 02:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates template-related documentation and template update behavior to better align with the “configCopy + template” workflow, plus some formatting/sample-template cleanup.

Changes:

  • Refines Swagger annotations and generated OpenAPI artifacts for the MCI config copy endpoint to mention template creation behavior.
  • Makes template Name effectively immutable on update (MCI dynamic / vNet / securityGroup) and removes dead helper code.
  • Cleans the global MCI template JSON by removing runtime/system label fields.

Reviewed changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
src/interface/rest/server/infra/manageInfo.go Updates Swagger annotations for /configCopy 200 response documentation
src/interface/rest/docs/swagger.yaml Updates generated OpenAPI 200 response schema/description for /configCopy
src/interface/rest/docs/docs.go Updates generated Swagger 2.0 docs for /configCopy 200 response
src/core/model/common.go Minor formatting change in ResourceTypeRegistry map
src/core/common/template.go Prevents updating template Name on update; removes unused stub function
init/templates/global-mci-template.json Removes system/runtime labels and revises description

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Seokho Son <shsongist@gmail.com>
@seokho-son
Copy link
Copy Markdown
Member Author

/approve

@github-actions github-actions bot added the approved This PR is approved and will be merged soon. label Mar 10, 2026
@cb-github-robot cb-github-robot merged commit 8e4b44b into cloud-barista:main Mar 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved This PR is approved and will be merged soon.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants