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

Refactor of CPEs Listpage #2757

Merged
merged 7 commits into from
Feb 26, 2021
Merged

Refactor of CPEs Listpage #2757

merged 7 commits into from
Feb 26, 2021

Conversation

y0urself
Copy link
Member

What:

  • Refactored CPEs Listpage to use GraphQL

Why:

How:

Checklist:

@codecov
Copy link

codecov bot commented Feb 25, 2021

Codecov Report

Merging #2757 (58e77b9) into master (fb0bdf4) will increase coverage by 0.01%.
The diff coverage is 86.04%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2757      +/-   ##
==========================================
+ Coverage   63.37%   63.39%   +0.01%     
==========================================
  Files        1119     1119              
  Lines       28831    28868      +37     
  Branches     8148     8154       +6     
==========================================
+ Hits        18272    18301      +29     
- Misses       9562     9570       +8     
  Partials      997      997              
Impacted Files Coverage Δ
gsa/src/web/pages/cpes/listpage.js 86.66% <86.04%> (-13.34%) ⬇️
gsa/src/gmp/models/cpe.js 90.00% <0.00%> (-6.67%) ⬇️

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 fb0bdf4...58e77b9. Read the comment docs.

@y0urself y0urself marked this pull request as ready for review February 25, 2021 08:31
@y0urself y0urself requested a review from a team February 25, 2021 08:31
const [, renewSessionTimeout] = useUserSessionTimeout();

// Powerfilter
const fallbackFilter = Filter.fromString('sort-reverse=modified');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you do me a favor and move this filter outside of the component function. currently it is re-created on every render which isn't necessary at all.

CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Björn Ricks <bjoern.ricks@gmail.com>
@y0urself y0urself merged commit 2fd727b into greenbone:master Feb 26, 2021
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