fix: hearingEditor middleware infinite recursion Refs: KER-590#1254
fix: hearingEditor middleware infinite recursion Refs: KER-590#1254
Conversation
ac52709 to
c6fc4fb
Compare
|
KERROKANTASI-UI branch is deployed to platta: https://kerrokantasi-pr1254-ui.dev.hel.ninja 🚀🚀🚀 |
e2e tests result is success for https://kerrokantasi-pr1254-ui.dev.hel.ninja 😆🎉🎉🎉 |
51baea5 to
8c26323
Compare
8c26323 to
5ef6e2e
Compare
There was a problem hiding this comment.
Pull request overview
Fixes a Sentry-reported infinite recursion in the hearing editor middleware by attempting to mark handled actions as “normalized”, and adds middleware unit tests to cover the new behavior.
Changes:
- Updates
normalizeReceivedHearingto use a sharedSetof action types and to add anisNormalizedflag to prevent reprocessing. - Adds a new middleware test suite covering normalization, editor syncing, and frontId behavior.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
src/middleware/hearingEditor.js |
Changes the hearing normalization/sync middleware logic to avoid repeated processing. |
src/middleware/__tests__/hearingEditor.test.js |
Adds tests intended to validate the middleware behaviors and guard against recursion. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
KERROKANTASI-UI branch is deployed to platta: https://kerrokantasi-pr1254-ui.dev.hel.ninja 🚀🚀🚀 |
e2e tests result is success for https://kerrokantasi-pr1254-ui.dev.hel.ninja 😆🎉🎉🎉 |
5ef6e2e to
e8d9677
Compare
|
KERROKANTASI-UI branch is deployed to platta: https://kerrokantasi-pr1254-ui.dev.hel.ninja 🚀🚀🚀 |
e2e tests result is success for https://kerrokantasi-pr1254-ui.dev.hel.ninja 😆🎉🎉🎉 |
e8d9677 to
718fa91
Compare
|
KERROKANTASI-UI branch is deployed to platta: https://kerrokantasi-pr1254-ui.dev.hel.ninja 🚀🚀🚀 |
e2e tests result is success for https://kerrokantasi-pr1254-ui.dev.hel.ninja 😆🎉🎉🎉 |
718fa91 to
2684dfc
Compare
2684dfc to
55ce4c3
Compare
|
|
KERROKANTASI-UI branch is deployed to platta: https://kerrokantasi-pr1254-ui.dev.hel.ninja 🚀🚀🚀 |
e2e tests result is success for https://kerrokantasi-pr1254-ui.dev.hel.ninja 😆🎉🎉🎉 |



KER-590
KERROKANTASI-UI-2E