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

Test session view with main #4

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
86aa348
Cherry-pick security/timelines changes
kqualters-elastic Mar 10, 2022
c3e7708
Changes to make session_view work with generated data
kqualters-elastic Mar 10, 2022
d7cbe6a
create detail panel hook for session view
michaelolo24 Mar 23, 2022
dd9452c
add some tests
michaelolo24 Mar 23, 2022
658a2ed
Include influencers in ml signal. (#128490)
pjhampton Mar 24, 2022
b887d38
Fixed API Key Tests (#127236)
Mar 24, 2022
5fb5b1c
[DOCS] Delete cases and comments APIs (#128329)
lcawl Mar 24, 2022
e95b064
Separate alerts from events in Process (#128434)
Mar 24, 2022
e451d39
fix annotation bounds bug (#128242)
flash1293 Mar 24, 2022
f981d53
[ResponseOps] Integrate rule and action monitoring data to the monito…
Mar 24, 2022
5e847ac
[App Search] Filter Elasticsearch index based engines from meta engin…
efegurkan Mar 24, 2022
028992d
[Lens] Log data tables properly (#128297)
flash1293 Mar 24, 2022
46f5c03
[SecuritySolution] Finishing touches on the alert prevalence (#128295)
janmonschke Mar 24, 2022
74a00fa
Deprecate kibana_react RedirectAppLinks in favor of shared_ux Redirec…
rshen91 Mar 24, 2022
51e0845
[Cloud Posture] Support pagination in benchmarks page (#128486)
ari-aviran Mar 24, 2022
d102213
[RAM] Add Snooze UI and Unsnooze API (#128214)
Zacqary Mar 24, 2022
8ada3b3
[Security solution][Endpoint] Fix blocklist entries are allowed to be…
dasansol92 Mar 24, 2022
5a3faca
[Osquery] Add support for osquery pack integration assets (#128109)
patrykkopycinski Mar 24, 2022
8d1b8c0
[Actionable Observability] hide rules from sidebar and move under ale…
mgiota Mar 24, 2022
fa90f5d
Update dependency ms-chromium-edge-driver to ^0.5.1 (#128492)
renovate[bot] Mar 24, 2022
0079b36
[Lens] drag and drop functionality for annotations (#128432)
mbondyra Mar 24, 2022
fa00f8b
Changes to make session_view work with generated data
kqualters-elastic Mar 10, 2022
fd1c766
[Monitor management] Enable check for public beta (#128240)
shahzad31 Mar 24, 2022
b6d2b49
Merge branch 'safest-session-view-flyout' of github.com:michaelolo24/…
michaelolo24 Mar 24, 2022
c811902
Merge branch 'session-view-updated' into safest-session-view-flyout
michaelolo24 Mar 24, 2022
d7a3335
[ML] Data Frame Analytics: add analytics ID to url when using selecto…
alvarezmelissa87 Mar 24, 2022
83117a4
Deprecate QuickButtonGroup for IconButtonGroup in shared ux (#128288)
rshen91 Mar 24, 2022
1376691
Merge branch 'main' into integrate-session-view-with-details-flyout
michaelolo24 Mar 24, 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
10 changes: 6 additions & 4 deletions docs/api/cases.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ these APIs:

* {security-guide}/cases-api-add-comment.html[Add comment]
* <<cases-api-create>>
* {security-guide}/cases-api-delete-case.html[Delete case]
* {security-guide}/cases-api-delete-all-comments.html[Delete all comments]
* {security-guide}/cases-api-delete-comment.html[Delete comment]
* <<cases-api-delete-cases>>
* <<cases-api-delete-comments>>
* {security-guide}/cases-api-find-alert.html[Find all alerts attached to a case]
* <<cases-api-find-cases>>
* {security-guide}/cases-api-find-cases-by-alert.html[Find cases by alert]
Expand All @@ -29,8 +28,11 @@ these APIs:

//CREATE
include::cases/cases-api-create.asciidoc[leveloffset=+1]
//DELETE
include::cases/cases-api-delete-cases.asciidoc[leveloffset=+1]
include::cases/cases-api-delete-comments.asciidoc[leveloffset=+1]
//FIND
include::cases/cases-api-find-cases.asciidoc[leveloffset=+1]
include::cases/cases-api-find-connectors.asciidoc[leveloffset=+1]
//UPDATE
include::cases/cases-api-update.asciidoc[leveloffset=+1]
include::cases/cases-api-update.asciidoc[leveloffset=+1]
52 changes: 52 additions & 0 deletions docs/api/cases/cases-api-delete-cases.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
[[cases-api-delete-cases]]
== Delete cases API
++++
<titleabbrev>Delete cases</titleabbrev>
++++

Deletes one or more cases.

=== Request

`DELETE <kibana host>:<port>/api/cases?ids=["<case ID1>","<case ID2>"]`

`DELETE <kibana host>:<port>/s/<space_id>/api/cases?ids=["<case ID1>","<case ID2>"]`

=== Prerequisite

You must have `all` privileges for the *Cases* feature in the *Management*,
*{observability}*, or *Security* section of the
<<kibana-feature-privileges,{kib} feature privileges>>, depending on the
`owner` of the cases you're deleting.

=== Path parameters

`<space_id>`::
(Optional, string) An identifier for the space. If it is not specified, the
default space is used.

=== Query parameters

`ids`::
(Required, string) The cases that you want to remove. To retrieve case IDs, use
<<cases-api-find-cases>>.
+
NOTE: All non-ASCII characters must be URL encoded.

==== Response code

`204`::
Indicates a successful call.

=== Example

Delete cases with these IDs:

* `2e3a54f0-6754-11ea-a1c2-e3a8bc9f7aca`
* `40b9a450-66a0-11ea-be1b-2bd3fef48984`

[source,console]
--------------------------------------------------
DELETE api/cases?ids=%5B%222e3a54f0-6754-11ea-a1c2-e3a8bc9f7aca%22%2C%2240b9a450-66a0-11ea-be1b-2bd3fef48984%22%5D
--------------------------------------------------
// KIBANA
63 changes: 63 additions & 0 deletions docs/api/cases/cases-api-delete-comments.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
[[cases-api-delete-comments]]
== Delete comments from case API
++++
<titleabbrev>Delete comments</titleabbrev>
++++

Deletes one or all comments from a case.

=== Request

`DELETE <kibana host>:<port>/api/cases/<case_id>/comments`

`DELETE <kibana host>:<port>/api/cases/<case_id>/comments/<comment_id>`

`DELETE <kibana host>:<port>/s/<space_id>/api/cases/<case_id>/comments`

`DELETE <kibana host>:<port>/s/<space_id>/api/cases/<case_id>/comments/<comment_id>`

=== Prerequisite

You must have `all` privileges for the *Cases* feature in the *Management*,
*{observability}*, or *Security* section of the
<<kibana-feature-privileges,{kib} feature privileges>>, depending on the
`owner` of the cases you're updating.

=== Path parameters

`<case_id>`::
(Required, string) The identifier for the case. To retrieve case IDs, use
<<cases-api-find-cases>>.

`<comment_id>`::
(Optional, string) The identifier for the comment.
//To retrieve comment IDs, use <<cases-api-get-all-case-comments>>.
If it is not specified, all comments are deleted.

<space_id>::
(Optional, string) An identifier for the space. If it is not specified, the
default space is used.

=== Response code

`204`::
Indicates a successful call.

=== Example

Delete all comments from case ID `9c235210-6834-11ea-a78c-6ffb38a34414`:

[source,console]
--------------------------------------------------
DELETE api/cases/a18b38a0-71b0-11ea-a0b2-c51ea50a58e2/comments
--------------------------------------------------
// KIBANA

Delete comment ID `71ec1870-725b-11ea-a0b2-c51ea50a58e2` from case ID
`a18b38a0-71b0-11ea-a0b2-c51ea50a58e2`:

[source,sh]
--------------------------------------------------
DELETE api/cases/a18b38a0-71b0-11ea-a0b2-c51ea50a58e2/comments/71ec1870-725b-11ea-a0b2-c51ea50a58e2
--------------------------------------------------
// KIBANA
9 changes: 9 additions & 0 deletions docs/user/security/audit-logging.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,15 @@ Refer to the corresponding {es} logs for potential write errors.
| `unknown` | User is updating an alert.
| `failure` | User is not authorized to update an alert.

.2+| `rule_snooze`
| `unknown` | User is snoozing a rule.
| `failure` | User is not authorized to snooze a rule.

.2+| `rule_unsnooze`
| `unknown` | User is unsnoozing a rule.
| `failure` | User is not authorized to unsnooze a rule.


3+a|
====== Type: deletion

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@
"mochawesome-merge": "^4.2.1",
"mock-fs": "^5.1.2",
"mock-http-server": "1.3.0",
"ms-chromium-edge-driver": "^0.4.3",
"ms-chromium-edge-driver": "^0.5.1",
"multimatch": "^4.0.0",
"mutation-observer": "^1.0.3",
"ncp": "^2.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import { RedirectAppLinks } from './redirect_app_links';
export type { RedirectAppLinksProps } from './redirect_app_links';

export { RedirectAppLinks } from './redirect_app_links';

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ const previouslyRegisteredTypes = [
'ml-telemetry',
'monitoring-telemetry',
'osquery-pack',
'osquery-pack-asset',
'osquery-saved-query',
'osquery-usage-metric',
'osquery-manager-usage-metric',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,16 @@ export const gaugeFunction = (): GaugeExpressionFunctionDefinition => ({
}

if (handlers?.inspectorAdapters?.tables) {
const logTable = prepareLogTable(data, [
[metric ? [metric] : undefined, strings.getMetricHelp()],
[min ? [min] : undefined, strings.getMinHelp()],
[max ? [max] : undefined, strings.getMaxHelp()],
[goal ? [goal] : undefined, strings.getGoalHelp()],
]);
const logTable = prepareLogTable(
data,
[
[metric ? [metric] : undefined, strings.getMetricHelp()],
[min ? [min] : undefined, strings.getMinHelp()],
[max ? [max] : undefined, strings.getMaxHelp()],
[goal ? [goal] : undefined, strings.getGoalHelp()],
],
true
);

handlers.inspectorAdapters.tables.logDatatable('default', logTable);
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const convertToVisDimension = (
const column = columns.find((c) => c.id === accessor);
if (!column) return;
return {
accessor: Number(column.id),
accessor: column,
format: {
id: column.meta.params?.id,
params: { ...column.meta.params?.params },
Expand Down Expand Up @@ -212,7 +212,7 @@ export const heatmapFunction = (): HeatmapExpressionFunctionDefinition => ({
})
);
}
const logTable = prepareLogTable(data, argsTable);
const logTable = prepareLogTable(data, argsTable, true);
handlers.inspectorAdapters.tables.logDatatable('default', logTable);
}
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export const metricVisFunction = (): MetricVisExpressionFunctionDefinition => ({
}),
]);
}
const logTable = prepareLogTable(input, argsTable);
const logTable = prepareLogTable(input, argsTable, true);
handlers.inspectorAdapters.tables.logDatatable('default', logTable);
}

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,16 @@ export const mosaicVisFunction = (): MosaicVisExpressionFunctionDefinition => ({
};

if (handlers?.inspectorAdapters?.tables) {
const logTable = prepareLogTable(context, [
[[args.metric], strings.getSliceSizeHelp()],
[args.buckets, strings.getSliceHelp()],
[args.splitColumn, strings.getColumnSplitHelp()],
[args.splitRow, strings.getRowSplitHelp()],
]);
const logTable = prepareLogTable(
context,
[
[[args.metric], strings.getSliceSizeHelp()],
[args.buckets, strings.getSliceHelp()],
[args.splitColumn, strings.getColumnSplitHelp()],
[args.splitRow, strings.getRowSplitHelp()],
],
true
);
handlers.inspectorAdapters.tables.logDatatable('default', logTable);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,16 @@ export const pieVisFunction = (): PieVisExpressionFunctionDefinition => ({
};

if (handlers?.inspectorAdapters?.tables) {
const logTable = prepareLogTable(context, [
[[args.metric], strings.getSliceSizeHelp()],
[args.buckets, strings.getSliceHelp()],
[args.splitColumn, strings.getColumnSplitHelp()],
[args.splitRow, strings.getRowSplitHelp()],
]);
const logTable = prepareLogTable(
context,
[
[[args.metric], strings.getSliceSizeHelp()],
[args.buckets, strings.getSliceHelp()],
[args.splitColumn, strings.getColumnSplitHelp()],
[args.splitRow, strings.getRowSplitHelp()],
],
true
);
handlers.inspectorAdapters.tables.logDatatable('default', logTable);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,16 @@ export const treemapVisFunction = (): TreemapVisExpressionFunctionDefinition =>
};

if (handlers?.inspectorAdapters?.tables) {
const logTable = prepareLogTable(context, [
[[args.metric], strings.getSliceSizeHelp()],
[args.buckets, strings.getSliceHelp()],
[args.splitColumn, strings.getColumnSplitHelp()],
[args.splitRow, strings.getRowSplitHelp()],
]);
const logTable = prepareLogTable(
context,
[
[[args.metric], strings.getSliceSizeHelp()],
[args.buckets, strings.getSliceHelp()],
[args.splitColumn, strings.getColumnSplitHelp()],
[args.splitRow, strings.getRowSplitHelp()],
],
true
);
handlers.inspectorAdapters.tables.logDatatable('default', logTable);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,16 @@ export const waffleVisFunction = (): WaffleVisExpressionFunctionDefinition => ({
};

if (handlers?.inspectorAdapters?.tables) {
const logTable = prepareLogTable(context, [
[[args.metric], strings.getSliceSizeHelp()],
[buckets, strings.getSliceHelp()],
[args.splitColumn, strings.getColumnSplitHelp()],
[args.splitRow, strings.getRowSplitHelp()],
]);
const logTable = prepareLogTable(
context,
[
[[args.metric], strings.getSliceSizeHelp()],
[buckets, strings.getSliceHelp()],
[args.splitColumn, strings.getColumnSplitHelp()],
[args.splitRow, strings.getRowSplitHelp()],
],
true
);
handlers.inspectorAdapters.tables.logDatatable('default', logTable);
}

Expand Down
Loading