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

"Replace Component" feature should carry variable data when applicable #7163

Closed
Retroeer opened this issue Dec 12, 2024 · 1 comment
Closed

Comments

@Retroeer
Copy link

Describe the bug

If you have a Component with the TestProject namespace, and decided to rename it to CoolProject, this component goes missing, this is honestly fine, the issue is that Replace doesn't properly carry the component's variable data, meaning you have to fill out all the variables again. Or manually edit the .json and replace the namespace yourself

To Reproduce

  1. Create a component with a namespace and some properties
  2. Rename the component's namespace
  3. Component goes missing, try to replace it
  4. Component variables are completely wiped, despite the 2 components being the exact same thing basically

Expected behavior

Replacing a component in this way should retain the data

Media/Files

No response

Additional context

No response

@Retroeer
Copy link
Author

I may have gotten this wrong, as I can't reproduce due to changing namespaces just outright deleting the component

@github-project-automation github-project-automation bot moved this from To triage to Done in s&box tracker Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant