-
Notifications
You must be signed in to change notification settings - Fork 21
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
include nested location ids in client search #917
include nested location ids in client search #917
Conversation
machariamuguku
commented
Jan 27, 2022
- closes [Bug Report]: TuneVacc Card Support Locations not loading correctly #900
- fetch all nested location ids for the selected location in the hierarchy tree; to be included in fetching download data
…ree to be included in fetching download data
…cation ids and mocked endpoint call, add test for endpoind fetch failure
<TreeNode | ||
title="CSB Hopital Bouficha" | ||
value="e2b4a441-21b5-4d03-816b-09d45b17cad7" | ||
/> |
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.
Q: why did this change
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.
That's the correct behavior, no location selected at render
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.
Correct me if am wrong, looks like this is not a snapshot of the options after a select
, but a general snapshot of the options that exist in this particular treeSelect, during first render there should be 2 options the All locations
and root location
, as shown here
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.
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.
I take it back, the tests failed. I think it's a disconnect between the CI and local setup. Ought to be checked out
@@ -285,7 +300,7 @@ describe('components/DownloadClientData/utils/submitForm', () => { | |||
OpenSRPService, | |||
fixtures.locations, | |||
setSubmittingMock | |||
); | |||
).catch(() => {}); |
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.
add a jest mock function and test if its called when the promise is rejected
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.