Commit 3ccc5d2
authored
Fix run metadata loading when deep linking executions (#1402)
## Fix run metadata loading when deep linking executions
- give `useFetchPipelineRunMetadata` its own query key so metadata no longer
shares cache entries with execution-state queries, preventing the two
requests from clobbering each other
- have `ExecutionDataProvider` derive the correct run id before requesting
metadata so the query refires after navigating straight to an execution
or toggling between subgraphs
This stops the race that was dropping run details and the cancel button when
opening runs by execution id or jumping back to the root graph.
## Type of Change
- [x] Improvement
- [x] Cleanup/Refactor
## Checklist
- [x] I have tested this does not break current pipelines / runs functionality
- [x] I have tested the changes on staging
## Test Instructions
1. Navigate to pipeline run details pages
2. Verify that pipeline metadata is correctly loaded
3. Check that nested executions properly fetch metadata only when needed1 parent 99c3437 commit 3ccc5d2
File tree
3 files changed
+15
-9
lines changed- src
- components/PipelineRun
- providers
- services
3 files changed
+15
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
| 281 | + | |
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
155 | 164 | | |
156 | 165 | | |
157 | 166 | | |
158 | 167 | | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
| 168 | + | |
163 | 169 | | |
164 | 170 | | |
165 | 171 | | |
| |||
239 | 245 | | |
240 | 246 | | |
241 | 247 | | |
242 | | - | |
243 | | - | |
| 248 | + | |
| 249 | + | |
244 | 250 | | |
245 | 251 | | |
246 | 252 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments