Thanks to visit codestin.com
Credit goes to github.com

Skip to content

templates with parameter cannot be updated #2570

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

Closed
ammario opened this issue Jun 22, 2022 · 11 comments · Fixed by #2569
Closed

templates with parameter cannot be updated #2570

ammario opened this issue Jun 22, 2022 · 11 comments · Fixed by #2569
Assignees
Labels
api Area: HTTP API
Milestone

Comments

@ammario
Copy link
Member

ammario commented Jun 22, 2022

  1. Create a template with a parameter
  2. Try to update it
  3. See following error

Screen Shot 2022-06-21 at 11 42 52 PM

@ammario
Copy link
Member Author

ammario commented Jun 22, 2022

I then tried recreating this template and hit the following error:
image

@sharkymark
Copy link
Contributor

Yes I have experienced this as well.

@kylecarbs
Copy link
Member

@ammario you are using a very old version of the CLI to update templates. This should have been fixed in: #2397. cc: @Emyrk

@ammario
Copy link
Member Author

ammario commented Jun 22, 2022

I updated an am hitting another ghost resource bug. I think some resources must've not been cleaned up when I was using the broken CLI.

asciicast

@kylecarbs
Copy link
Member

This is due to #2569. I'll publish a new release right now.

@Emyrk
Copy link
Member

Emyrk commented Jun 22, 2022

@ammario old cli puts parameters at the template level. New cli puts them at the import_job level. So mixing can cause some interesting behavior.

But the new cli should prompt new params. New workspace params are not prompted at this time, but I am working on that.

@ammario
Copy link
Member Author

ammario commented Jun 22, 2022

Will this get automatically resolved by a fix or will I have to use a new template name?

@Emyrk
Copy link
Member

Emyrk commented Jun 22, 2022

@ammario actually I am unsure what that bug you are hitting is. I thought it was the pg constraint thing and trying to push a new param with the same scope name and id. Which would be fixed by the new cli because the scope id is now unique per version.

The error in the video I do not know what that is.

@tjcran
Copy link

tjcran commented Jun 22, 2022

The original reported issue is now obsolete, correct? But we should open a new issue to investigate the error @Emyrk mentioned above

The error in the video I do not know what that is.

@misskniss
Copy link

@ammario old cli puts parameters at the template level. New cli puts them at the import_job level. So mixing can cause some interesting behavior.

But the new cli should prompt new params. New workspace params are not prompted at this time, but I am working on that.

@Emyrk will you create an issue for this ☝️ if you have not already?

@Emyrk
Copy link
Member

Emyrk commented Jun 22, 2022

@misskniss #2463

We can close this issue imo

@tjcran tjcran closed this as completed Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Area: HTTP API
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants