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

Added fields to filterdialog for results page. #1472

Merged
merged 32 commits into from
Jul 12, 2019
Merged
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
1e9a239
added false positive and number of hosts to sortbygroup
saberlynx Jul 5, 2019
b3fcdcb
added cvssbasegroup
saberlynx Jul 8, 2019
fce7972
updated vulnerability group
saberlynx Jul 8, 2019
c93e4fd
added host field
saberlynx Jul 8, 2019
d32c3eb
added original severity to sort fields
saberlynx Jul 8, 2019
8658d95
added locationgroup component
saberlynx Jul 8, 2019
eaf5510
added modified to sort fields
saberlynx Jul 8, 2019
c26ec39
added ownergroup
saberlynx Jul 8, 2019
10373e0
added tests for cvssbasegroup
saberlynx Jul 8, 2019
e1609ad
made search fields work. Will consolidate into FilterDialog component…
saberlynx Jul 9, 2019
ef2c0b0
added vulnerabilitygroup tests
saberlynx Jul 9, 2019
59e154e
added test for hostgroup and fixed vulngroup test
saberlynx Jul 9, 2019
4de10e1
added test for ownergroup
saberlynx Jul 9, 2019
bc8a848
added tests for locationgroup
saberlynx Jul 9, 2019
24fc008
added onSearchTermChange to filterdialog component
saberlynx Jul 9, 2019
b760949
modified changelog
saberlynx Jul 9, 2019
8f705f2
used const instead of let in filterdialog component as per suggestion
saberlynx Jul 9, 2019
c9dc670
Updated CHANGELOG.md
saberlynx Jul 10, 2019
1ec1e6b
Update gsa/src/web/components/powerfilter/__tests__/cvssbasegroup.js
saberlynx Jul 11, 2019
60081eb
Update gsa/src/web/components/powerfilter/__tests__/hostgroup.js
saberlynx Jul 11, 2019
e56c5a2
Update gsa/src/web/components/powerfilter/__tests__/locationgroup.js
saberlynx Jul 11, 2019
8173d7d
Update gsa/src/web/components/powerfilter/__tests__/locationgroup.js
saberlynx Jul 11, 2019
387b867
Update gsa/src/web/components/powerfilter/__tests__/hostgroup.js
saberlynx Jul 11, 2019
f3ef69a
Update gsa/src/web/components/powerfilter/cvssbasegroup.js
saberlynx Jul 11, 2019
b8451bd
Update gsa/src/web/components/powerfilter/filterdialog.js
saberlynx Jul 11, 2019
30d3896
moved cvssbasegroup to below severity levels
saberlynx Jul 11, 2019
3b88363
Merge branch 'master' into resultsFilterClone
bjoernricks Jul 11, 2019
41272f6
got rid of original severity
saberlynx Jul 11, 2019
da39b9a
moved cvssbasegroup to below severity levels
saberlynx Jul 11, 2019
4eb1a36
updated snapshot for cvssbasegroup
saberlynx Jul 11, 2019
0685a7d
used cvssbasegroup twice in filterdialog. removed one.
saberlynx Jul 11, 2019
0329216
Merge branch 'master' into resultsFilterClone
bjoernricks Jul 12, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]

### Added
- Added filter keywords owner, host, cvss base score, vulnerability and location to filter dialog on results page [#1472](https://github.com/greenbone/gsa/pull/1472)
- Add storybook [#1272](https://github.com/greenbone/gsa/pull/1286)
- Added TLS certificates to the asset management.
[#1455](https://github.com/greenbone/gsa/pull/1455),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`CvssBaseGroup tests should render 1`] = `
.c0 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: start;
-webkit-justify-content: start;
-ms-flex-pack: start;
justify-content: start;
padding-bottom: 10px;
}

.c1 {
display: inline-block;
max-width: 100%;
font-weight: bold;
text-align: right;
padding-left: 10px;
padding-right: 10px;
width: 16.66666667%;
margin-left: 0;
}

.c2 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-box-pack: start;
-webkit-justify-content: start;
-ms-flex-pack: start;
justify-content: start;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
width: 83.33333333%;
padding-left: 10px;
padding-right: 10px;
}

.c3 {
border-radius: 2px;
border: 1px solid #c8d3d9;
background-color: #fff;
font-size: 1.1em;
position: relative;
display: inline-block;
overflow: hidden;
padding: 0;
vertical-align: middle;
}

.c4 {
font-family: inherit;
font-size: inherit;
line-height: inherit;
border: none;
background: none;
color: inherit;
padding: 0;
margin: 0.2em 0;
vertical-align: middle;
margin-left: 0.4em;
margin-right: 22px;
}

.c5 {
background-color: #c8d3d9;
color: #787878;
border-left: 1px solid #393637;
width: 16px;
height: 50%;
font-size: 0.6em;
padding: 0;
margin: 0;
text-align: center;
vertical-align: middle;
position: absolute;
right: 0;
cursor: default;
display: block;
overflow: hidden;
-webkit-text-decoration: none;
text-decoration: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
border-top-right-radius: 1px;
top: 0;
}

.c5:hover {
background-color: #66c430;
color: #fff;
-webkit-text-decoration: none;
text-decoration: none;
}

.c5:active {
background-color: #fff;
color: #519032;
-webkit-text-decoration: none;
text-decoration: none;
}

.c6 {
background-color: #c8d3d9;
color: #787878;
border-left: 1px solid #393637;
width: 16px;
height: 50%;
font-size: 0.6em;
padding: 0;
margin: 0;
text-align: center;
vertical-align: middle;
position: absolute;
right: 0;
cursor: default;
display: block;
overflow: hidden;
-webkit-text-decoration: none;
text-decoration: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
border-bottom-right-radius: 1px;
bottom: 0;
}

.c6:hover {
background-color: #66c430;
color: #fff;
-webkit-text-decoration: none;
text-decoration: none;
}

.c6:active {
background-color: #fff;
color: #519032;
-webkit-text-decoration: none;
text-decoration: none;
}

<div
class="c0"
>
<label
class="c1"
data-testid="formgroup-title"
>
Severity
</label>
<div
class="c2"
data-testid="formgroup-content"
size="10"
>
<span
class="c3"
>
<input
class="c4"
data-testid="spinner-input"
max="10"
maxlength="5"
min="0"
name="name"
size="5"
value="5"
/>
<span
class="c5"
data-testid="spinner-up"
>
</span>
<span
class="c6"
data-testid="spinner-down"
>
</span>
</span>
</div>
</div>
`;
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`HostGroup tests should render 1`] = `
.c0 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: start;
-webkit-justify-content: start;
-ms-flex-pack: start;
justify-content: start;
padding-bottom: 10px;
}

.c1 {
display: inline-block;
max-width: 100%;
font-weight: bold;
text-align: right;
padding-left: 10px;
padding-right: 10px;
width: 16.66666667%;
margin-left: 0;
}

.c2 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-box-pack: start;
-webkit-justify-content: start;
-ms-flex-pack: start;
justify-content: start;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
width: 83.33333333%;
padding-left: 10px;
padding-right: 10px;
}

.c4 {
font-family: inherit;
font-size: inherit;
line-height: inherit;
display: block;
height: 22px;
color: #393637;
background-color: #fff;
background-image: none;
border: 1px solid #aaaaaa;
border-radius: 2px;
padding: 1px 8px;
}

.c4:-webkit-autofill {
box-shadow: 0 0 0 1000px white inset;
}

.c3 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-box-pack: start;
-webkit-justify-content: start;
-ms-flex-pack: start;
justify-content: start;
-webkit-align-items: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}

<div
class="c0"
>
<label
class="c1"
data-testid="formgroup-title"
>
Host IP
</label>
<div
class="c2"
data-testid="formgroup-content"
size="10"
>
<input
class="c3 c4"
name="name"
type="text"
value="foo"
/>
</div>
</div>
`;
Loading