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

[Cases] severity field in the cases list and allow to filter by it #131694

Merged
merged 73 commits into from
May 9, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
8abc0d3
Add severity field to create API and migration
May 3, 2022
c7986b0
Adds integration test for severity field migration
May 3, 2022
8ff9f9b
remove exclusive test
May 3, 2022
04c413e
Change severity levels
May 3, 2022
9d488bc
Update integration tests for post case
May 3, 2022
13f3406
Add more integration tests
May 3, 2022
a749da5
Fix all cases list test
May 3, 2022
f76213a
Fix some server test
May 3, 2022
d62bf70
Fix util server test
May 3, 2022
8906ccd
Fix client util test
May 3, 2022
99923ec
Merge remote-tracking branch 'upstream/main' into feature/cases-sever…
May 3, 2022
ede3328
Merge branch 'main' into feature/cases-severity-field
academo May 3, 2022
70300c2
Convert event log's duration from number to string in Kibana (keep as…
mikecote May 3, 2022
bcb2ab1
filter o11y rule aggregations (#131301)
mgiota May 3, 2022
7caa070
[Cloud Posture] Display and save rules per benchmark (#131412)
JordanSh May 3, 2022
ed7c949
Adding aria-label for discover data grid select document checkbox (#1…
bhavyarm May 3, 2022
e120e56
Update API docs (#130999)
thomasneirynck May 3, 2022
16467d1
[CI] Use GCS buckets for bazel remote caching (#131345)
brianseeders May 3, 2022
1186b3e
[Actionable Observability] Add license modal to rules table (#131232)
mgiota May 3, 2022
0e91bd6
[RAM] Add shareable rule status filter (#130705)
JiaweiWu May 3, 2022
f11b843
[storybook] Watch for changes in packages (#131467)
clintandrewhall May 3, 2022
c574ab6
Improve saved objects migrations failure errors and logs (#131359)
TinaHeiligers May 4, 2022
fed45c9
[Unified observability] Add tour step to guided setup (#131149)
May 4, 2022
9dd98b9
[Lens] Improved interval input (#131372)
flash1293 May 4, 2022
8fa9dc8
[Vega] Adjust vega doc for usage of ems files (#130948)
flash1293 May 4, 2022
e2b8cf4
Merge remote-tracking branch 'upstream/main' into feature/cases-sever…
May 4, 2022
de4a093
Excess intersections
cnasikas May 4, 2022
87f2cd5
Create severity user action
cnasikas May 4, 2022
6958994
Add severity selector to the case vie wpage
May 4, 2022
23417a1
Add test cases for the severity field
May 4, 2022
caa528a
Add severity to create_case user action
cnasikas May 4, 2022
f528955
Fix and add integration tests
cnasikas May 5, 2022
7a7037a
Minor improvements
cnasikas May 5, 2022
76faded
Merge branch 'main' into feature/cases-severity-field
academo May 5, 2022
4ec9ac3
Merge branch 'feature/cases-severity-field' into feature/cases-severi…
May 5, 2022
58eb811
Add severity user action builder
May 5, 2022
54d6c1e
use correct colors for the severity levels
May 5, 2022
83724b1
Merge remote-tracking branch 'upstream/main' into feature/cases-sever…
May 5, 2022
b2890b1
return null if no severydata found
May 5, 2022
248092a
disable super select if not permissions
May 5, 2022
fff645c
Use isDisabled at the superselect level
May 5, 2022
7d01839
Fix broken TS
May 5, 2022
5f44fbe
Add the severity field to the create form
May 5, 2022
5106252
Fix test
May 5, 2022
c7b9223
Add severity field tests
May 5, 2022
e3e0dca
Add test cases for the severity field in the create form
May 5, 2022
da31573
Merge remote-tracking branch 'upstream/main' into feature/cases-sever…
May 5, 2022
4faab1e
Merge branch 'main' into feature/cases-severity-field-ui
academo May 5, 2022
918d56b
Merge branch 'main' into feature/cases-severity-field-ui
academo May 6, 2022
ca68fda
Merge remote-tracking branch 'upstream/main' into feature/cases-sever…
May 6, 2022
42acda8
WIP: List filter
May 6, 2022
e1e980d
Fix backend API for severity filter
May 6, 2022
1561248
Allow severity filter
May 6, 2022
7f04a4a
fix test cases
May 6, 2022
28f7ff6
Merge remote-tracking branch 'origin/feature/cases-severity-field-ui'…
May 6, 2022
36f2ae8
Merge remote-tracking branch 'upstream/main' into feature/cases-sever…
May 6, 2022
012972c
Merge remote-tracking branch 'origin/feature/cases-severity-field-ui'…
May 6, 2022
3ff11a2
Merge remote-tracking branch 'upstream/main' into feature/cases-sever…
May 6, 2022
2577132
Merge branch 'feature/cases-severity-field-create-form' into feature/…
May 6, 2022
e7a0ed4
Add tests for the severity filter
May 6, 2022
5a89f9b
Adds validation for severity column in the all cases list test
May 6, 2022
f18427e
Add tests for the table filter
May 6, 2022
b342e20
add API tests for filtering
May 6, 2022
2781374
Merge remote-tracking branch 'upstream/main' into feature/cases-sever…
May 9, 2022
b6672a9
remove comment
May 9, 2022
da96a48
update tests for the api
May 9, 2022
a1a54dd
Update useGetCases test
May 9, 2022
ec674cc
Add test for rbac
May 9, 2022
5b168a3
Fix severities order
May 9, 2022
bbd09d0
Change test title
May 9, 2022
775b2bb
Rollback fixture changes
May 9, 2022
bb05c1e
add cases for severity fitert
May 9, 2022
5d33d28
update comment
May 9, 2022
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
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,22 @@ export default ({ getService }: FtrProviderContext): void => {
// Only security solution cases are being returned
ensureSavedObjectIsAuthorized(res.cases, 1, ['securitySolutionFixture']);
});

it('should respect the owner filter when using range queries', async () => {
academo marked this conversation as resolved.
Show resolved Hide resolved
const res = await findCases({
supertest: supertestWithoutAuth,
query: {
severity: CaseSeverity.LOW,
},
auth: {
user: secOnly,
space: 'space1',
},
});

// Only security solution cases are being returned
ensureSavedObjectIsAuthorized(res.cases, 2, ['securitySolutionFixture']);
});
});
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"syncAlerts": false
},
"status": "open",
"severity": "low",
academo marked this conversation as resolved.
Show resolved Hide resolved
"tags": [],
"title": "stack",
"updated_at": "2022-03-29T10:33:09.754Z",
Expand Down Expand Up @@ -62,6 +63,7 @@
"syncAlerts": false
},
"status": "open",
"severity": "low",
"tags": [],
"title": "stack",
"updated_at": "2022-03-29T10:33:09.754Z",
Expand Down Expand Up @@ -104,6 +106,7 @@
"syncAlerts": false
},
"status": "open",
"severity": "low",
"tags": [],
"title": "stack",
"updated_at": "2022-03-29T10:33:09.754Z",
Expand Down