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

Fix comparing filters #1677

Merged
merged 5 commits into from
Oct 9, 2019
Merged

Fix comparing filters #1677

merged 5 commits into from
Oct 9, 2019

Conversation

bjoernricks
Copy link
Contributor

@bjoernricks bjoernricks commented Oct 9, 2019

Avoid and fix several issues with filter being null now.

Checklist:

Do not crash if null is passed as a filter to a filter method e.g. and
or merge. It may possible now that the filter is null additionally to
undefined.
The method has been made public a while ago. Therefore update
description and move it to the right place. Also add a small set of
tests for the merge method.
If we need to use the function at more places it should be very fast.
Therefore avoid creating a new stack due to calling another function
internally.
We need to check for null now when using filter methods.
@bjoernricks bjoernricks marked this pull request as ready for review October 9, 2019 10:29
@codecov
Copy link

codecov bot commented Oct 9, 2019

Codecov Report

Merging #1677 into gsa-9.0 will increase coverage by <.01%.
The diff coverage is 90%.

Impacted file tree graph

@@             Coverage Diff             @@
##           gsa-9.0    #1677      +/-   ##
===========================================
+ Coverage    46.98%   46.98%   +<.01%     
===========================================
  Files         1047     1047              
  Lines        24082    24084       +2     
  Branches      6712     6713       +1     
===========================================
+ Hits         11314    11316       +2     
  Misses       11620    11620              
  Partials      1148     1148
Impacted Files Coverage Δ
gsa/src/web/pages/reports/detailspage.js 3.5% <0%> (ø) ⬆️
gsa/src/gmp/utils/identity.js 100% <100%> (ø) ⬆️
gsa/src/gmp/models/filter.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c52f3d4...47d4eec. Read the comment docs.

@swaterkamp swaterkamp merged commit 9cf654a into greenbone:gsa-9.0 Oct 9, 2019
@bjoernricks bjoernricks deleted the fix-comparing-filters branch October 9, 2019 13:22
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.

2 participants