Issues icon indicating copy to clipboard operation
Issues copied to clipboard

Common Variables set on Library Variable Sets are deleted when Environment mapping from Tenant Variables are changed.

Open danefalvo opened this issue 3 years ago • 1 comments

Team

  • [X] I've assigned a team label to this issue

Severity

Not Blocking but has removed many variables from at least one instance

Version

2022.4.5099

Latest Version

No response

What happened?

  1. Create a Variables Template inside a Variable Set, give it a default value (in our example its been set to 'VarTemp1 Variable')
  2. Attach the variable set to a project
  3. Map the project to a Tenant
  4. Set the relevant environments on the Tenant
  5. Change the common variable value within the Tenant for the variable set and save it (in our example its been changed to 'Very Important Information')
  6. Remove any environment from the Tenant Mapping - the common variable is reset back to the previous value (in our case 'VarTemp1 Variable')

Reproduction

The Tenant with a default variable value (shown on left) and the tenant view of the variable set within the project's attached Variable Set Template with the variable value changed (shown on right):

image

Remove a mapped environment:

image

image

Go back to the New Variable Set in the tenant and see the variable has been reset back to the previous value:

image

Re-add the previous environment:

image

The updated variable ('Very Important Information') is gone forever:

image

Error and Stacktrace

No response

More Information

No response

Workaround

No response

danefalvo avatar Oct 20 '22 13:10 danefalvo

Customer that reported the issue (internal) - https://octopus.zendesk.com/agent/tickets/99114

Clare-Octopus avatar Oct 20 '22 15:10 Clare-Octopus

Any updates for this? We are having the same problem and most our variables are in library variable sets.

siimv avatar Feb 01 '23 22:02 siimv

Same issue for me as well.

8YdUwVC8CZMa avatar Mar 17 '23 18:03 8YdUwVC8CZMa

Another report of this issue (internal ticket link): https://octopus.zendesk.com/agent/tickets/112207

briggs-octo avatar Mar 17 '23 18:03 briggs-octo

Release Note: Fix tenant variable removal when removing environments from projection connection

octoreleasebot avatar May 10 '23 05:05 octoreleasebot

:tada: The fix for this issue has been released in:

Release stream Release
2023.2 2023.2.10466
2023.3+ all releases

Octobob avatar May 19 '23 07:05 Octobob