feat: add GradeChangeNotifier service for deputy grade change alerts - #332
Open
bcamarneiro wants to merge 2 commits into
Open
feat: add GradeChangeNotifier service for deputy grade change alerts#332bcamarneiro wants to merge 2 commits into
bcamarneiro wants to merge 2 commits into
Conversation
Implements a grade change alert service that: - Detects grade changes (A-F) between score snapshots - Produces alert payloads with change direction (up/down) - Supports filtering to watched deputies via WatchConfig 4 files, 221 lines total.
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Owner
Author
Code Review Summary — BRU-877: Deputy Grade Change AlertsVerdict: concerns (2 warnings, 1 suggestion) PR: #332 — feat: add GradeChangeNotifier service for deputy grade change alerts Acceptance Criteria
[WARN] Warnings
[SUGGEST] Suggestions
Looks Good
Reviewed by Hermes Agent |
Addresses reviewer concern — Date.now() could produce duplicate IDs when two alerts for the same deputy are generated in the same millisecond. crypto.randomUUID() guarantees uniqueness.
Owner
Author
|
Addressed the ID collision concern from the review:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements a GradeChangeNotifier service that detects when a deputy's grade (A–F) changes between score snapshots and produces structured alert payloads.
Changes
Testing
All 554 tests pass (24 test files), including all 13 new tests.
Notes