Commit 11541e2
authored
feat: filter deployment targets by operation type (#1015)
Add operation-aware filtering for deployment campaign targets
Previously, the deployment target computation logic treated all
operations the same way, selecting all deployable devices based
only on system model compatibility.
This ensures that lifecycle operations can only be performed on
devices where the release is already deployed, preventing invalid
operations on devices without the target release.
Signed-off-by: Omar <omar.brbutovic@secomind.com>1 parent abc18f3 commit 11541e2
File tree
3 files changed
+503
-2
lines changed- backend
- lib/edgehog/deployment_campaigns/deployment_campaign/changes
- test
- edgehog_web/schema/mutation
- edgehog/deployment_campaigns/deployment_campaign/changes
3 files changed
+503
-2
lines changedbackend/lib/edgehog/deployment_campaigns/deployment_campaign/changes/compute_deployment_targets.ex
Lines changed: 29 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
| |||
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
| 46 | + | |
40 | 47 | | |
41 | 48 | | |
42 | | - | |
| 49 | + | |
| 50 | + | |
43 | 51 | | |
44 | 52 | | |
45 | 53 | | |
| |||
104 | 112 | | |
105 | 113 | | |
106 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
107 | 135 | | |
0 commit comments