Skip to content
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

Revert buggy in-memory engine change #2256

Merged
merged 2 commits into from
Nov 28, 2024
Merged

Revert buggy in-memory engine change #2256

merged 2 commits into from
Nov 28, 2024

Conversation

evansd
Copy link
Contributor

@evansd evansd commented Nov 28, 2024

This reverts the changes in #2247 which caused the in-memory engine to give incorrect results. As the in-memory engine is used for dummy data generation I don't think we can afford to live with this.

Fixing this would involve having some mechanism whereby a PatientFrame derived from an EventFrame by picking rows can distinguish patient_ids which are actually present in the frame from those which exist just in order to give less confusing results in the sandbox/debug context.

The bug was originally discovered by the overnight generative tests (thanks Hypothesis!).

Slack discussion:
https://bennettoxford.slack.com/archives/C069YDR4NCA/p1732729097689479

This reverts commit 62b1bae.

The current behaviour is incorrect and, while theoretically fixable, is
not easily fixable and so we revert it for now.
This was originally discovered by Hypothesis, although the example
required shrinking by hand.
Copy link
Contributor

@inglesp inglesp left a comment

Choose a reason for hiding this comment

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

Thanks for adding the regression test

@evansd evansd merged commit 95197de into main Nov 28, 2024
9 checks passed
@evansd evansd deleted the evansd/revert-in-memory branch November 28, 2024 09:30
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