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

#46 Retain ordering, view style and limit #614

Merged
merged 2 commits into from Oct 29, 2022

Conversation

SebCorbin
Copy link
Contributor

Two enhancements in this PR:

  • the 'show', 'order_by', 'order_dir', 'view_style' params are retained so when you click on the "Requests" menu item, you keep these (they won't be reset when "Clear all filters" is clicked as they are not filters)
  • a invisible submit button was added to filter form so that when you set a value and press enter, the form is submitted

I will open a cleanup issue, as I find the filters form heavily relying on JavaScript, and it should not be IMHO.

@SebCorbin SebCorbin force-pushed the 46-remember-ordering-view-style branch from 13b18a9 to 8b179a9 Compare October 27, 2022 16:28
@codecov
Copy link

codecov bot commented Oct 27, 2022

Codecov Report

Merging #614 (e88eeac) into master (4934ffe) will increase coverage by 1.61%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #614      +/-   ##
==========================================
+ Coverage   84.63%   86.25%   +1.61%     
==========================================
  Files          52       52              
  Lines        2076     2080       +4     
==========================================
+ Hits         1757     1794      +37     
+ Misses        319      286      -33     
Impacted Files Coverage Δ
silk/views/requests.py 98.85% <100.00%> (+6.07%) ⬆️
silk/request_filters.py 83.01% <0.00%> (+17.61%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@SebCorbin SebCorbin self-assigned this Oct 27, 2022
@SebCorbin SebCorbin requested a review from a team October 28, 2022 08:47
@albertyw albertyw merged commit 93970eb into master Oct 29, 2022
@albertyw albertyw deleted the 46-remember-ordering-view-style branch October 29, 2022 20:14
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.

None yet

2 participants