fix: stop dashboard and cockpit dag run refetch loop#1954
Conversation
📝 WalkthroughWalkthroughRefactored DAG run query handling to use memoized query objects and stable query keys instead of inline construction. Added helper functions to normalize and sort query parameters, enabling semantic equivalence checking. Updated Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
ui/src/features/dag-runs/hooks/__tests__/useExactDAGRuns.test.tsx (1)
1-4: Missing GPL v3 license header.Per coding guidelines, source files should include GPL v3 license headers. Run
make addlicenseto add the required header.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@ui/src/features/dag-runs/hooks/__tests__/useExactDAGRuns.test.tsx` around lines 1 - 4, The file is missing the required GPL v3 license header; add the standard GPL v3 header comment to the top of the test file (the file containing useExactDAGRuns.test.tsx which tests useExactDAGRuns and imports DAGRunListQuery) — run the repository helper (make addlicense) or insert the canonical GPL v3 header block as used across the project so the file matches other sources and CI/license checks.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@ui/src/features/dag-runs/hooks/__tests__/useExactDAGRuns.test.tsx`:
- Around line 1-4: The file is missing the required GPL v3 license header; add
the standard GPL v3 header comment to the top of the test file (the file
containing useExactDAGRuns.test.tsx which tests useExactDAGRuns and imports
DAGRunListQuery) — run the repository helper (make addlicense) or insert the
canonical GPL v3 header block as used across the project so the file matches
other sources and CI/license checks.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: c6b5ed06-0e25-48b0-af84-cfb5bb52a8e2
📒 Files selected for processing (4)
ui/src/features/cockpit/hooks/useDateKanbanData.tsui/src/features/dag-runs/hooks/__tests__/useExactDAGRuns.test.tsxui/src/features/dag-runs/hooks/dagRunPagination.tsui/src/pages/index.tsx
Summary
Testing
make fmtcd ui && pnpm exec vitest run src/features/dag-runs/hooks/__tests__/useExactDAGRuns.test.tsxcd ui && pnpm typecheckSummary by CodeRabbit
Refactor
Tests