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 setting comments of BPM nodes #2781

Merged
merged 3 commits into from
Mar 10, 2021

Conversation

swaterkamp
Copy link
Member

What:
Fix setting comments of BPM nodes.

Why:
The correct value in the textfield wasn't shown and got overwritten by each single key press.

How:
Create a node with a proper comment and edit a node's comment. In both cases the current comment value was shown to the user and after clicking save it was applied to the node.

Checklist:

@swaterkamp swaterkamp requested review from sarahd93 and saberlynx March 9, 2021 15:09
@swaterkamp swaterkamp self-assigned this Mar 9, 2021
@swaterkamp swaterkamp requested a review from a team March 9, 2021 15:09
@codecov
Copy link

codecov bot commented Mar 9, 2021

Codecov Report

Merging #2781 (58fc3fd) into gsa-21.04 (34466a4) will increase coverage by 0.14%.
The diff coverage is 98.07%.

Impacted file tree graph

@@              Coverage Diff              @@
##           gsa-21.04    #2781      +/-   ##
=============================================
+ Coverage      53.71%   53.86%   +0.14%     
=============================================
  Files           1072     1075       +3     
  Lines          26223    26210      -13     
  Branches        7474     7477       +3     
=============================================
+ Hits           14086    14117      +31     
+ Misses         11019    10977      -42     
+ Partials        1118     1116       -2     
Impacted Files Coverage Δ
gsa/src/gmp/cancel.js 100.00% <ø> (ø)
gsa/src/gmp/capabilities/capabilities.js 100.00% <ø> (ø)
gsa/src/gmp/capabilities/everything.js 100.00% <ø> (ø)
gsa/src/gmp/collection/collectioncounts.js 82.60% <ø> (ø)
gsa/src/gmp/collection/parser.js 61.70% <ø> (ø)
gsa/src/gmp/command.js 100.00% <ø> (ø)
gsa/src/gmp/commands/alerts.js 14.28% <ø> (ø)
gsa/src/gmp/commands/audits.js 52.45% <ø> (ø)
gsa/src/gmp/commands/auth.js 100.00% <ø> (ø)
gsa/src/gmp/commands/certbund.js 63.63% <ø> (ø)
... and 264 more

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 e79e910...58fc3fd. Read the comment docs.

Copy link
Contributor

@bjoernricks bjoernricks left a comment

Choose a reason for hiding this comment

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

I would love to see a test for this.

@swaterkamp
Copy link
Member Author

Afaik we don't have a testing concept for dialogs, yet.

Copy link
Contributor

@bjoernricks bjoernricks left a comment

Choose a reason for hiding this comment

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

I am feeling not very well approving this PR without a test.

@swaterkamp
Copy link
Member Author

I'll think about how to test dialogs today. There might be something like a prototype for that in master.

@bjoernricks bjoernricks merged commit 794e5eb into greenbone:gsa-21.04 Mar 10, 2021
@swaterkamp swaterkamp deleted the BpmComment branch April 20, 2021 08:50
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