Commit graph

90 commits

Author SHA1 Message Date
Patryk Kopyciński
f18bc68d70
[RAC] Fix missing case title and tags after adding visualization (#111236)
Co-authored-by: Patryk Kopyciński <patryk.kopycinski@elastic.co>
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
2021-09-07 13:35:47 +03:00
Michael Dokolin
df43d253c8
[Expressions] Align renderMode with the embeddable viewMode (#110199)
* Add preview view mode to the embeddable
* Rename display render mode to view
* Extract no interactivity render mode to a separate flag
2021-09-03 19:10:29 +02:00
Jonathan Buttner
a2c848e1d2
[Cases] Fix connector information disappearing (#110914)
* Move intialization to use effect

* Fixing fields can't get test working

* Fix tests

Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
2021-09-03 12:00:51 -04:00
Christos Nasikas
6f357e0433
[Cases] Do not show status dropdown on modal cases selector (#111101) 2021-09-03 16:10:29 +03:00
Jonathan Buttner
d2fffdcca1
[Cases] Cleaning up migration and re-hiding comments saved object (#109344)
* Cleaning up migration and so

* Refactoring filter to be check in reduce
2021-09-02 09:24:37 -04:00
Spencer
fecdba7eba
[eslint] add rule to prevent export* in plugin index files (#109357)
* [eslint] add rule to prevent export* in plugin index files

* deduplicate export names for types/instances with the same name

* attempt to auto-fix duplicate exports too

* capture exported enums too

* enforce no_export_all for core too

* disable rule by default, allow opting-in for help fixing

* update tests

* reduce yarn.lock duplication

* add rule but no fixes

* disable all existing violations

* update api docs with new line numbers

* revert unnecessary changes to yarn.lock which only had drawbacks

* remove unnecessary eslint-disable

* rework codegen to split type exports and use babel to generate valid code

* check for "export types" deeply

* improve test by using fixtures

* add comments to some helper functions

* disable fix for namespace exports including types

* label all eslint-disable comments with related team-specific issue

* ensure that child exports of `export type` are always tracked as types

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-01 18:05:45 -07:00
Jonathan Buttner
31d335868e
Disable sync toggle in flyout (#110714) 2021-09-01 09:06:29 -04:00
Xavier Mouligneau
16af3e95cb
[RAC] Remove rbac on security solution side (#110472)
* wip to remove rbac

* Revert "[Cases] Include rule registry client for updating alert statuses (#108588)"

This reverts commit 1fd7038b34.

This leaves the rule registry mock changes

* remove rbac on Trend/Count alert

* update detection api for status

* remove @kbn-alerts packages

* fix leftover

* Switching cases to leverage update by query for alert status

* Adding missed files

* fix bad logic

* updating tests for use_alerts_privileges

* remove index alias/fields

* fix types

* fix plugin to get the right index names

* left over of alis on template

* forget to use current user for create/read route index

* updated alerts page to not show table when no privileges and updates to tests

* fix bug when switching between o11y and security solution

* updates tests and move to use privileges page when user tries to access alerts without proper access

* updating jest tests

* pairing with yara

* bring back kbn-alerts after discussion with the team

* fix types

* fix index field for o11y

* fix bug with updating index priv state

* fix i18n issue and update api docs

* fix refresh on alerts

* fix render view on alerts

* updating tests and checking for null in alerts page to not show no privileges page before load

* fix details rules

Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
Co-authored-by: Yara Tercero <yara.tercero@elastic.co>
2021-09-01 04:23:44 -04:00
Patryk Kopyciński
f310490bc1
[Cases] Fix add Lens markdown plugin UX (#109178) 2021-08-26 14:56:45 -04:00
Jonathan Buttner
cc9912c542
[Cases][Observability] Disabling sync alerts for observability (#109929)
* Disabling sync alerts for observability

* Adding unit tests
2021-08-24 18:09:03 -04:00
Xavier Mouligneau
e8e53e36e5
[RAC] Get o11y alerts in alerts table (#109346)
* get back index names  in o11y

* testing and integration

* fix types

* Avoid using the rule data client for field list

* Remove left-over index argument

* no needs of alert consumer anymore

Co-authored-by: Felix Stürmer <stuermer@weltenwort.de>
2021-08-20 12:52:34 -04:00
Tiago Costa
9fb152a92f
chore(NA): moving @kbn/logging to babel transpiler (#108702)
* chore(NA): moving @kbn/logging to babel transpiler

* chore(NA): fix imports for @kbn/logging

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-20 11:54:46 +01:00
Jonathan Buttner
1fd7038b34
[Cases] Include rule registry client for updating alert statuses (#108588)
* Trying to get import to work

* Plumbed alerts client through and logging errors

* No longer need the ES cluster client

* Fixing types

* Fixing imports

* Fixing integration tests and refactoring

* Throwing an error when rule registry is disabled

* Reworking alert update and get to catch errors

* Adding tests and fixing errors
2021-08-19 16:01:39 -04:00
Patryk Kopyciński
754b79f08a
[Cases] Add Lens markdown plugin (#96703) 2021-08-17 15:49:44 -07:00
Angela Chuang
04a8a3c199
[RAC] integrating rbac search strategy with alert flyout (#108748)
* add alert consumers for useTimelineEventDetails

* set entityType to events

* rename to AlertConsumers

* set entityType to alerts

* send entity type to search strategy

* fix import

* fix import

* fix import

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-17 14:20:17 +01:00
Pablo Machado
e2c7313781
Add empty tag validation to cases (#108699) 2021-08-16 12:12:34 -04:00
Tiago Costa
3ab852f213
Revert "[RAC] integrating rbac search strategy with alert flyout (#108375)"
This reverts commit c6c24e4392.
2021-08-16 15:15:19 +01:00
Angela Chuang
c6c24e4392
[RAC] integrating rbac search strategy with alert flyout (#108375)
* add alert consumers for useTimelineEventDetails

* set entityType to events

* rename to AlertConsumers

* set entityType to alerts

* send entity type to search strategy

* fix import

* fix import

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 08:58:27 -04:00
Sébastien Loix
b24d44d165
[Index pattern field editor] Add preview for runtime fields (#100198) 2021-08-13 18:27:23 -04:00
Kevin Qualters
1b88880a21
[RAC][Security Solution] Add to case actions in detail flyout (#108057)
* add to case action in flyout

* Fix most type errors

* Use context menu item instead of empty button for popover items

* Remove unused import

* Fire action on case modal close

* Update tests to use both components and remove console.log

* Update mocks in unit tests

* Use an onClose prop instead of closeCallbacks

* Pr feedback, create shared mock and rename handler

* Make app usable when timelines is not enabled

* Remove unused translations
2021-08-12 13:45:08 -04:00
Jonathan Budzenski
2ab5c2c40a Revert "[RAC] integrating rbac search strategy with alert flyout (#107748)"
This reverts commit e9ac0c6674.
2021-08-12 08:20:28 -05:00
Angela Chuang
e9ac0c6674
[RAC] integrating rbac search strategy with alert flyout (#107748)
* add alert consumers for useTimelineEventDetails

* set entityType to events

* rename to AlertConsumers

* set entityType to alerts

* send entity type to search strategy

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-12 10:54:17 +01:00
Spencer
c0395c9ef6
[build_ts_refs] improve caches, allow building a subset of projects (#107981)
* [build_ts_refs] improve caches, allow building a subset of projects

* cleanup project def script and update refs in type check script

* rename browser_bazel config to avoid kebab-case

* remove execInProjects() helper

* list references for tsconfig.types.json for api-extractor workload

* disable composite features of tsconfig.types.json for api-extractor

* set declaration: true to avoid weird debug error

* fix jest tests

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-08-10 22:12:45 -07:00
Christos Nasikas
a89f6a1944
[Cases] Fix connector's icon bug (#107633) 2021-08-04 19:21:25 +03:00
Christos Nasikas
c4e374f512
[Cases] Fix config bug (#107637) 2021-08-04 18:22:25 +03:00
Jonathan Buttner
96f27b9899
[Cases] Migrate connector ID to references (#104221)
* Starting configure migration

* Initial refactor of configuration connector id

* Additional clean up and tests

* Adding some tests

* Finishing configure tests

* Starting case attributes transformation refactor

* adding more tests for the cases service

* Adding more functionality and tests for cases migration

* Finished unit tests for cases transition

* Finished tests and moved types

* Cleaning up type names

* Fixing types and renaming

* Adding more tests directly for the transformations

* Fixing tests and renaming some functions

* Adding transformation helper tests

* Adding migration utility tests and some clean up

* Begining logic to remove references when it is the none connector

* Fixing merge reference bug

* Addressing feedback

* Changing test name and creating constants file
2021-08-04 10:39:21 -04:00
Ahmad Bamieh
6d145c807c
[l10n] remove a couple of unused translations (#106977)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-03 17:04:16 +03:00
Christos Nasikas
82e0ce1b51
[Cases] Migrate to new Connectors APIs (#102662)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-29 14:20:51 +03:00
Pablo Machado
2351447ceb
Fix add-cases comments error message is displaying after buttons (#106831) 2021-07-28 15:50:20 +02:00
Christos Nasikas
7987a4d2c4
[Cases] Fix connectors callout messages (#106525) 2021-07-28 06:13:45 -04:00
Christos Nasikas
61f1c90ce0
[Cases] Add Swimlane & ServiceNow SecOps to README (#106742) 2021-07-27 13:17:30 +03:00
Christos Nasikas
2b34cd3572
[Cases] Fix action type naming on field mapping (#106695) 2021-07-26 17:42:11 +03:00
Kevin Logan
15285bf03b
[Security Solution] update text for Isolation action submissions (#105956) 2021-07-19 15:24:25 -04:00
Kevin Logan
7101c42bec
[Security Solution] UX fixes for Policy page and Case Host Isolation comment (#106027)
* [Security Solution] UX fixes for Policy page and Case Host Isolation comment
2021-07-19 12:46:21 -04:00
Candace Park
47c30c35cd
[Security Solution][Endpoint][Host Isolation] Removes empty comment box for host isolation (#105642) 2021-07-19 12:13:56 -04:00
Jonathan Buttner
3f47646606
Updating urls to upstream elastic repo (#105250) 2021-07-13 09:10:30 -04:00
Ignacio Rivas
8c9de0b0cc
[Ingest pipelines] add network direction processor (#103436)
* initial form setup

* custom solution with usemultifields

* wip: sort of working now

* fix bootstraping of initial state

* fix field validation

* add tests

* fix linter errors

* Fix i18 namespace

* Fix linter problems and remove unused whitelisting

* Fix copy for description

* lil prettier fix

* add docs and tweak copy

* small tweaks

* [Form lib] expose handler to access field defaultValue

* Refactor <NetworkDirection />

* fix up import orders

* Fix test mocks

* Move up mocks a bit

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Sébastien Loix <sabee77@gmail.com>
2021-07-13 12:43:10 +03:00
Christos Nasikas
67b3e6ebe5
[Cases] Fix pushing alerts count on every push to external service (#105030)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-13 02:11:06 +03:00
Kevin Logan
c9b1a3cdef
[Security Solution] Push user action comments for Host Isolation to connectors (#105265) 2021-07-12 17:32:37 -04:00
Candace Park
8acdcff840
[Security Solution][Endpoint][Host Isolation] Host isolation cases view unit test (#104579) 2021-07-12 15:37:16 -04:00
Christos Nasikas
83856767af
[Cases] Reset selected cases when changing filters (#104839)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-08 21:00:25 +03:00
Christos Nasikas
98750a30cc
[Cases] Fix recent cases filter (#104826) 2021-07-08 14:29:27 +03:00
Christos Nasikas
644d2ce918
[Detections] Truncate case title in toaster when attaching an alert to case (#103228) 2021-07-01 19:02:11 +03:00
Steph Milovic
305df3ab37
[RAC] [Cases] Fix responsiveness in Cases UI (#103766) 2021-06-30 15:00:56 -06:00
Paul Tavares
1b1e29c756
[Security Solution][Endpoint] Unit Test cases to cover CaseView action/comment refresh and Endpoint isolation api (#103560)
* Tests for `<CaseView>` `refreshRef` prop
* Tests for Isolation API update of cases
2021-06-30 10:51:36 -04:00
Candace Park
e749fa62fa
[Security Solution][Endpoint][Host Isolation][Cases] Update Host Isolation comment in Cases UI (#102937) 2021-06-29 19:42:38 -04:00
Steph Milovic
c24318ae40
[RAC] [Cases] All cases table column design updates (#103544) 2021-06-29 13:53:56 -06:00
Jonathan Buttner
cdfc90ca30
Removing the title edit icon for read only (#103540)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-29 11:48:11 -04:00
Sergi Massaneda
85709925cc
[Security Solutions] Side Navigation phase 2 (#103275)
* [SecuritySolutions] [Navigation] Prepare new routing and migrate overview (#101733)

* prepare new routing and migrate overview

* test fix and todo comments identified

* telemetry using app views

* navigation groups implemented

* cleaning

* export subplugin routes as route props array

* [Security Solution][Navigation] Migrate Security Solutions 'explore' tab group to deep link navigation (#102306)

* Update navigateToApp and getUrlForApp to provide the deepLinkId
* Update Hosts and Network routes to start from /hosts and /network
* Add Hosts and Network to side nav menu under "Explore" menu group
* Delete Hosts and Network old menu code
* Fix broken tests

* [SecuritySolution] Add detections subplugin to deeplink (#101791)

* prepare new routing and migrate overview

* init nav deeplink

* split detections into rules and alerts

* init exception link

* init detections

* link to rules creation page

* link to rules creation page

* rename detections to alerts

* fix unit tests

* fix rules creation page

* remove console

* fix lint error

* fix unit tests

* fix unit tests

* isolating rules and exceptions page

* replace history push with navigateToApp

* fix unit test

* temporary fix for createCoreStartMock

* update cypress

* skip failing cypress

* skip failing cypress

Co-authored-by: semd <sergi.massaneda@elastic.co>

* Migrate "Investigate" tab group to new side navigation (#102705)

* Migrate "Investigate" tab group to new side navigation

It includes:
* Timelines
* Cases

* Quick fix useFormatUrl and HeaderPage navigation

* [Security Solutions] Management navigation (#102685)

* prepare new routing and migrate overview

* test fix and todo comments identified

* telemetry using app views

* navigation groups implemented

* cleaning

* export subplugin routes as route props array

* breadcrumbs changes and sidenav generation improvements

* jest tests for breadcrumbs and navigation changes

* retrocompatibility for sections that are not yet migrated to deepLinks

* management deepLinks and plugin refactoring

* home navigation changes

* management navigation migrated to deeplinks

* jest tests fixed

* header page back link improved and tests fixed

* type errors fixes

* improve home navigation encapsulation

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* Fix type checking

* export header page

* fix padding

* add redirect routes

* unskip detection cypress

* fix i18n

* fix create your own rules btn

* fix cancel button on rules creation page

* test fixes

* fix breadcrumbs for rules pages

* unit test fixes

* additional fixes

* [Security Solutions] Navigation usage tracker and general changes (#103271)

* [Security Solutions] use of currentAppId$ migrated. and some small fixes

* unused constants removed

* remove unused constant

* test fix and types

* fix cypress

* fix cypress tests

* Fix case navTab permission and tests

* Revert 'timeline.isOpen' breadcrumb code that was deleted during merge

* Fix useInsertTimeline test by removing '/'

* change global navigation visible deeplinks

* fix /admininstration top level redirect to

* fix global search icon, nav order and overview hosts link

* update start a new case link

* fix rules link in exception list table

* unskip cypress tests

* update rules link

* fix full screen timeline

* fixing broken links and administration telemetry split

* remove unused comments

* remove timeline z-index and cleanup global header component

* some minor fixes

* add unit tests for detections breadcrumbs

* remove case to  global/search nav when cases is none

* rename test scenario

* fix side_panel flyout

* fix cases use cases between search/gobal nav

* timeline snapshot regenerated and cypres test fixed

* rollback management tracking split as it causes unexpected errors on the telemetry component

Co-authored-by: Pablo Machado <pablo.nevesmachado@elastic.co>
Co-authored-by: Angela Chuang <6295984+angorayc@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>
Co-authored-by: Angela Chuang <yi-chun.chuang@elastic.co>
Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
2021-06-29 15:00:05 +02:00
Steph Milovic
64df69890d
[RAC] [Cases] Push to 3rd party UI updates (#103418) 2021-06-28 13:31:48 -06:00