Commit 7987e44
authored
replace useFetchExecutionInfo with optimized usePipelineRunData (#1095)
## Description
Refactored the pipeline run data fetching mechanism by replacing the `RootExecutionStatusProvider` implementation with the `usePipelineRunData` hook. This change improves data fetching by:
1. Renaming `rootExecutionId` to `pipelineRunId` throughout the codebase for better clarity
2. Removing the custom polling logic in favor of React Query's built-in refetch capabilities
3. Simplifying the execution data fetching process with more efficient caching
## Type of Change
- [x] Improvement
- [x] Cleanup/Refactor
## Checklist
- [x] I have tested this does not break current pipelines / runs functionality
- [ ] I have tested the changes on staging
## Test Instructions
1. Navigate to a pipeline run page
2. Verify that execution data loads correctly
3. For running pipelines, verify that polling still works as expected
4. For completed pipelines, verify that polling stops appropriately1 parent d529210 commit 7987e44
File tree
7 files changed
+109
-461
lines changed- src
- components/PipelineRun
- hooks
- routes/PipelineRun
- services
7 files changed
+109
-461
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments