Commit 12cdaf6
authored
PLU-615: cascade flow_connections (#1332)
## TL;DR
Deleting a connection from `connections` does not cascade to
`flow_connections`.
## What changed
* Delete from `flow_connections` when a connection is deleted.
* Add index on `connection_id` in `flow_connections`
* Show `Not connected` for a collaborator when the connection is
deleted.
## Tests
1. Delete a connection from a Pipe that has collaborators
2. Verify that the connection has been soft deleted in both
`connections` and `flow_connections`
3. Should show 'Not connected' on the UI
## Deploy Notes
- [ ] Run migration `20251124023536_add_index_on_flow_connections.ts`1 parent 3d9f343 commit 12cdaf6
File tree
2 files changed
+30
-8
lines changed- packages/backend/src
- db/migrations
- graphql/mutations
2 files changed
+30
-8
lines changedLines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
Lines changed: 17 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
15 | 23 | | |
16 | | - | |
| 24 | + | |
| 25 | + | |
17 | 26 | | |
18 | 27 | | |
19 | 28 | | |
0 commit comments