Skip to content

Comments

fix: hearingEditor middleware infinite recursion Refs: KER-590#1254

Merged
mikkojamG merged 1 commit intomainfrom
fix/KER-590-hearing-editor-infinite-recursion
Feb 24, 2026
Merged

fix: hearingEditor middleware infinite recursion Refs: KER-590#1254
mikkojamG merged 1 commit intomainfrom
fix/KER-590-hearing-editor-infinite-recursion

Conversation

@mikkojamG
Copy link
Contributor

@mikkojamG mikkojamG commented Feb 13, 2026

@mikkojamG mikkojamG requested a review from a team as a code owner February 13, 2026 12:41
@mikkojamG mikkojamG force-pushed the fix/KER-590-hearing-editor-infinite-recursion branch from ac52709 to c6fc4fb Compare February 13, 2026 12:47
@azure-pipelines
Copy link

KERROKANTASI-UI branch is deployed to platta: https://kerrokantasi-pr1254-ui.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

e2e tests result is success for https://kerrokantasi-pr1254-ui.dev.hel.ninja 😆🎉🎉🎉

@mikkojamG mikkojamG force-pushed the fix/KER-590-hearing-editor-infinite-recursion branch 2 times, most recently from 51baea5 to 8c26323 Compare February 13, 2026 13:19
@mikkojamG mikkojamG force-pushed the fix/KER-590-hearing-editor-infinite-recursion branch from 8c26323 to 5ef6e2e Compare February 13, 2026 13:26
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 normalizeReceivedHearing to use a shared Set of action types and to add an isNormalized flag 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.

@azure-pipelines
Copy link

KERROKANTASI-UI branch is deployed to platta: https://kerrokantasi-pr1254-ui.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

e2e tests result is success for https://kerrokantasi-pr1254-ui.dev.hel.ninja 😆🎉🎉🎉

@mikkojamG mikkojamG force-pushed the fix/KER-590-hearing-editor-infinite-recursion branch from 5ef6e2e to e8d9677 Compare February 16, 2026 08:18
@azure-pipelines
Copy link

KERROKANTASI-UI branch is deployed to platta: https://kerrokantasi-pr1254-ui.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

e2e tests result is success for https://kerrokantasi-pr1254-ui.dev.hel.ninja 😆🎉🎉🎉

@mikkojamG mikkojamG force-pushed the fix/KER-590-hearing-editor-infinite-recursion branch from e8d9677 to 718fa91 Compare February 24, 2026 09:26
@azure-pipelines
Copy link

KERROKANTASI-UI branch is deployed to platta: https://kerrokantasi-pr1254-ui.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

e2e tests result is success for https://kerrokantasi-pr1254-ui.dev.hel.ninja 😆🎉🎉🎉

@mikkojamG mikkojamG force-pushed the fix/KER-590-hearing-editor-infinite-recursion branch from 718fa91 to 2684dfc Compare February 24, 2026 10:12
@mikkojamG mikkojamG force-pushed the fix/KER-590-hearing-editor-infinite-recursion branch from 2684dfc to 55ce4c3 Compare February 24, 2026 10:52
@sonarqubecloud
Copy link

@azure-pipelines
Copy link

KERROKANTASI-UI branch is deployed to platta: https://kerrokantasi-pr1254-ui.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link

e2e tests result is success for https://kerrokantasi-pr1254-ui.dev.hel.ninja 😆🎉🎉🎉

@mikkojamG mikkojamG merged commit 8eab6a3 into main Feb 24, 2026
27 checks passed
@mikkojamG mikkojamG deleted the fix/KER-590-hearing-editor-infinite-recursion branch February 24, 2026 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants