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

Alert content composer #1280

Merged
merged 6 commits into from
Apr 15, 2019
Merged

Alert content composer #1280

merged 6 commits into from
Apr 15, 2019

Conversation

bjoernricks
Copy link
Contributor

@bjoernricks bjoernricks commented Apr 15, 2019

Fix opening the content composer from the alert dialog.

  • Always open dialog independent of loading errors
  • Remove unnecessary loading of set filter
  • Use undefined in state for not set filter id value

Fixes #1276

Checklist:

The method is already called from a bind function. Therefore it doesn't
need to be bind too.
Regardless of whether the displayed filter could be loaded always open
the content composer from the alert dialog.
This allows to remove loading of the filter from alerts component
because we get the used filter from the already passed list of filters.
@codecov
Copy link

codecov bot commented Apr 15, 2019

Codecov Report

Merging #1280 into gsa-8.0 will increase coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           gsa-8.0   #1280      +/-   ##
==========================================
+ Coverage    17.99%     18%   +<.01%     
==========================================
  Files          952     952              
  Lines        27668   27659       -9     
  Branches      5979    5986       +7     
==========================================
  Hits          4980    4980              
+ Misses       21282   21273       -9     
  Partials      1406    1406
Impacted Files Coverage Δ
gsa/src/web/pages/alerts/component.js 0% <0%> (ø) ⬆️
gsa/src/web/pages/alerts/contentcomposerdialog.js 0% <0%> (ø) ⬆️

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 feffa6a...1bf7558. Read the comment docs.

@bjoernricks bjoernricks marked this pull request as ready for review April 15, 2019 09:42
@bjoernricks bjoernricks requested a review from a team April 15, 2019 09:42
Within GSA we should use undefined for unset values. At both ends
(dialog and api) we should convert undefined to the expected (maybe
different like in this case) value.
Don't require a filter_id parameter to be passed to create_alert_gmp
function. The filter_id parameter is optional in GMP.
@bjoernricks bjoernricks merged commit 3baade4 into greenbone:gsa-8.0 Apr 15, 2019
@bjoernricks bjoernricks deleted the alert-content-composer branch April 15, 2019 10:49
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