-
Notifications
You must be signed in to change notification settings - Fork 329
fix: Group alert histories by evaluation time #1338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: df32655 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR Review✅ Overall assessment: Well-implemented feature with excellent test coverage. One minor issue to address. Issues
Strengths
Minor observations (non-blocking)
|
E2E Test Results✅ All tests passed • 39 passed • 3 skipped • 312s
|
8b2db33 to
5756505
Compare
| $replaceRoot: { | ||
| newRoot: '$docs', | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason we don't want to do the aggregation on the db level? like computing isOk and all that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My only concern with that was potentially breaking the API by changing the response format, requiring us to coordinate fronted and backend deployment. I can probably keep the format similar enough to avoid issues though, so I will give that a try.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated 👍
5756505 to
c9cbfc1
Compare
wrn14897
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great fix!
Closes HDX-2728
Summary
This PR groups AlertHistory records by
createdAttime to avoid showing multiple alert histories for the same time on the alerts page. There can be multiple AlertHistory records for the samecreatedAttime for grouped alertsTesting
To test this, setup a Saved Search alert with a group by configured, then navigate to the alerts page to see one history per time: