* Add condition so that preselect first timefield from the list if we use * as index pattern
* Add default timefield for string index pattern mode
* Add comment for condition
* Fix lint
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [Alerting] Telemetry for max number of actions a rule has and max alerts created on execution
* -
* Update rules_client.ts
* fixed task data
* added unit test
* fixed by adding runtime field
* fixed task data
* fixed test
* fixed telemetry for throttle and interval
* fixed task data
* fixed task data
* fixed test
* fixed due to comments
* fixed typecheck
* fixed test
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [Alerting] Changed alerting telemetry throttle and interval metrics to be numbers instead of strings
* fixed test
* fixed typecheck
* set size to 0
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* correct styles for config panel (if data view is unavailable, the margins are still ok)
* temp
* fix data views bugs
* add test
* integrate feedback
* Update datapanel.tsx
* Update x-pack/plugins/lens/public/indexpattern_datasource/loader.ts
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* fix(NA): adds no_transpilation_dist to avoid preserve_symlinks on dist
* chore(NA): setup node env correctly on functional tests
* chore(NA): try to fix tests
* chore(NA): correctly separate split
* chore(NA): check ensure preserve symlinks need
* chore(NA): investigate path resolve result
* chore(NA): investigate path resolve result #2
* chore(NA): comment out preserve symlinks
* chore(NA): apply fs.realpathSync into the calculated REPO_ROOT paths on babel_register_for_test_plugins
* chore(NA): removes debug code
* chore(NA): move array definition
* chore(NA): correctly import fs
* chore(NA): add debug code
* chore(NA): some more debug statements
* chore(NA): remove ensure symlinks
* chore(NA): trying to solve double symlinking
* chore(NA): test mappings
* chore(NA): process path
* chore(NA): test a second map
* chore(NA): using a different mappings
* chore(NA): more debug cases
* chore(NA): more debug logic
* chore(NA): more debug cases
* chore(NA): more debug cases
* chore(NA): more debug cases
* chore(NA): try to add realpathSync into require
* chore(NA): try to add realpathSync into require
* fix(NA): jenkins and buildkite run
* chore(NA): add debug logs
* chore(NA): correct path
* chore(NA): correct path
* chore(NA): add more test maps
* chore(NA): add more test maps
* chore(NA): add some more test maps experiments
* chore(NA): try to remove another test map dep
* chore(NA): try to remove another test map dep
* chore(NA): try to remove another test map dep
* chore(NA): try to remove another test map dep
* chore(NA): try to remove another test map dep
* chore(NA): try to remove another test map dep
* chore(NA): try to remove another test map dep
* chore(NA): try to remove another test map dep
* chore(NA): include all correct transpilations for each jenkins path
* chore(NA): include all correct transpilations for each used asset path
* chore(NA): include all correct transpilations for each used asset path
* chore(NA): remove jenkins support
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [ML] Initial embed
* [ML] Initial embed props
* [ML] Add top nav link to data viz
* Add visible fields
* Add add data service to register links
* Renames, refactor, use constants
* Renames, refactor, use constants
* Update tests and mocks
* Embeddable
* Update hook to update upon time udpate
* Add filter support to query
* Refactor filter utilities
* Add filter support for embeddable
* Fix saved search data undefined
* Prototype aggregated view/document view switcher
* Prototype flyout
* Prototype save document view option in storage
* Fix filter and query conflict with saved search
* Minor styling edits
* [ML] Initial embed
* [ML] Initial embed props
* Add embeddable 1
* Add visible fields
* Embeddable 2
* Add filter support to query
* Refactor filter utilities
* Add filter support for embeddable
* Fix saved search data undefined
* Prototype aggregated view/document view switcher
* Prototype flyout
* Prototype save document view option in storage
* Fix filter and query conflict with saved search
* Minor styling edits
* Fix missing code after conflicts
* Remove dv locator and flyout
* Make types happy
* Fix types
* Rename toggle option
* Resolve conflicts
* [ML] Reduce size of chart
* [ML] Unbold name, switch icons of show distributions
* [ML] Make size consistent
* [ML] Make page size 25
* [ML] Switch to arrow right and down
* [ML] Make legend font smaller
* [ML] Add user setting
* [ML] Add show preview by default setting
* [ML] Match icon
* Add panels around the subcontent
* Add preference for aggregated vs doc
* Fix types
* Fix types, add constants for adv settings
* Change to data view type
* Temp fix for Kibana/EUI table overflow issue
* Modify line height so text is not cut off, modify widths for varying screen sizes
* Different width padders for different screens
* Fix CI
* Merge latest, move button to the right
* Fix width for bar charts previews
* Fix toggle buttons, fix maps
* Delete unused file
* Fix boolean styling
* Change to enum, discover mode
* Hide field stats
* Hide field stats
* Persist show mini preview/distribution settings
* Remove window size, use size observer instead
* Default to document view
* Remove bold, switch icon
* Set fixed width for top values, reduce font size in table
* Fix custom url tests
* Update width styling for panels
* Fix missing flag for Discover sidebar, jest tests
* Fix max width
* Workaround for sorting
* Fix import
* Fix styling
* Make height uniform, center alignment, fix map and keyword map not same size
Move styling
* Revert "Make height uniform, center alignment, fix map and keyword map not same size"
This reverts commit 8fc42e2f
* Revert "Make height uniform, center alignment, fix map and keyword map not same size"
This reverts commit 8fc42e2f
* Uniform height, left aligned, flex grid
* Switch top values to have labels
* Center content
* Replace fixed widths with percentage
* Fix table missing field types
* Add dashboard embeddable and filter support
* Fix file data viz styling and tests, lean up imports, remove hard coded pixels
* Add search panel/kql filter bar
* Temporarily fix scrolling
* New kql filters for data visualizer
* Set map height so it will fit the sampler shard size text
* Use eui progress labels
* Fix spacer
* Add beta badge
* Temporarily fix scrolling
* Fix grow for Top Values for
* [ML] Update functional tests to reflect new arrow icons
* [ML] Add filter buttons and KQL bars
* [ML] Update filter bar onChange behavior
* [ML] Update top values filter onChange behavior
* [ML] Update search filters when opening saved search
* [ML] Clean up
* [ML] Remove fit content for height
* [ML] Fix boolean legend
* [ML] Fix header section when browser width is small to large and when index pattern title is too large
* [ML] Hide expander icon when dimension is xs or s & css fixes
* [ML] Delete embeddables because they are not use
* [ML] Rename view mode, refactor to separate hook, add error prompt if can't show, rename wrapper, clean up & fix tests
* [ML] Make doc count 0 for empty fields, update t/f test
* [ML] Add unit testing for search utils
* Fix missing unsubscribe for embeddable output
* Remove redundant onAddFilter for this PR, fix width
* Rename Field Stats to Field stats to match convention
* [ML] Fix expand all/collapse all behavior to override individual setting
* [ML] Fix functional tests should be 0/0%
* [ML] Fix docs content spacing, rename classnames, add filters to Discover, lens, and maps
* [ML] Fix doc count for fields that exists but have no stats
* [ML] Fix icon styling to match Discover but have text/keyword/histogram
* [ML] Fix doc count for fields that exists but have no stats
* [ML] Rename classnames to BEM style
* Resolve latest changes
* [ML] Add tests for data viz in Discover
* Update tests & dashboard behavior to reflect new advanced settings
* Update telemetry
* Remove workaround after eui bump fix
* Fix missing bool clause
* Add login
* Fix saved search attributes broken with latest changes
* Update tests
* Fix import
* Match the no results found
* Fix query util to return search source's results right away. Fix texts.
* Rename old test suits to farequoteDataViewTestData
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
## Summary
When moving the saved object references I added logger errors and utilities to detect when the original data structure id changed from the saved object reference id's. However, when things move to mulit-space or if users upload different id's within these structures from something such as the saved object management system then users will see these errors in their logs when they shouldn't. I removed them all as this is expected behavior that the references array can and will contain different id's.
Before you would see these messages on an upgrade to 8.0.0 or if you uploaded or changed a rule id through the SOM:
```
[2021-10-18T17:36:03.550-06:00][ERROR][plugins.securitySolution] The id of the "saved object reference id": ec94193b-4788-5ceb-b8fb-5e270836beec is not the same as the "saved object id": 6caeff30-3069-11ec-83d2-0376356fe525. Preferring and using the "saved object reference id" instead of the "saved object id"
```
Now you will not.
### 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
## Summary
We at least want to do our best to retain n-1 version compatible with exports and then best effort for n-2 or more. During testing I saw that we changed our export contract and I was getting these errors importing from 7.15 into 7.16:
<img width="814" alt="Screen Shot 2021-10-20 at 8 25 07 PM" src="https://user-images.githubusercontent.com/1151048/138202992-c6e016e6-388c-4597-b302-b13d7126e705.png">
The reason is because it thinks the final "summary line" which has `exported_count` instead of `exported_rules_count` will think that is a rule based ndjson line and not exclude it.
This was introduced in this PR: https://github.com/elastic/kibana/pull/115144
I was under the impression that was adding more information and not subtracting information when I did the PR review. I almost think that we should keep the `exported_count` in addition to the new lines that are added so the user has a total count of everything exported. This PR doesn't do that, it just fixes the backwards compatibility to not have errors. If we ship like this the other rules from 7.15 and previous will still import but users will see error messages like that one above which they should never see.
However, really, we should be careful about changes that are not just additive with formats.
### Checklist
No this PR currently does not have tests for backwards compatibility but I think we should add it either here or a follow up.
- [ ] [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
* [CodeEditor] add support of triple quotes
* add tests for grammar
* an escaped quote can be appended to the end of triple quotes'
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* --wip-- v1 of the UX [skip-ci]
* copy update [skip-ci]
* also respect the max URL limit
* use "isUnsaved"
* move files around and introduce callout for warnings
* remove proceed anyway
* cleaned up imports
* fix i18n and types
* added jest tests and update jest snapshot
* rewrite max length for reader clarity.
* refactor unsaved "warning" to unsaved "error" and do not show the copy URL button
* update screenshot capture panel test and snapshots
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Update deprecated PDF job factory to use updated saved object resolver
* Reuse data plugin service to gather index pattern attributes in the deprecated CSV export type