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 Audit Component into Function #2695

Merged
merged 11 commits into from
Jan 29, 2021

Conversation

saberlynx
Copy link
Contributor

@saberlynx saberlynx commented Jan 29, 2021

What:

Refactors component into function. I have decided to not use graphQL queries in lieu of loaders and selectors, at this stage because adding passive queries would necessitate changing listpage and detailspage tests to add mocks and I would like to keep them the same for now.

Why:

How:

Manually tested. Everything still works as normal.

Checklist:


this.handleInteraction = this.handleInteraction.bind(this);
let defaultScannerId = OPENVAS_DEFAULT_SCANNER_ID;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Gives defaultScannerId a default value.

const reportExportFileName = userDefaultsSelector.getValueByName(
'reportexportfilename',
);
let reportFormats = [];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Give reportFormats a default value.

@codecov
Copy link

codecov bot commented Jan 29, 2021

Codecov Report

Merging #2695 (b2abcfe) into master (9d91ebd) will increase coverage by 0.05%.
The diff coverage is 61.53%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2695      +/-   ##
==========================================
+ Coverage   60.66%   60.72%   +0.05%     
==========================================
  Files        1113     1113              
  Lines       28066    28063       -3     
  Branches     8024     7991      -33     
==========================================
+ Hits        17025    17040      +15     
+ Misses       9993     9975      -18     
  Partials     1048     1048              
Impacted Files Coverage Δ
gsa/src/web/pages/audits/component.js 50.33% <61.53%> (+10.72%) ⬆️

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 9d91ebd...b2abcfe. Read the comment docs.

@saberlynx saberlynx marked this pull request as ready for review January 29, 2021 13:12
@saberlynx saberlynx requested review from a team, bjoernricks and sarahd93 January 29, 2021 13:12
@saberlynx saberlynx enabled auto-merge January 29, 2021 14:40
@saberlynx saberlynx merged commit 221b83d into greenbone:master Jan 29, 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