Issues icon indicating copy to clipboard operation
Issues copied to clipboard

Step template parameter updates on VCS-backed projects do not update the UI fields properly.

Open Justin-Walsh opened this issue 1 year ago • 0 comments

Severity

Sev 3

Version

Earliest tried was 2024.1.12270

Latest Version

I could reproduce the problem in the latest build

What happened?

When updating library step templates in VCS-based projects, the deployment process UI does not update to reflect changes in the step template parameters. This applies to Variable names and changing the default values.

Reproduction

  • Create a "Run a script" Library Step Template with a Param.
  • Add step template to VCS-backed project
  • Commit/Create release
  • Update the parameter name on the Step Template and save
  • Update the step template version on the VCS project (Do not refresh/navigate away)
  • Inspect committed OCL
  • Witness param field not changing
  • Update the value of the param field and commit
  • Inspect committed OCL, see multiple params saved.

A similar process can be followed but with updating the default value of a param, and following the same update process. The value will show as default after the update, but after a hard refresh, it comes up as a custom value with the old default.

Error and Stacktrace

No response

More Information

Repro: https://octopus-operations.octopus.app/app#/Spaces-82/projects/paramrename/branches/refs%2Fheads%2Fmain/deployments/process GH: https://github.com/Justin-Walsh/PersistentParam/blob/main/.octopus/deployment_process.ocl

Workaround

If updating a Step template in a VCS-backed project, refresh the web UI after updating to ensure the current values.

Justin-Walsh avatar Apr 03 '24 18:04 Justin-Walsh