care_fe
care_fe copied to clipboard
Number of Users under each facility
The users are mixed up when viewed On viewing View users feature, we are randomly seeing all the users mixed up for each facility.
To Reproduce Steps to reproduce the behavior:
-
Go to 'Facilities - Eg Gokak '
-
Click on 'manage Facility'
-
Scroll down to 'View Users'
-
See error - 39 users are shown
-
Go to 'Users'
-
Click on 'Advance filters'
-
Scroll down to 'State: Karntaka, District : Belagavi '
-
See error: We see 11 Users for Gokak.
Expected behavior Under (View Facility - Manage Facility - view users) we have to see only the users linked to that particular facility as home facility.
Screenshots When Belagavi district is viewed
When Gokak facility is viewed separately
**Deskt
op (please complete the following information):**
- Browser [e.g. chrome, ]
@rithviknishad @NNSiri can you assign this to me
@NNSiri @rithviknishad this issue should be solved from the backend side by adding extra filter field to filter it according to the home facility. This would be a better approach can you assign this to me I will make a PR and if possible you can move this issue to the care backend and assign me
I can make part by part PR one in frontend and other in backend. Can you plz assign me so that I can start working
@rithviknishad can I take this up?
Any update on this issue ?
@NNSiri I'm ready to take this up I have had a look on this issue last week. there is no filter for the users based on home facility field that needs to be added it's a frontend and backend issue waiting for a confirmation from @rithviknishad
@hrit2773 We could develop a better UX to explicitly convey to the users what is being shown, whether the listed users belong to home or linked facilities. One could interpret it differently if not mentioned.
@rithviknishad let's give an option to choose whether to show all the users associated with that facility or just with home facility.. how would that be?
Works, maybe a checkbox saying "include linked facilities"
@rithviknishad yes so the tasks to do would be
- adding a checkbox to select whether to filter based on home facility or linked facility
- adding a filter for home facility
- writing test cases
https://github.com/coronasafe/care_fe/pull/7685 the issue is resolved