uselagoon / lagoon

Lagoon, the developer-focused application delivery platform
https://docs.lagoon.sh/
Apache License 2.0
560 stars 149 forks source link

fix: get environment by namespacename before getting deployment #3702

Closed shreddedbacon closed 6 months ago

shreddedbacon commented 6 months ago

General Checklist

Database Migrations

A small fix to the order of collecting the environment information in the actions-handler when receiving build updates. This is done because the actions-handler would try to get deploymentbyname using the "made safe" environment name, not the lagoon environment name (eg, feature-this-branch instead of the expected feature/this/branch)

This changes the process to collect the environment earlier using the namespace name and provide the lagoon environment name to the deploymentbyname query.