* Reporting: Fix _index and _id columns in CSV export
* optimize - cache _columns and run getColumns once per execution
* Update x-pack/plugins/reporting/server/export_types/csv_searchsource/generate_csv/generate_csv.ts
Co-authored-by: Michael Dokolin <dokmic@gmail.com>
* feedback
* fix typescripts
* fix plugin list test
* fix plugin list
* take away the export interface to test CI build stats
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Michael Dokolin <dokmic@gmail.com>
* network module
adds the network module with four ml jobs for the 7.13 release
* Update datafeed_high_count_network_denies.json
json formatting
* update test
added the security_network module to the list
* renames
module name change to security_network / Security: Network
* formatting
change hyphen char to underscores
* fixes and name changes
fixes to df queries, descriptions. created_by param
* update tests
tests need the security_network module added
* formatting
change hyphens to underscores
* descriptions
format descriptions
* Update datafeed_high_count_network_events.json
indentation fixes
* Update x-pack/plugins/ml/server/models/data_recognizer/modules/security_network/manifest.json
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
* Update x-pack/plugins/ml/server/models/data_recognizer/modules/security_network/ml/high_count_network_denies.json
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
* Update datafeed_high_count_network_events.json
change to a filter
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
* Fix toolbar overlay styles
* More styles
* Updating test
* Better focus state for mapbox buttons
* Mapbox buttons focus
* Focus againa
* Focus states again
* no background only for focus not hover
* Adding mixin for button group border radius
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
```
[2021-04-07T00:19:27Z] Jest did not exit one second after the test run has completed.
[2021-04-07T00:19:27Z]
[2021-04-07T00:19:27Z] This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with `--detectOpenHandles` to troubleshoot this issue.
```
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Prior to this fix, each Logstash node was overwriting the collected list of ephemeral ids used to
collect pipeline details. This meant that pipeline details were only being collected for the
last Logstash node retrieved for each cluster.
* Update shared button color and panel shading
* Vertically align table cells to top
* [App Search] Update panels to have backgrounds not borders
* [Workplace Search] Update panels to have backgrounds not borders
* re-align last cell to right
Accidentally deleted it refactoring
* Conditionally have border for App Search
Requested to remove for empty state
* [TSVB] fix annotation line doesnt work if no index pattern is applied
* [TSVB] remove series from annotations, remove timeField placeholder
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Don't apply formatter for default value
* Remove the logic to overwrite the default value because it is not being used
* Fix remark
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* - migrated use of legacy.client to client
- removed use of isEsError to detect legacy errors
- refactored types to use types from @elastic/elasticsearch
instead (where appropriate)
tested get, put, post, delete, simulate and documents endpoints
locally
* remove use of legacyEs service in functional test
* fixing type issues and API response object
* remove id from get all request!
* reinstated logic for handling 404 from get all pipelines request
* clarify error handling with comments and small variable name refactor
* updated delete error responses
* update functional test
* refactor use of legacyEs
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* chore(NA): add warnings both to run and watch commands about Bazel built packages
* chore(NA): add new commands to build and watch bazel packages
* docs(NA): add documentation about how to deal with bazel packages
* chore(NA): addressed majority of the feedback received except for improved error logging
* chore(NA): disable ibazel info notification.
* chore(NA): remove iBazel notification
* chore(NA): remove iBazel notification - kbn pm dist
* chore(NA): move show_results option to kbn-pm only
* chore(NA): patch build bazel command to include packages target list
* chore(NA): add pretty logging for elastic-datemath
* chore(NA): remove double error output from commands ran with Bazel
* fix(NA): include simple error message to preserve subprocess failure state
* docs(NA): missing docs about how to independentely watch non bazel packages
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* First pass at rebuilding nested object structure from fields response
* Always requests TIMELINE_CTI_FIELDS as part of request
This only works for one level of nesting; will be extending tests to
allow for multiple levels momentarily.
* Build objects from arbitrary levels of nesting
This is a recursive implementation, but recursion depth is limited to
the number of levels of nesting, with arguments reducing in size as we
go (i.e. logarithmic)
* Simplify parsing logic, perf improvements
* Order short-circuiting conditions by cost, ascending
* Simplify object building for non-nested objects from fields
* The non-nested case is the same as the base recursive case, so
always call our recursive function if building from .fields
* Simplify getNestedParentPath
* We can do a few simple string comparison rather than building up
multiple strings/arrays
* Don't call getNestedParentPath unnecessarily, only if we have a field
* Simplify if branching
By definition, nestedParentFieldName can never be equal to fieldName, which means
there are only two branches here.
* Declare/export a more accurate fields type
Each top-level field value can be either an array of leaf values
(unknown[]), or an array of nested fields.
* Remove unnecessary condition
If fieldName is null or undefined, there is no reason to search for it
in dataFields. Looking through the git history this looks to be dead
code as a result of refactoring, as opposed to a legitimate bugfix, so
I'm removing it.
* Fix failing tests
* one was a test failure due to my modifying mock data
* one may have been a legitimate bug where we don't handle a hit without
a fields response; I need to follow up with Xavier to verify.
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Add missing i18n
Oops
* Change button color
* Fix custom source created screen
* Add better empty state to groups
* Align toggle to right side of table
* Update design for security page
* Update ‘How to add’ view
* Update config completed view
* Update add source connect page
* Remove padding on how to add card
Original had no padding.
* CSS cleanup
* Refactor ResultActions component + DRY out link behavior
- Create new separate ResultActions component
- Pass actions array through to header and have haeder in charge of conditional visibility / FlexItem wrapper (this matches the other header items)
- shouldLinkToDetailPage: instead of generating custom JSX, just have it be a standard action and append it to the actions array
Link behavior:
- ResultHeaderItem - switch to EuiLinkTo, no need for extra wrapper
- ResultHeader - DRY out unnecessary extra path generation - instead pass down a conditional documentLink instead of a bool
* PR feedback: Fix test name
* PR feedback: unshift
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* migrator waits for source index to be yellow
otherwise the next request to Elasticsearch can fail
* unskip integration tests that failed due to a red cluster
* log how much the every step lasts
* use Date.now instead of performance.now migration cannot finish in ms
* update tests
* clean log file before running tests
* fix wrong type
* add an integration test for waitForIndexStatusYellow
## Summary
Can now pass a `force=true` parameter to add & remove integrations on hosted policies as originally intended [1] & [2]
* Add `force` param for `POST` `/api/fleet/package_policies` & `/api/fleet/package_policies/delete` to a policy. Update tests to confirm
* Not strictly required, but "while I was in there"
* Updated a few places to throw `IngestManagerError` vs `Error` for `400` response vs `500`. Updated tests.
* removed a few unnecessary `await`s of sync function
[1] https://github.com/elastic/kibana/issues/92426#issuecomment-785092670
[2] https://github.com/elastic/kibana/issues/90445
### Checklist
- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>