Reset notification status on decision changes - #42
Conversation
✅ Deploy Preview for pbast10-pacific-basin-conference-on-adso-cd-cb27cc3e73 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Warning Review limit reached
Next review available in: 47 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough
ChangesNotification status reset
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
scripts/test_sheets_sync.mjs (1)
669-689: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winCover the
Confirmednotification state as well.This test verifies reset from
Sent, but the behavior also promises reset fromConfirmed. Add a companion case or parameterize the prior notification status to cover both idempotency states.🤖 Prompt for 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. In `@scripts/test_sheets_sync.mjs` around lines 669 - 689, Extend the rejection update test around rejectionUpdate to also exercise a prior notificationStatus of "Confirmed", using a companion case or parameterized statuses. Verify that changing finalDecision resets both "Sent" and "Confirmed" to "Not Sent" while preserving the existing assertions and update flow.
🤖 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 `@google-apps-script/AdminSync.gs`:
- Around line 73-76: Update the decision comparison in the current-row
synchronization flow around adminRowFromValues_ so the stored value and
normalized.finalDecision use the same canonical representation, including
mapping an empty stored decision to "Pending". Reset notificationStatus only
when those canonical decision values differ, preserving existing Sent/Confirmed
status for no-op Pending updates.
---
Nitpick comments:
In `@scripts/test_sheets_sync.mjs`:
- Around line 669-689: Extend the rejection update test around rejectionUpdate
to also exercise a prior notificationStatus of "Confirmed", using a companion
case or parameterized statuses. Verify that changing finalDecision resets both
"Sent" and "Confirmed" to "Not Sent" while preserving the existing assertions
and update flow.
🪄 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: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 29895445-6d30-42d7-82be-d4692571122f
📒 Files selected for processing (2)
google-apps-script/AdminSync.gsscripts/test_sheets_sync.mjs
Fix
Sent.Validation
node scripts/test_sheets_sync.mjspython3 scripts/check_site.pygit diff --checkSummary by CodeRabbit
Bug Fixes
Tests