-
Notifications
You must be signed in to change notification settings - Fork 15
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
fix: encounter date sorting #3177
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3177 +/- ##
==========================================
+ Coverage 87.07% 89.28% +2.21%
==========================================
Files 221 85 -136
Lines 13723 4267 -9456
Branches 726 729 +3
==========================================
- Hits 11949 3810 -8139
+ Misses 1765 436 -1329
- Partials 9 21 +12
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
Locally I'm consistently getting the first two tests fail on chrome. I think it has to do with the compiling of the /view-data
endpoint that takes ~10-15 seconds. Previously it would work because page.waitForUrl has a longer timeout.
If we increase the timeout on expect
in the playwright config to be 15 seconds (expect: { timeout: 15_000}
) we can match the functionality that waitForUrl was providing.
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.
ah, nice! everything was passing locally for me, but everyone hates flaky tests - I'll update
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.
just pushed it up, could you try again @BobanL ?
1142364
to
2b4d415
Compare
2b4d415
to
8335173
Compare
PULL REQUEST
Summary
Fix encounter date sorting:
report_date
sorting to fall back to create date sortingEcrTableClient
was overwriting the search params/props provided valueuseQueryParam
hook to its own file in a newhooks
folder so it's more easily reused across different components (felt weird importing fromBaseFilter
here)EcrTableClient
logicRelated Issue
Fixes #3134
Acceptance Criteria
Dates should be properly ordered
Additional Information