-
Notifications
You must be signed in to change notification settings - Fork 99
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
Gsa sets default filter #1631
Gsa sets default filter #1631
Conversation
96554ca
to
6d4cf70
Compare
Codecov Report
@@ Coverage Diff @@
## master #1631 +/- ##
=========================================
- Coverage 42.34% 41.55% -0.8%
=========================================
Files 1047 1048 +1
Lines 23984 24051 +67
Branches 6684 6712 +28
=========================================
- Hits 10156 9994 -162
- Misses 12589 12754 +165
- Partials 1239 1303 +64
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am sorry but these changes need tests. We must ensure that the provided filter is the expected filter. Currently this can break without noticing. Also with tests it would be much clearer how this is supposed to work.
6d4cf70
to
435b9f9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very very good to me. Just some additional cleanups.
29ec70a
to
98eb98b
Compare
Known issue which needs a fix: If a locationQuery is used and the filter is changed by the user, it does not change the URL, so at the next rerender the query from the URL will be used again instead of the user's filter. |
gvmd returns two settings with the same ID for the rowsPerPage setting. The first one is the current user setting and the second the global setting. Therefore use the first.
Basically meant as a PoC and example.
Since single settings should be merged now, the test 'should override existing settings' is obsolete
This tests if only one setting is returned in case there are >1 with the same ID.
a6b842d
to
0eeedca
Compare
Checklist: