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

Duplicate functionality for Environments saves incorrect values #7758

Open
OptimusPi opened this issue Nov 22, 2024 · 0 comments
Open

Duplicate functionality for Environments saves incorrect values #7758

OptimusPi opened this issue Nov 22, 2024 · 0 comments
Assignees

Comments

@OptimusPi
Copy link

OptimusPi commented Nov 22, 2024

Product

Nitro

Version

22.0.0

Link to minimal reproduction

https://hotchocolategraphql.slack.com/archives/C02A2NX3WAH/p1732288751665649?thread_ts=1732228494.399289&cid=C02A2NX3WAH

Steps to reproduce

  1. Create Environment A
  2. Set a variable "LetterName" and value "A"
  3. Duplicate Environment A
  4. Set the "LetterName" value "B"
  5. Save as Environment B
  6. Save and Synchronize Workspace
  7. Log out log in again

You can see the value is the same on both environments but it should not be!

  1. Duplicate B
  2. Set value to "C" and save as Environment C
  3. Save and synchronize workspace
  4. Log out and log in again

You can see the value of all environments is "C"!

p.s. I didn't try a lot of things such as document, folder, API. Just Environments. I think it's copying the ID during Duplicate functionality

What is expected?

When Duplicating an environment, the values are the same. When saving as a new Title for the Environment, the values should be able to be changed without editing the original Environment values.

What is actually happening?

When Duplicating an environment, the values are the same. When saving as a new Title for the Environment, the values can be changed and Nitro is saving the new values to both environments, as if they are linked by the same unique ID. This bug made me lose work and have to re-do everything on the original environment I Duplicated.

Relevant log output

Additional context

I left a Slack message, Rafael said "thx will fix it". 👍
Look in the #Nitro channel or this link hopefully works: https://hotchocolategraphql.slack.com/archives/C02A2NX3WAH/p1732288751665649?thread_ts=1732228494.399289&cid=C02A2NX3WAH

I just created this issue for you to help you track it. Thank you! 👍

Here is also the attached screen recording
https://github.com/user-attachments/assets/6f8f8f64-acc1-40ca-8fc3-2628cf978454

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants