Migrator doesn't gracefully handle project triggers with an environment filter #5084
Labels
feature/migrator
kind/bug
This issue represents a verified problem we are committed to solving
size/tiny
~1 hour
Milestone
Imagine you have an project trigger which is filtered so it only applies for events from certain environments, like
Dev
andTest
. If you export a project which can only be deployed toTest
but notDev
, theDev
environment won't be exported since it's not necessary for that project. Now when you import the project, it will fail when importing the project trigger because there is no such environment asDev
in the target.What I expected to happen
When importing a project trigger which is restricted to certain environments, if any of those environments do not exist in the target, remove the restriction instead of failing the import.
Most other places follow this logic. Following suit will make this scenario behave similarly.
Affected versions
Octopus Server: 3.5 until fixed.
Workarounds
Nothing good:
The text was updated successfully, but these errors were encountered: