Repository navigation
Use live data on InvestigationsOverviewPage - #4218
Merged
Merged
Conversation
jschuurk-kr
marked this pull request as draft
November 2, 2026 10:00
Contributor
Author
|
Several tests in |
jschuurk-kr
marked this pull request as ready for review
November 2, 2026 12:21
Lionqueen94
approved these changes
Nov 2, 2026
praseodym
approved these changes
Nov 2, 2026
This branch was successfully deployed
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.
What & why
While testing PR #4190 I discovered that in some situations the modal shown when deleting an investigation does not contain the warning that the related data entry will also be removed. Reason is that we only fetch the data entry states when landing on the investigations overview page. So if a typist starts data entry and the coordinator removes the investigation before returning to the investigations overview page, the coordinator is not informed that removing the investigation will also remove the data entry.
There's also the similar scenario in which a typist deletes their data entry and the coordinator deletes the investigation before the data entry status is refreshed. In that case the coordinator does see the warning when they shouldn't.
I opted to solve this by making the investigations overview page use our
useLiveDatahook instead of only re-fetching when the component mounts. Three reasons for this:How to test
Coordinator - typist:
Coordinator - coordinator:
Optionally, also try deleting the investigation at various points and check the modal for the text "Let op: De gecorrigeerde telresultaten die al zijn ingevoerd worden ook verwijderd."
Reviewer notes
I looked at the
ElectionStatusPagecomponent anduseLiveDatafunction to make sure the only change is that the page now also auto-refreshes. Please check that is indeed the case.