EDM-4049: Do now show sync status of RS without repositories - #661
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Enterprise Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. WalkthroughThe PR updates ChangesResourceSync alert filtering
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: 🔵 Low · up to The change hides sync notifications for resources whose repositories were deleted, but it can also hide valid Pending/Error notifications when repository loading fails. This is a bounded UI correctness risk requiring owner awareness or follow-up. Suggested labels: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files. Full details: No-Hardcoded-SecretsExplanation No hardcoded secret was introduced. The commit changes only Full details: No-Weak-CryptoExplanation PASS. The pull request changes only Full details: No-Injection-VectorsExplanation PASS. The pull request changes only Full details: Container-PrivilegesExplanation PASS. The exact HEAD-versus-parent diff changes only Full details: No-Sensitive-Data-In-LogsExplanation PASS — The pull request adds no logging. The only changed file adds repository fetching and filtering logic; it does not call Full details: Resource-LeaksExplanation PASS — The pull request changes only Full details: Unchecked-ErrorsExplanation PASS: The pull-request commit changes only Full details: Ai-AttributionExplanation The pull request commit uses the permitted Full details: Generated-Files-Not-Hand-EditedExplanation PASS: The pull request changes only Full details: I18n-ComplianceExplanation The commit changes only ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@libs/ui-components/src/components/ResourceSync/ResourceSyncImportStatus.tsx`:
- Around line 167-180: The current memo treats repoList being undefined as “hide
all alerts”; change the logic so you only filter out RS entries when you
actually have a valid repoList—otherwise preserve the original lists. In the
React.useMemo for pendingRs/errorRs (referencing repoList, isLoadingRepos,
allPendingRs, allErrorRs, removeRsWithMissingRepositories), return { pendingRs:
allPendingRs, errorRs: allErrorRs } when repoList is undefined or loading, and
only call removeRsWithMissingRepositories when repoList is present
(non-undefined) to avoid suppressing alerts on transient fetch failures.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Enterprise
Run ID: 301ba0e6-2832-41a0-96a9-b624ef6b60a3
📒 Files selected for processing (1)
libs/ui-components/src/components/ResourceSync/ResourceSyncImportStatus.tsx
69bcc42 to
5e36bfc
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
5e36bfc to
e5d5c82
Compare
Made-with: Cursor
e5d5c82 to
e57e556
Compare
If users delete the repository that a RS is associated with, the UI was still showing the Pending/Error notification about that RS status.
Since eventually the RS will fail with a condition, and the resource sync status won't change while the repository is missing, we'll hide those notifications.
Summary by CodeRabbit
libs/ui-components/ResourceSync status component.libs/types/,libs/i18n/,libs/cypress/, platform-specific app code, the Go auth proxy, container builds, E2E tests, or CI configuration.