DevPath icon indicating copy to clipboard operation
DevPath copied to clipboard

[Bug]: Clear Filters button does not reset applied filters

Open parnita-Singh opened this issue 6 months ago • 12 comments

What happened?

Description

The "Clear Filters" button is not functioning as expected. After applying one or more filters and clicking "Clear Filters", the selected filters remain active and the filtered results do not return to their default state. Steps to Reproduce

  1. Navigate to the relevant page.
  2. Apply one or more filters.
  3. Click the "Clear Filters" button.

Expected Behavior All applied filters should be removed and the results should return to the default unfiltered state.

Actual Behavior The filters remain applied (or only partially reset), and the displayed results do not fully return to the default state.

Additional Information

Image

Screenshots or screen recordings can be attached if helpful.

Steps to reproduce

Steps to Reproduce

  1. Navigate to the page containing the filter options.
  2. Select one or more filters.
  3. Verify that the displayed results update according to the selected filters.
  4. Click the "Clear Filters" button.
  5. Observe that the applied filters are not removed and/or the results remain filtered.

Expected behaviour

All applied filters should be removed and the results should return to the default unfiltered state.

Area of the app affected

Homepage form

Python version

3.11.4

Operating system

windows 11

Relevant error output or logs


Before submitting

  • [x] I searched existing issues and this has not been reported before.
  • [x] I can reproduce this bug consistently with the steps above.
  • [x] I am running the latest version of the main branch.

parnita-Singh avatar May 31 '26 14:05 parnita-Singh

Thank you for opening your first issue in DevPath.

Please make sure to:

  • Read CONTRIBUTING.md
  • Wait for assignment before starting work
  • Follow repository guidelines carefully

Happy contributing.

github-actions[bot] avatar May 31 '26 14:05 github-actions[bot]

Hi @komalharshita I'm a GSSoC 2026 contributor interested in working on this issue. If it's still available and not already assigned, could you please assign it to me? Thank you!

/assign

aasheeshhh avatar May 31 '26 14:05 aasheeshhh

Hey! @komalharshita The fix should be pretty straightforward - the clear button probably isn't resetting the filter state properly. I'd just trace where the filter values are stored, make sure the button resets them all back to default, and ensure the results re-fetch after clearing. Can you assign this to me?

Aryanbansal-05 avatar May 31 '26 16:05 Aryanbansal-05

/assign

CodesByY22 avatar Jun 02 '26 07:06 CodesByY22

@komalharshita I'd like to work on this — contributing under GSSoC'26

yachikadev avatar Jun 02 '26 08:06 yachikadev

Hi, I am Gssoc contributor and would like to work on this issue. Please assign it to me. Here's a short implementation of this:

Locate the Clear Filters button handler. Reset all filter state values to their default values. Clear any query parameters or stored filter values if used. Trigger a refresh/re-render of the results list after resetting filters. Ensure UI components (dropdowns, checkboxes, search inputs) reflect the cleared state.

-Tests

Verify all selected filters are cleared when the button is clicked. Verify results return to the default unfiltered list. Verify filter UI elements show their default state. Verify no regressions when applying filters again after clearing.

-PR Checklist

✅ Clear Filters resets all filter states

✅ Results return to default view

✅ UI updates correctly

✅ Tests added/updated

✅ Screenshot or test output included in PR

Thank you!!

shriya53 avatar Jun 02 '26 09:06 shriya53

Hi @komalharshita,

I'd like to work on this issue under GSSoC'26.

I reviewed the bug and understand that the Clear Filters button is not fully resetting the filter state. I can investigate the filter state management, ensure all applied filters are cleared correctly, and verify that the results return to the default unfiltered state.

I'll test the fix across different filter combinations and ensure the UI remains consistent without introducing regressions.

Thank you!

Krisha1606 avatar Jun 02 '26 10:06 Krisha1606

I would like to work on this issue. Could you please assign it to me? I can fix the Clear Filters button to properly reset all applied filters.

anshul23102 avatar Jun 02 '26 17:06 anshul23102

@komalharshita I'd like to work on this — contributing under GSSoC'26

chetanbhandari01 avatar Jun 04 '26 17:06 chetanbhandari01

Hi ,I would like to work on this issue under GSSoC 2026. Could you please assign this issue to me?

Thank you!

Akshitha2912v avatar Jun 26 '26 17:06 Akshitha2912v

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions!

github-actions[bot] avatar Nov 20 '26 08:11 github-actions[bot]

This issue was closed because it has been inactive for an extended period. If this issue is still relevant, feel free to reopen it or create a new one.

github-actions[bot] avatar Nov 27 '26 09:11 github-actions[bot]