Commit 7e620f1
authored
fix: stop deleting execution steps on step delete (#852)
## Problem
RDS CPU Utilisation spikes when user deletes a step due to the deletion
of corresponding execution steps.
## Solution
**Improvements**:
- Do not delete the execution steps as there is no impact to the pipe
when execution steps are not deleted
- Only impact is at the retrieval of test execution steps, where deleted
steps have to be filtered out. This tradeoff is deemed acceptable as the
query to delete execution steps is expensive for Pipes with many
executions.
## Tests
- [ ] Deleting steps does not affect Pipes, i.e. data for existing steps
remain and Pipe can execute properly
- [ ] Adding new steps to a Pipe works and Pipe executes properly1 parent f1e9560 commit 7e620f1
File tree
3 files changed
+14
-3
lines changed- packages/backend/src
- graphql/mutations
- helpers
- services
3 files changed
+14
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
44 | 49 | | |
45 | 50 | | |
46 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments