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

Inconsistent Auto-Removal of facility advance Filter When Closing Parent Filter #7013

Closed
nihal467 opened this issue Jan 12, 2024 · 1 comment · Fixed by #7031
Closed

Inconsistent Auto-Removal of facility advance Filter When Closing Parent Filter #7013

nihal467 opened this issue Jan 12, 2024 · 1 comment · Fixed by #7031
Assignees

Comments

@nihal467
Copy link
Member

Describe the bug

When applying three advanced facility filters - Kerala (State), Ernakulam (District), and Aluva (Local Body) - an inconsistency arises when attempting to remove the Ernakulam district filter. Specifically, closing the Ernakulam district filter badge does not automatically remove the Aluva local body filter, even though Aluva is a local body within the Ernakulam district.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://care.coronasafe.in/faciltiy
  2. Apply facility advance filters: Kerala (State) > Ernakulam (District) > Aluva (Local Body).
  3. Attempt to remove the Ernakulam district filter by closing the associated badge.
  4. see the error that Aluva local body filter remain applied

Expected behavior

The Aluva local body filter should be auto-removed upon closing the Ernakulam district filter badge. This behavior ensures logical consistency, as Aluva is tied to the Ernakulam district.

similar logic should be applied, if we remove the state "Kerala", then both district and local bodies if applied should be auto-removed

Screenshots

image

@Omkar76
Copy link
Contributor

Omkar76 commented Jan 12, 2024

Hi, I can work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
2 participants