Support Enable Remote Apply flag on environment settings
tomer-landesman opened this issue · comments
As part of remote apply feature, we let users to turn remote apply on or off for a remote backend environment, given few pre-conditions:
- they have the EDIT_ALLOW_REMOTE_APPLY permission
- remote backend is on for that environment
- auto approval is on for that environment
In case one of those requirements are not met - turning on Remote Apply is not possible.
DoD
- environment resource has a new field,
isRemoteApplyEnabled
. its a boolean that defaults to false. - update environment endpoint modified to support that field (only for existing resource)
- make sure that it is not enabled to set it as true if said pre conditions are not met