pycontw / pycon.tw

PyCon TW Proposal System & Backend Server
https://tw.pycon.org/prs
MIT License
95 stars 107 forks source link

fix(category): fix category filtering not working when order by other… #1193

Closed iknowright closed 5 months ago

iknowright commented 5 months ago

fix category filtering not working when ordered by other attributes on review table

Types of changes

Description

based on

Steps to Test This Pull Request

Steps to reproduce the behavior:

  1. Go to review page
  2. when default ALL is applied
  3. click any sort button on any column
  4. will show none of proposals (expected all)m.

Solution

applied |default'' template tag to sorting <a href> tag to make category appears to be empty on URL location, then backend will not filter it wrong.

codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 71.19%. Comparing base (fca6fd2) to head (53b0638). Report is 5 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1193 +/- ## ======================================= Coverage 71.19% 71.19% ======================================= Files 84 84 Lines 3451 3451 ======================================= Hits 2457 2457 Misses 994 994 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

SivanYeh commented 5 months ago

LGTM!