Commit graph

104 commits

Author SHA1 Message Date
Kevin Qualters
0dbedb5434
[8.0] [Security Solution] Remove a data fetching hook from the add to timeline action component (#124331) (#125810)
* [Security Solution] Remove a data fetching hook from the add to timeline action component (#124331)

* Fetch alert ecs data in actions.tsx and not a hook in every table row

* Add error handling and tests for theshold timelines

* Fix bad merge

* Remove unused imports

* Actually remove unused file

* Remove usage of alertIds and dead code from cases

* Add basic sanity tests that ensure no extra network calls are being made

* Remove unused operator

* Remove unused imports

* Remove unused mock

(cherry picked from commit e312c36e4c)

# Conflicts:
#	x-pack/plugins/cases/public/components/case_view/case_view_page.tsx
#	x-pack/plugins/cases/public/components/user_actions/types.ts
#	x-pack/plugins/security_solution/public/cases/pages/index.tsx
#	x-pack/plugins/security_solution/public/timelines/components/side_panel/event_details/footer.tsx

* Fix types

* Fix failing tests
2022-02-16 15:01:38 -07:00
Christos Nasikas
30d0ca85ad
[8.0] [Response Ops][Cases] Fetch alerts within observability (#123883) (#125370)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Jonathan Buttner <56361221+jonathan-buttner@users.noreply.github.com>
2022-02-11 10:18:03 -07:00
Jonathan Buttner
ec5cc62e94
[ResponseOps][Cases] Setting rule info to null for 8.0 (#123096)
* Setting rule information to null

* Addressing PR feedback

* Re-encoding new_value

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-01-18 15:15:28 -05:00
Esteban Beltran
153c4b7fe0
[Cases] Fix form case tags displaying error when all tags are removed (#123172) (#123207)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit d7aacd723c)
2022-01-18 05:48:31 -07:00
Esteban Beltran
e02eaf3044
[Cases] Fix user action content pushing the sidebar beyond the screen limits (#123050) (#123143)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-01-17 06:52:36 -07:00
Esteban Beltran
fe61514877
[Cases] Disable the lens plugin in the new case form (including flyout) (#122937) (#123124)
(cherry picked from commit c526ff9dd7)

# Conflicts:
#	x-pack/plugins/cases/public/components/create/description.tsx
2022-01-17 05:09:30 -07:00
Kibana Machine
4609fdeaed
[Cases][Lens] Disable triggers for lens embeddables (#122912) (#122953)
(cherry picked from commit 934c720ed1)

Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
2022-01-13 09:51:58 -07:00
Kristof C
e6ee7b221c
Update reporter to use username instead of full name (#121820) (#122260)
* Update reporter fto use username instead of full name

* Fix test for username

Co-authored-by: Kristof-Pierre Cummings <kristofpierre.cummings@elastic.co>
# Conflicts:
#	x-pack/plugins/cases/public/components/all_cases/all_cases_list.test.tsx
2022-01-04 09:34:36 -07:00
Christos Nasikas
e23739e7d7
[Cases] Fix create case titles (#121876) (#121918)
# Conflicts:
#	x-pack/plugins/cases/public/components/all_cases/nav_buttons.tsx
#	x-pack/plugins/cases/public/components/create/index.tsx
2021-12-22 16:01:53 -07:00
Christos Nasikas
7962800575
[Cases] Reset selected cases when refreshing (#121867) (#121910)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/cases/public/common/test_utils.ts
#	x-pack/plugins/cases/public/components/all_cases/all_cases_generic.tsx
#	x-pack/plugins/cases/public/components/all_cases/all_cases_list.test.tsx
2021-12-22 15:08:36 -07:00
Kibana Machine
661236c01a
[Cases] Improve text on all cases table (#121902) (#121917)
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
2021-12-22 15:04:00 -07:00
Frank Hassanabad
a398d467b8
[8.0] [Security Solutions] Removes tech debt of exporting all from linter rule for cases plugin in the common section (#120559)
* [Security Solutions] Removes tech debt of exporting all from linter rule for cases plugin in the common section (#120310)

See: https://github.com/elastic/kibana/issues/110903, https://github.com/elastic/kibana/issues/120234

This removes as many top level API `export *` spots from:
* `cases` plugin within the common section

as we can. This reduces the number of metrics and warning about undocumented functions and reduces the page load size from `cases/common/index.ts`. Look at the metrics from the build below and you will see drop off numbers across the board for required API documentation to the page load size.

In the file `cases/common/index.ts` I now put the advice of:

```
// Careful of exporting anything from this file as any file(s) you export here will cause your page bundle size to increase.
// If you're using functions/types/etc... internally or within integration tests it's best to import directly from their paths
// than expose the functions/types/etc... here. You should _only_ expose functions/types/etc... that need to be shared with other plugins here.

// When you do have to add things here you might want to consider creating a package such as kbn-cases-constants to share with
// other plugins instead as packages are easier to break down and you do not have to carry the cost of extra plugin weight on
// first download since the other plugins/areas of your code can directly pull from the package in their async imports.
// For example, constants below could eventually be in a "kbn-cases-constants" instead.
// See: https://docs.elastic.dev/kibana-dev-docs/key-concepts/platform-intro#public-plugin-api
```

Some of those that are exposed such as `throwErrors` might actually be small simple mistakes as `security_solution` is using it but it has a "copy" of the same utility within just its server section rather than within its common section. That can be done in a different cleanup PR and cases team can decide what to do moving forward with their API before or post 8.0.0 release.

For the metric increasing of:
| id | [before](f01106c100) | [after](f2e5d6a848) | diff |
| --- | --- | --- | --- |
| `cases` | 16 | 22 | +6 |

Running that suggestion:

```sh
node --max-old-space-size=6096 scripts/build_api_docs --plugin cases --stats exports
```

I see this:
<img width="1851" alt="Screen Shot 2021-12-03 at 9 30 45 AM" src="https://user-images.githubusercontent.com/1151048/144638952-43d50478-ea12-4ce1-8f73-585c735772b4.png">

I don't know if there is a way just yet to mark undocumented public API's but I don't feel concerned with it at the moment and if the case team wants to re-expose those or are going to support API's through documentation they can decide what to do. This PR is more about just removing as much as possible to start with and then go the other direction where the individual teams can decide what to expose and if the download weight is worth it or if it's just `export type` and holds no weight, etc...

* Updated staged files

* Fixed prettier issues
2021-12-06 18:54:44 -07:00
Tiago Costa
beb041b24f
[8.0] chore(NA): splits types from code on @kbn/i18n (#119256) (#119649)
* chore(NA): splits types from code on @kbn/i18n (#119256)

* chore(NA): auto creation of the package.json for the new types pkg rule

* chore(NA): first alpha api extractor working version

* chore(NA): support kbn-analytics

* chore(NA): correctly read tsconfig files and deps from ts_config rule

* chore(NA): layed out pkg_npm_types tree artifact custom rule

* chore(NA): missing todos

* chore(NA): node modules link mapping

* chore(NA): fully working pkg_npm_types rule

* chore(NA): fix changes on new packages using elastic datemath pkgs

* docs(NA): remove todo

* docs(NA): last todo text correction

* chore(NA): removed commented lines

* fix(NA): include missing package version

* chore(NA): include license keys

* chore(NA): change mock types package into private

* chore(NA): disable validator on ts_project rule

* chore(NA): use the wrapper for ts_project

* commit using @elastic.co

* chore(NA): commit using @elastic.co

* chore(NA): split types from code on @kbn/i18n

* chore(NA): update yarn.lock file

* chore(NA): split @kbn/i18n and @kbn/i18n-react

* chore(NA): missing import fix

* chore(NA): fix jest project configs

* chore(NA): change imports on kbn i18n

* chore(NA): change imports on kbn i18n

* chore(NA): correct loader imports

* chore(NA): missnig i18nLoader export key

* chore(NA): fix type exports

* chore(NA): export type only

* chore(NA): export type only

* fix(NA): type exports

* chore(NA): missing @Kbn/i18n/react imports

* chore(NA): missing skip path for kbn-i18n-react

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	package.json
#	packages/BUILD.bazel
#	packages/kbn-monaco/BUILD.bazel
#	src/core/public/core_app/status/components/server_status.tsx
#	src/core/public/core_app/status/components/status_table.tsx
#	src/core/public/core_app/status/components/version_header.tsx
#	src/core/public/core_app/status/status_app.tsx
#	src/plugins/console/public/application/components/storage_quota_error.tsx
#	src/plugins/dashboard/public/application/listing/dashboard_listing.tsx
#	src/plugins/data_view_field_editor/public/components/field_editor/form_fields/script_field.tsx
#	src/plugins/dev_tools/public/application.tsx
#	src/plugins/discover/public/application/apps/context/context_app_route.tsx
#	src/plugins/discover/public/application/apps/doc/single_doc_route.tsx
#	src/plugins/discover/public/application/apps/main/components/doc_table/components/table_row_details.tsx
#	src/plugins/discover/public/application/apps/main/components/layout/discover_documents.tsx
#	src/plugins/discover/public/application/components/table/table_columns.tsx
#	src/plugins/discover/public/application/components/table/table_row_btn_filter_remove.tsx
#	src/plugins/discover/public/application/components/table/table_row_btn_toggle_column.tsx
#	src/plugins/index_pattern_editor/public/open_editor.tsx
#	src/plugins/interactive_setup/public/plugin.tsx
#	src/plugins/kibana_overview/public/application.tsx
#	src/plugins/kibana_react/public/util/to_mount_point.tsx
#	src/plugins/presentation_util/public/components/field_picker/field_search.tsx
#	src/plugins/vis_types/timeseries/public/timeseries_vis_renderer.tsx
#	src/plugins/vis_types/xy/public/vis_renderer.tsx
#	src/plugins/visualizations/public/wizard/show_new_vis.tsx
#	x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_create_from_csv/error_display.tsx
#	x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_create_from_csv/instructions.tsx
#	x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_create_from_csv/main.tsx
#	x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_create_from_csv/pipelines_csv_uploader.tsx
#	x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_create_from_csv/pipelines_preview.tsx
#	x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_list/empty_list.tsx
#	x-pack/plugins/lens/public/editor_frame_service/editor_frame/suggestion_panel.tsx
#	x-pack/plugins/lens/public/indexpattern_datasource/utils.tsx
#	x-pack/plugins/lens/public/metric_visualization/visualization.tsx
#	x-pack/plugins/lens/public/pie_visualization/render_function.tsx
#	x-pack/plugins/maps/public/classes/sources/ems_tms_source/update_source_editor.js
#	x-pack/plugins/maps/public/classes/sources/es_search_source/util/scaling_documenation_popover.tsx
#	x-pack/plugins/security/public/authentication/access_agreement/access_agreement_page.tsx
#	x-pack/plugins/security/public/authentication/logged_out/logged_out_page.tsx
#	x-pack/plugins/security/public/authentication/login/login_page.tsx
#	x-pack/plugins/security/public/authentication/overwritten_session/overwritten_session_page.tsx
#	x-pack/plugins/security/public/management/users/users_management_app.tsx
#	x-pack/plugins/security_solution/public/management/pages/event_filters/view/components/form/index.tsx
#	x-pack/plugins/spaces/public/space_selector/space_selector.tsx
#	yarn.lock

* chore(NA): missing @kbn/i18n/react imports
2021-11-24 12:19:43 -07:00
Kibana Machine
aa04230bd1
[Cases] [104391] Prevent onSave error when field has not changed (#118825) (#119111)
* [Cases] [104391] Update onSave call to confirm a change before attempting to save.

* Update tests

* Fixes from PR

Co-authored-by: Kristof-Pierre Cummings <kristofpierre.cummings@elastic.co>

Co-authored-by: Kristof C <kpac.ja@gmail.com>
Co-authored-by: Kristof-Pierre Cummings <kristofpierre.cummings@elastic.co>
2021-11-18 16:15:26 -07:00
Kibana Machine
ea9ce6e966
[Cases] Fixes configuration page flaky tests (#118521) (#118676)
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
2021-11-16 06:28:03 -07:00
Kibana Machine
21f3957c3c
[kbn/rule-data-utils] add submodules and require public use them (#117963) (#118628)
* [kbn/rule-data-utils] add submodules and require public use them

* fix lint errors

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

Co-authored-by: Spencer <email@spalger.com>
2021-11-15 17:16:30 -07:00
Or Ouziel
835f2d8d45
[8.0] replace any with unknown in http client and types (#114265) (#118348)
* replace any with unknown in http client and types (#114265)

# Conflicts:
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/crawler/crawler_logic.ts
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/crawler/crawler_overview_logic.ts
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/curations/components/suggestions_logic.tsx
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/curations/views/curation_suggestion/curation_suggestion_logic.ts
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/curations/views/curations_settings/curations_settings_logic.ts

* commit using @elastic.co

* remove unused file
2021-11-15 09:12:42 -07:00
Kibana Machine
e961a7aa8a
[RAC] Makes selection of existing cases more intentional (#117683) (#118435)
* Adds footer buttons to add to case modal dialog

* Uses a button to select a case

* Augments props passed to cases table columns

* Removes unused i18n strings

* Removes unnecessary default argument

* Updates all cases unit test

* Restores cancel button in cases modal

* Updates Cypress test

* Formats translation file

* UX review feedback

* UX review feedback: cancel button

* Review feedback

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

Co-authored-by: Claudio Procida <claudio.procida@elastic.co>
2021-11-11 17:50:02 -07:00
Kibana Machine
10825995c1
[Design Audit] Cleanup small layout issues on Case pages (#118128) (#118360)
* fixed line wrapping

* Prevent title from breaking word on wrap.

* remove extra padding

* Fixes "Cases" double header. Actions on same row.

* remove leftover code / fix check

* fix i18n check

Co-authored-by: Henry Harding <henry.harding@elastic.co>
2021-11-11 11:25:46 -05:00
Kibana Machine
f776be5e61
[Cases] [108671] Fix faulty status api call, if selection is same (#118115) (#118263)
* [Cases] [108671] Fix faulty status api call, if selection is same

* Add unit test to ensure selecting same status message does not call api

Co-authored-by: Kristof-Pierre Cummings <kristofpierre.cummings@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kristof C <kpac.ja@gmail.com>
Co-authored-by: Kristof-Pierre Cummings <kristofpierre.cummings@elastic.co>
2021-11-10 20:24:49 -05:00
Spencer
7595121751
[8.0] Remove direct usage of EUI theme vars (#116232) (#118228)
* Remove direct usage of EUI theme vars (#116232)

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	src/plugins/discover/public/application/components/discover_grid/discover_grid_document_selection.tsx
#	x-pack/plugins/apm/ftr_e2e/cypress/integration/read_only_user/service_inventory/service_inventory.spec.ts
#	x-pack/plugins/apm/public/application/uxApp.tsx

* commit using @elastic.co
2021-11-10 16:26:34 -05:00
Kibana Machine
efeb419e61
[Connectors][ServiceNow] Remove SN flags (#117511) (#117634)
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
2021-11-05 12:43:33 +00:00
Jonathan Budzenski
57a764f057
Revert "[8.0] replace any with unknown in http client and types (#114265) (#117524)" (#117592)
This reverts commit 58f1af552e.
2021-11-04 15:18:29 -05:00
Or Ouziel
58f1af552e
[8.0] replace any with unknown in http client and types (#114265) (#117524)
* replace any with unknown in http client and types (#114265)

# Conflicts:
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/curations/components/suggestions_logic.tsx
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/curations/views/curation_suggestion/curation_suggestion_logic.ts
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/curations/views/curations_settings/curations_settings_logic.ts
#	x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/resilient/api.ts

* commit using @elastic.co
2021-11-04 18:15:11 +00:00
Kibana Machine
468bc21f95
[105264] Fix error not surfacing bug for Jira (#114800) (#116828)
* [105264] Fix error not surfacing bug for Jira

* [105264] Fix ServiceNow errors not surfacing to UI

* Fix tests with updated functon

* Fix PR errors

Co-authored-by: Kristof-Pierre Cummings <kristofpierre.cummings@elastic.co>

Co-authored-by: Kristof C <kpac.ja@gmail.com>
Co-authored-by: Kristof-Pierre Cummings <kristofpierre.cummings@elastic.co>
2021-11-04 14:16:11 +00:00
Spencer
7d3d79e6a1
[8.0] [eslint] enable type-specific lint rules (#114184) (#117444)
* [eslint] enable type-specific lint rules (#114184)

* [eslint] enable type-specific lint rules

* autofix violations

* duplicate eslint-disable to new export statement

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	src/plugins/share/common/index.ts

* autofix more types

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-11-04 03:02:56 +00:00
Kibana Machine
36242b2348
[Security Solution][RAC][Cases] Fix RAC "add to case" functionality from alerts table (#116768) (#117426)
* Fix add to case functionality

* Use appropriate owner when attaching an alert to a case

* Use field name constants

* Gotta reskip the test

* Better error handling

* Fix type errors

* Fix tests

Co-authored-by: Madison Caldwell <madison.rey.caldwell@gmail.com>
2021-11-03 22:56:02 +00:00
Kibana Machine
244d949982
[Cases] Do not show deprecated callout on deleted connectors (#116615) (#116911)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
2021-11-01 11:13:16 +00:00
Kibana Machine
26b3137981
[Cases] Fix configure cases flaky test (#116575) (#116602)
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
2021-10-30 14:46:14 +03:00
Tyler Smalley
01292cec67 Skip failing test (#115366)
https://github.com/elastic/kibana/issues/115366

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-10-26 17:23:24 -07:00
Tyler Smalley
f92cbbcd7d skip flaky suite (#115366) 2021-10-26 13:45:24 -07:00
Christos Nasikas
62e203818f
[Connectors][ServiceNow] Rename isLegacy configuration property (#115028)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-25 18:13:47 +01:00
Christos Nasikas
14ac1643e6
[Cases] Add another newline after a quote message (#116104) 2021-10-25 17:51:26 +01:00
Pablo Machado
c274d39152
Standardize page header layouts in Security (#115393)
* Standardize page header layouts in Security

* Update Observability create case layout
2021-10-21 13:20:11 +02:00
Sergi Massaneda
c80b96c5c1
[Cases] ServiceNow connectors UI changes (#114234)
* POC

* Before and after saving connector callbacks

* Draft callbacks on SN

* Migrate legacy connectors

* Add deprecated connector

* Fix callbacks types

* Pass isEdit to connector forms

* Get application info hook

* Validate instance on save

* Support both legacy and new app

* Seperate SIR

* Log application version & and throw otherwise

* Deprecated tooltip cases

* Deprecated tooltip alerts

* Improve message

* Improve translation

* Change to elastic table & fix types

* Add callbacks to add modal

* Pass new props to tests

* Change health api url to production

* Better installation message

* Migrate connectors functionality

* Change migration version to 7.16

* Fix bug

* Improve message

* Use feature flag

* Create credentials component

* Add form to migration modal

* Improve installation callout

* Improve deprecated callout

* Improve modal

* Improve application required modal

* Improve SN form

* Support both connectors

* Support correlation attributes

* Use same component for SIR

* Prevent using legacy connectors when creating a case

* Add observables

* Unique observables

* Push only if there are observables

* Change labels to plural

* Pass correlation ID and value

* Show errors on the callout

* Improve alerts tooltip

* Improve cases tooltip

* Warning callout on cases configuration page

* Fix tooltip content

* Add help text

* Change from string to array

* Fix i18n

* Fix spelling

* Update incidents for ITSM

* Update incidents for SIR

* Fix types

* Fix backend tests

* Fix frontend tests

* Add service tests

* Fix i18n

* Fix cypress test

* Improve ServiceNow intergration tests

* Fix cases integration tests

* Fix triggers actions ui end to end test

* Fix tests

* Rename modal

* Show error message on modal

* Create useOldConnector helper

* Show the update incident toggle only on new connectors

* Add observables for old connectors

* Fix error when obs are empty

* Enable SIR for alerts

* Fix types

* Improve combineObservables

* Add test for the sir api

* Add test for the sir service

* Add documentation

* PR feedback

* Improve cases deprecated callouts

* Improve observables format

* Add integration tests for SIR

* Fix doc error

* Add config tests

* Add getIncident tests

* Add util tests

* Add migration tests

* Add tests for connectors and improve callouts

* Add more tests

* Add more UI tests

* update connector modal to flyout

* PR feedback

* Test CI

* restore auth callout

* edit connector form spacing

* Improve integration tests

* Add 8 pixels to the left of the connector icon

* update switch to checkboxes

* case detail ui

* Seperate ServiceNow integration tests

* Remove observables fields

* Add correlation values

* Fix merge

* add deprecated text in the dropdown

* update card icon to the right

* new update connetor test and other tests fixes

* PR feedback

* Remove observables from docs

* Remove unused translations

* Using eui theme for styling

* Content feeback

* Add more unit tests

* Fix i18n

* Fix types

* Fixes

* Fixes

* test properly

* fix duplicated translation

* Simplify tooltip

* Writing feedback

Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
2021-10-18 08:50:03 -04:00
Christos Nasikas
7ffebf1fa3
[Connectors] ServiceNow ITSM & SIR Application (#105440)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-12 20:58:45 +03:00
Jonathan Buttner
badc77828e
[Cases][Observability] Do not sync alerts status with case status (#114318)
* set sync status according to disable alerts

* Adding test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-11 12:55:06 -04:00
Sergi Massaneda
fd9dd2cb68
[Cases] Set breadcrumbs on update case title (#113266)
* set title on breadcrumbs on update case title

* test case added
2021-09-29 09:30:30 -04:00
Sergi Massaneda
9c30f87ff4
[Cases][Sharable SOs] Resolve deep link ids (#111984)
* backend implementation

* front UI changes to manage all resolve outcomes

* add spaces dependency to o11y

* tests fixed

* hack removed

* added resolve api integration test

* unit tests for the front changes

* add base resolve cypress test

* non-null assertions removed

* add resolve operation for logging

* eslint fix new rule

* create test snapshot

* migration resolve functional test
2021-09-23 17:08:13 +02:00
Jonathan Buttner
70f635b14d
[Cases] Migrate user actions connector ID V2 (#112710)
* Making progress

* Fleshing out the extraction logic

* Finishing migration logic and starting more tests

* Finishing migration unit tests

* Making progress on services

* Finishing transform to es schema

* Finishing transform functionality and unit tests

* reverting migration data updates

* Cleaning up type errors

* fixing test error

* Working migration tests

* Refactoring retrieval of connector fields

* Refactoring connector id in and tests in frontend

* Fixing tests and finished refactoring parse string

* Fixing integration test

* Fixing integration tests

* Removing some duplicate code and updating test name

* Fixing create connector user action bug

* Addressing feedback and logging error

* Moving parsing function to common

* Fixing type errors

* Fixing type errors

* Addressing feedback

* Fixing lint errors

* Adjusting import for user action changes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-22 08:59:49 -04:00
Tyler Smalley
e07b0e593e Revert "[Cases] Migrate user actions connector ID (#108272)"
This reverts commit 10ac814d8f.
2021-09-20 15:35:54 -07:00
Jonathan Buttner
10ac814d8f
[Cases] Migrate user actions connector ID (#108272)
* Making progress

* Fleshing out the extraction logic

* Finishing migration logic and starting more tests

* Finishing migration unit tests

* Making progress on services

* Finishing transform to es schema

* Finishing transform functionality and unit tests

* reverting migration data updates

* Cleaning up type errors

* fixing test error

* Working migration tests

* Refactoring retrieval of connector fields

* Refactoring connector id in and tests in frontend

* Fixing tests and finished refactoring parse string

* Fixing integration test

* Fixing integration tests

* Removing some duplicate code and updating test name

* Fixing create connector user action bug

* Addressing feedback and logging error

* Moving parsing function to common

* Fixing type errors

* Fixing type errors

* Addressing feedback

* Fixing lint errors

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-20 15:29:52 -04:00
Tyler Smalley
4681a80317
[DX] Upgrade prettier to v2.4.0 (#112359)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-09-19 22:34:30 -07:00
Pablo Machado
db07147091
Fix focus jumps from Case description box back to Alerts table with first <return> keystroke (#111273)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 10:35:47 +02:00
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
31d335868e
Disable sync toggle in flyout (#110714) 2021-09-01 09:06:29 -04:00
Patryk Kopyciński
f310490bc1
[Cases] Fix add Lens markdown plugin UX (#109178) 2021-08-26 14:56:45 -04:00