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

include nested location ids in client search #917

Merged

Conversation

machariamuguku
Copy link
Member

…ree to be included in fetching download data
…cation ids and mocked endpoint call, add test for endpoind fetch failure
Comment on lines 72 to 75
<TreeNode
title="CSB Hopital Bouficha"
value="e2b4a441-21b5-4d03-816b-09d45b17cad7"
/>
Copy link
Collaborator

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

Copy link
Member Author

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

Copy link
Collaborator

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Screenshot from 2022-01-27 15-53-16
Only one label until you click the dropdown

Copy link
Member Author

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(() => {});
Copy link
Contributor

@KipSigei KipSigei Jan 27, 2022

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

Copy link
Member Author

Choose a reason for hiding this comment

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

@machariamuguku machariamuguku merged commit 82bf668 into master Jan 27, 2022
@machariamuguku machariamuguku deleted the 900-include-nested-location-ids-in-client-search branch January 27, 2022 13:57
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.

[Bug Report]: TuneVacc Card Support Locations not loading correctly
4 participants