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(api,cli): add endpoint to copy variable from v1 to v2 #6931

Merged
merged 3 commits into from May 7, 2024

Conversation

sguiheux
Copy link
Collaborator

  1. Description
  2. Related issues
  3. About tests
  4. Mentions

@ovh/cds

fsamin
fsamin previously requested changes Apr 16, 2024
Copy link
Member

@fsamin fsamin left a comment

Choose a reason for hiding this comment

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

  • i wonder if we should not procive something to migrate application deployment strategies too

@@ -82,6 +83,29 @@ func projectVariableSetDeleteFunc(v cli.Values) error {
return client.ProjectVariableSetDelete(context.Background(), v.GetString(_ProjectKey), v.GetString("name"), mod)
}

var projectVariableSetCreateFromApplicationCmd = cli.Command{
Name: "from-application",
Copy link
Member

Choose a reason for hiding this comment

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

why not just a flag on the create command ?

@@ -23,6 +25,7 @@ func projectVariableSetItem() *cobra.Command {
cli.NewCommand(projectVariableSetItemCreateCmd, projectVariableSetItemCreateFunc, nil, withAllCommandModifiers()...),
cli.NewCommand(projectVariableSetItemUpdateCmd, projectVariableSetItemUpdateFunc, nil, withAllCommandModifiers()...),
cli.NewGetCommand(projectVariableSetItemShowCmd, projectVariableSetItemShowFunc, nil, withAllCommandModifiers()...),
cli.NewCommand(projectVariableSetItemFromProjectCmd, projectVariableSetItemFromProjectFunc, nil, withAllCommandModifiers()...),
Copy link
Member

Choose a reason for hiding this comment

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

why not a flag on create command ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

for this one, it's not the same cmd arguments

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

@sguiheux sguiheux requested a review from fsamin April 17, 2024 08:32
@ovh-cds
Copy link
Collaborator

ovh-cds commented Apr 17, 2024

CDS Report build-cds#20523.0 ✔
*

  • Build and Package All -
  • Build and Package Contrib Action ✔
  • Build and Package Contrib Code Plugin ✔
  • Build and Package Contrib Integrations ✔
  • Build and Package Engine, Worker, CLI and Doc ✔
  • Build and Package UI ✔
  • Build Debpacker ✔
  • Build SMTPMock ✔
  • Lint UI Translate ✔
  • Test CLI ✔
  • Test Contrib ✔
  • Test Engine ✔
  • Test SDK ✔
  • Test UI ✔

@ovh-cds
Copy link
Collaborator

ovh-cds commented Apr 17, 2024

CDS Report integration-cds#20523.0 ✘

  • Integration
    • Docker Compose Tests ✔
    • Standalone Tests ✔
    • Standalone Tests v1 ✔
    • Standalone Tests v2 ✘

@ovh-cds
Copy link
Collaborator

ovh-cds commented Apr 17, 2024

CDS Report build-cds#20524.0 ✔
*

  • Build and Package All -
  • Build and Package Contrib Action ✔
  • Build and Package Contrib Code Plugin ✔
  • Build and Package Contrib Integrations ✔
  • Build and Package Engine, Worker, CLI and Doc ✔
  • Build and Package UI ✔
  • Build Debpacker ✔
  • Build SMTPMock ✔
  • Lint UI Translate ✔
  • Test CLI ✔
  • Test Contrib ✔
  • Test Engine ✔
  • Test SDK ✔
  • Test UI ✔

@ovh-cds
Copy link
Collaborator

ovh-cds commented Apr 17, 2024

CDS Report integration-cds#20524.0 ✔

  • Integration
    • Docker Compose Tests ✔
    • Standalone Tests ✔
    • Standalone Tests v1 ✔
    • Standalone Tests v2 ✔

Copy link

sonarcloud bot commented Apr 17, 2024

@sguiheux sguiheux merged commit 21636a7 into master May 7, 2024
4 checks passed
@sguiheux sguiheux deleted the vsMigrate branch May 7, 2024 06:54
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.

None yet

5 participants