Discuss: Create unified approach for pipeline settings

Summary

Currently, we don't have a unified approach to how to handle variable expansion, which is a subset of pipeline settings. We should have a unified approach to expanding the values from the YAML files, instead of performing ad-hoc calls to ExpandVariables in only selected YAML elements. This would make things work more in line with user expectations and would avoid the need to document each of the YAML elements where we support variable expansion.

Proposal

Define a unified approach that would take into account user expectations but would also prevent from having to handle one-off situations when new YAML elements are introduced.

In app/services/deployments/update_environment_service.rb, variables of expanded_environment_url should be expanded with sort_and_expand_all.

Implementation Table

Group Issue Link
backend 👈 You are here

Links/References

Edited by Mark Nuzzo