Skip to content

Add a feature to extract a config request from existing mci#2341

Merged
cb-github-robot merged 1 commit intocloud-barista:mainfrom
seokho-son:main
Mar 5, 2026
Merged

Add a feature to extract a config request from existing mci#2341
cb-github-robot merged 1 commit intocloud-barista:mainfrom
seokho-son:main

Conversation

@seokho-son
Copy link
Copy Markdown
Member

Add a feature to extract a config request from existing mci

Copilot AI review requested due to automatic review settings March 4, 2026 17:17
@seokho-son seokho-son requested a review from yunkon-kim as a code owner March 4, 2026 17:17
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

Adds a new REST API endpoint to reconstruct an model.MciDynamicReq (dynamic MCI creation request) from an existing MCI, to support “clone/recreate” workflows.

Changes:

  • Added GET /tumblebug/ns/:nsId/mci/:mciId/configCopy route and REST handler.
  • Implemented infra.ExtractMciDynamicReqFromMciInfo() to build an MciDynamicReq from MciInfo.
  • Updated Swagger specs/docs to expose the new endpoint.

Reviewed changes

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

Show a summary per file
File Description
src/interface/rest/server/server.go Registers the new configCopy GET route under the namespace group.
src/interface/rest/server/infra/manageInfo.go Adds REST handler + swagger annotations for returning model.MciDynamicReq.
src/core/infra/manageInfo.go Implements extraction logic from existing MCI to MciDynamicReq.
src/interface/rest/docs/swagger.yaml Documents the new endpoint in the OpenAPI YAML.
src/interface/rest/docs/docs.go Updates generated swagger docs for the new endpoint.

💡 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 5, 2026
@cb-github-robot cb-github-robot merged commit 7b85ae7 into cloud-barista:main Mar 5, 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