* initial file import
* update types
* update RFC PR number
* first draft complete
* draft v1.1.0
* initial self review
* nits and comments
* add 'preference' option
* change meta type to Record<string, Serializable>
* specify cancellation
* remove generic for GlobalSearchResponse, use distinct type on client and server
* use plain string instead of enum for GlobalSearchResult.type
* remove terminology from unresolved questions
* update pros/cons of core vs plugin
* GS is exposed from a plugin instead of core
* remove the server.publicAddress proposal, return mixed abs url / rel paths instead
* distinguish result type between GS api and result providers
* return batched results, no longer sort
* remove request from GlobalSearchProviderContext
* add maxResults to GlobalSearchProviderFindOptions
* nit/typo
* create field for references and add comments
* add FTR test
* remove comments
* address comments
* use real reference in dataset and assert against it.
* watcher uses es api from start
* CCR uses ES API from start contract
* Rollup uses ES API from start contract
* Transform uses ES API from start contract
* Snapshot_restore uses ES API from start contract
* remove excessive logging. platform logs all the lifecycles
* file uploader uses ES API from start contract
* remove unnecessary async
* use async getter
* update rollup custom client usage
* address cj comment
* roll back changes. maps tests are failing
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* [Maps] Do not check count for blended layers when layer is not visible
* move visibility logic to map_actions where syncData is called
* clean up
* fix syntax error
* remove async action
* make syncDataForAllLayers a proper redux action
* simplify
* fix functional test
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
## Summary
Our directory structure has changed recently and the GraphQL needs to be updated for it to find the new location of the graphql files. I used a more global glob approach which will make it easier to change directories again and not have it break.
This does cause the generated file to have different positions and looks like changes but they are just movements.
To test this:
* Check it out
* Run this:
```sh
cd $HOME/projects/kibana/x-pack/plugins/siem && node scripts/generate_types_from_graphql.js
```
And ensure the types do not change and you can run a type check like so:
```sh
cd $HOME/projects/kibana && node scripts/type_check.js --project x-pack/tsconfig.json
```
## Summary
See for more details:
https://github.com/elastic/kibana/issues/65938
Adds pieces of the `exception list` and `exception list item` and refactors/cleans the code up where I had parts incorrect with little things such as the javascript library io-ts. Some unit tests were added but I am holding off until more of the operations solidify before adding the unit tests. Everything is still behind a feature flag that must be enabled and not advised still at this point to use so I feel ok pushing these parts forward.
Adds to the API:
- Create exception list
- Read exception list
- Update exception list
- Delete exception list (and exception list items that are associated with it)
- Create exception list item
- Find exception list (/_find)
- Read exception list item
- Update exception list item
- Delete exception list items individually
- Find exception list item (/_find)
What is still missing from the REST and client API?
- Patch exception list
- Patch exception list item
- Bulk versions of everything
- Import/Export options for these exception lists and list items
### Manual testing and REST API endpoints
Go here:
```sh
/projects/kibana/x-pack/plugins/lists/server/scripts
```
See the files:
```sh
delete_all_exception_lists.sh
delete_exception_list.sh
delete_exception_list_by_id.sh
delete_exception_list_item.sh
delete_exception_list_item_by_id.sh
exception_lists
find_exception_list_items.sh
find_exception_lists.sh
get_exception_list.sh
get_exception_list_by_id.sh
get_exception_list_item.sh
get_exception_list_item_by_id.sh
post_exception_list.sh
post_exception_list_item.sh
update_exception_list.sh
update_exception_list_item.sh
```
Ensure you first run:
```sh
./hard_reset
```
and ensure you have setup your kibana.dev.yml to have:
```yml
# Enable lists feature
xpack.lists.enabled: true
xpack.lists.listIndex: '.lists-frank'
xpack.lists.listItemIndex: '.items-frank'
```
Then you can use the above scripts to create, read, update, and delete exception list and exception list items as well as perform find commands against them all.
### Checklist
Delete any items that are not applicable to this PR.
- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios
Note: Some but limited unit tests at this point.
* [APM] Disable map layout animation
Don't animate the layout. Keep animation for centering/zoom.
`preventDefault` when centering an already focused node so it doesn't do an unnecessary navigation.
Fixes#66695
* [ML] Add linking to dataframe from job management tab
* [ML] Add linking to df analytics job list from management tab
* [ML] Add ability to query text/job id from url for DFA page
* [ML] Add linking to dataframe from job management tab
* [ML] Add linking to df analytics job list from management tab
* [ML] Add ability to query text/job id from url for DFA page
* [ML] Refactor get_job_id_url util function & clean up
* [ML] Add declaration file for job_list's utils
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* register OSS features with KP SO types only
* use Licensing plugin API in features plugin
* add plugin tests
* filter hidden types out
* cleanup tests
* rename
* add degug logging
* add warning for setup contract
* fix typo
* [CODEOWNERS] set kibana-qa to own test/functional/services
* [functional/services] move low-level services to common folder
* update codeowners
* update imports
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* line restricted zones for export exressions
* more robust rule
* fix or mute eslint errors
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Move META_FIELDS_SETTING, DOC_HIGHLIGHT_SETTING to data plugin.ts
* Refactor table_list_view.tsx to no longer get PER_PAGE_SETTING by uiSettings
* Migrate graph, visualize, dashboard usage of saved_objects module constants to accessor functions
* Remove redundant logging in plugins start and setup methods
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
* First iteration of supporting hidden indices in indices table
Tests probably have broken
* Remove unused code
* Fix logic when calling get index endpoint with empty array
Also remove unused translations
* More terse!
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>