Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remediation module #1126

Merged
merged 139 commits into from
Feb 4, 2019
Merged

Remediation module #1126

merged 139 commits into from
Feb 4, 2019

Conversation

bjoernricks
Copy link
Contributor

@bjoernricks bjoernricks commented Jan 17, 2019

Draft for the remediation module

Requires greenbone/gvmd@884a176

  • The ticket list is available under Scans -> Remediation Tickets
  • A ticket can be created from a result details page
  • Tickets can be cloned, deleted (moved to trashcan), solved, closed and re-opened
  • Alerts for ticket event can be created

Still Missing:

  • Assigned To User Name -> Missing patch for gvmd
  • Ticket Details Page
  • Better icons for solve, close and create a ticket plus a ticket list icon We use the standard edit icon for state changes
  • Tickets list in trashcan
  • Restore tickets from trashcan
  • Opened Ticket Comment -> Missing patch for gvmd
  • Use new status names for communication with gvmd
  • Indicator for existing tickets at result list and result details pages
  • Dashboard:
    • Dashboard ID for saving and loading the ticket dashboard
    • Pie chart Ticket Status
    • Line chart Status Open over time Implemented as created tickets over time
    • Bubble Chart: Assigned to user All tickets independent of the state assigned to a user. Should we remove closed tickets? or should we display only open tickets?
    • Table displays at the dashboard for tickets
    • Ticket charts at main dashboard

Checklist:

@bjoernricks bjoernricks added the work in progress This pull request should not be merged yet, more commits are expected label Jan 17, 2019
@codecov
Copy link

codecov bot commented Jan 17, 2019

Codecov Report

Merging #1126 into master will increase coverage by 0.74%.
The diff coverage is 16.15%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1126      +/-   ##
==========================================
+ Coverage   15.38%   16.13%   +0.74%     
==========================================
  Files         919      940      +21     
  Lines       27233    27697     +464     
  Branches     5777     5860      +83     
==========================================
+ Hits         4191     4469     +278     
- Misses      21648    21842     +194     
+ Partials     1394     1386       -8
Impacted Files Coverage Δ
gsa/src/web/components/dialog/twobuttonfooter.js 100% <ø> (ø) ⬆️
gsa/src/gmp/commands/entity.js 75.6% <ø> (+73.17%) ⬆️
gsa/src/gmp/gmp.js 1.49% <ø> (ø) ⬆️
gsa/src/gmp/utils/entitytype.js 100% <ø> (ø) ⬆️
gsa/src/web/entity/link.js 0% <ø> (ø) ⬆️
gsa/src/web/store/entities/reducers.js 100% <ø> (ø) ⬆️
gsa/src/web/pages/extras/trashcanpage.js 0% <0%> (ø) ⬆️
...eb/pages/tickets/dashboard/usersassigneddisplay.js 0% <0%> (ø)
gsa/src/web/entities/withRowDetails.js 0% <0%> (ø) ⬆️
gsa/src/gmp/commands/trashcan.js 1.42% <0%> (-0.07%) ⬇️
... and 81 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 b34704b...da348aa. Read the comment docs.

@bjoernricks bjoernricks requested a review from a team January 21, 2019 15:39
gsad/src/gsad.c Outdated Show resolved Hide resolved
});
});

test('should trim note when saveing a ticket', () => {
Copy link
Member

Choose a reason for hiding this comment

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

Small typo: should be "saving"

@bjoernricks bjoernricks removed the work in progress This pull request should not be merged yet, more commits are expected label Jan 31, 2019
swaterkamp
swaterkamp previously approved these changes Jan 31, 2019
Copy link
Member

@timopollmeier timopollmeier left a comment

Choose a reason for hiding this comment

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

After trying this out I haven't found any major problems but I think @mattmundell would have a better idea of which features to test as he implemented them in gvmd.

Parse properties for Ticket models.
Add helper functions for testing command classes.
* comment fields got renamed to note
* status names got renamed
* open state got an explicit note field
* require always a note
Also trim the note. A user must always add a note.
A ticket can't be in the state orphaned anymore.
This has been changed for the ticket comments to support newline. By
using a different paramerter (note) now this change is obsolete and
should be reverted.
Use correct name for ticket status color scale.
Parse the tickets only as model instances because we currently only get
ids.
If the user may access tickets and if the result is connected to one or
more tickets display a ticket icon with a badge that links to the ticket
list with a filter for the current result id.
Display ticket icon if a result has one or more tickets at the results
list page.
Save open_note, closed_note and fixed_note when modifying a ticket.
Provide open, closed and fixed notes when saving a ticket.
Allow to edit the open, fixed and close notes of a ticket at once.
Allow for easier referencing the buttons in tests.
The name attribute wasn't evaluated but nevertheless it should be
correct here.
@swaterkamp swaterkamp merged commit 67d6e65 into greenbone:master Feb 4, 2019
@bjoernricks bjoernricks deleted the remediation-module branch February 5, 2019 08:16
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants