* Add search source to example plugin.
* Add uiSetting for fields API.
* Update SearchSource to support fields API.
* [PoC] reading from the fields API in Discover
* Add N fields as a default column
* Make fields column non-removeable
* Do not add 'fields' to state
* Remove fields from app state and read from source when needed
* Remove fields column if a new column is added
* Add search source to example plugin.
* Add uiSetting for fields API.
* Update SearchSource to support fields API.
* Improve error handling in search examples plugin.
* Add unit tests for legacy behavior.
* Remove uiSettings feature flag; add fieldsFromSource config.
* Rewrite flatten() based on final API design.
* Update example app based on final API design.
* Update maps app to use legacy fieldsFromSource.
* Update Discover to use legacy fieldsFromSource.
* Rename source filters to field filters.
* Address feedback.
* Update generated docs.
* Update maps functional test.
* Formatting fields column similar to _source
* Moving logic for using search API to updating search source
* Fix small merge error
* Move useSource switch to Discover section of advanced settings
* Do not use fields and source at the same time
* Remove unmapped fields switch
* Add basic support for grouping multifields
* Remove output.txt
* Fix some merge leftovers
* Fix some merge leftovers
* Fix merge errors
* Fix typescript errors and update nested fields logic
* Add a unit test
* Fixing field formats
* Fix multifield selection logic
* Request all fields from source
* Fix eslint
* Fix default columns when switching between _source and fields
* More unit tests
* Update API changes
* Add unit test for discover field details footer
* Remove unused file
* Remove fields formatting from index pattern
* Remove unnecessary check
* Addressing design comments
* Fixing fields column display and renaming it to Document
* Adding more unit tests
* Adding a missing check for useNewFieldsAPI; minor fixes
* Fixing typescript error
* Remove unnecessary console statement
* Add missing prop
* Fixing import order
* Adding functional test to test fields API
* [Functional test] Clean up in after
* Fixing context app
* Addressing PR comments
* Add support for unmapped fields
* Add data migration
* Add toggle unmapped fields logic
* Adding more unit tests
* Some cleanup
* More unit tests
* Fixing failing snapshot
* Add tooltip next to unmapped switch
* Add functional test for the feature
* Fixing a typo in a functional test
* Refetch data when unmapped fields value changes
* Updating mapping
* Support for fields API in search embeddable
* Addressing PR comments
* Fix failing unit test
* Updating the text
Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [WIP][Vega] Use mapbox instead of leaflet #78395
add MapServiceSettings class
some work
add tms_raster_layer
add LayerParameters type
clenup view.ts
some cleeanup
fix grammar
some refactoring and add attribution control
Some refactoring
Add some validation for zoom settings and destroy handler
Some refactoring
some work
fix bundle size
Move getZoomSettings to the separate file
update licence
some work
move logger to createViewConfig
add throttling for updating vega layer
* move EMSClient to a separate bundle
* [unit testing] add tests for validation_helper.ts
* [Bundle optimization] lazy loading of '@elastic/ems-client' only if user open map layer
* [Map] fix cursor: crosshair -> auto
* [unit testing] add tests for tms_raster_layer.test
* [unit testing] add tests for vega_layer.ts
* VSI related code was moved into a separate file / unit tests were added
* Add functional test for vega map
* [unit testing] add tests for map_service_setting.ts
* Add unload in function test and delete some unneeded code from test
* road_map -> road_map_desaturated
* [unit testing] add more tests for map_service_settings.test.ts
* Add unit tests for view.ts
* Fix some remarks
* Fix unit tests
* remove tms_tile_layers enum
* [unit testing] fix map_service_settings.test.ts
* Fix unit test for view.ts
* Fix some comments
* Fix type check
* Fix CI
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Add search source to example plugin.
* Add uiSetting for fields API.
* Update SearchSource to support fields API.
* [PoC] reading from the fields API in Discover
* Add N fields as a default column
* Make fields column non-removeable
* Do not add 'fields' to state
* Remove fields from app state and read from source when needed
* Remove fields column if a new column is added
* Add search source to example plugin.
* Add uiSetting for fields API.
* Update SearchSource to support fields API.
* Improve error handling in search examples plugin.
* Add unit tests for legacy behavior.
* Remove uiSettings feature flag; add fieldsFromSource config.
* Rewrite flatten() based on final API design.
* Update example app based on final API design.
* Update maps app to use legacy fieldsFromSource.
* Update Discover to use legacy fieldsFromSource.
* Rename source filters to field filters.
* Address feedback.
* Update generated docs.
* Update maps functional test.
* Formatting fields column similar to _source
* Moving logic for using search API to updating search source
* Fix small merge error
* Move useSource switch to Discover section of advanced settings
* Do not use fields and source at the same time
* Remove unmapped fields switch
* Add basic support for grouping multifields
* Remove output.txt
* Fix some merge leftovers
* Fix some merge leftovers
* Fix merge errors
* Fix typescript errors and update nested fields logic
* Add a unit test
* Fixing field formats
* Fix multifield selection logic
* Request all fields from source
* Fix eslint
* Fix default columns when switching between _source and fields
* More unit tests
* Update API changes
* Add unit test for discover field details footer
* Remove unused file
* Remove fields formatting from index pattern
* Remove unnecessary check
* Addressing design comments
* Fixing fields column display and renaming it to Document
* Adding more unit tests
* Adding a missing check for useNewFieldsAPI; minor fixes
* Fixing typescript error
* Remove unnecessary console statement
* Add missing prop
* Fixing import order
* Adding functional test to test fields API
* [Functional test] Clean up in after
* Fixing context app
* Addressing PR comments
* Updating failed snapshot
* Addressing PR comments
* Fixing i18n translations, updating type
* Addressing PR comments
* Updating a functional test
* Add a separate functional test for fields API
* Read fields from source in a functional test
* Skip buggy test
* Use default behavior in functional tests
* Fixing remaining failing tests
* Fixing date-nanos test
* Updating FLS test
* Fixing yet another functional test
* Skipping non-relevant tests
* Fixing more tests
* Update stub import in test
* Fix import
* Fix invalid import
Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Fix bug #7189
* typo
* Test adjustments
* wait for load complete
* Fine tune test
* Update src/plugins/data/public/query/filter_manager/lib/generate_filters.ts
Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
* Fix filtering by an array of nulls
Allow filtering by a non existing field in the doc
simplify flatten hit logic
Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* add error if filter index pattern is gone
* docs change - why?
* Fix i18n
* Added a functional test for broken filters (field + index pattern)
* Clarify readme
* Moved readme
* New warning status
* Remove getAll
* git pull upstream master
* Fix translation files
* Fix merge
* added filterbar texts
* disabled correction
* Disable check in maps test until #64861 is resolved
* Fix tests, warning state is not disabled.
* Adjust warning filter - ignore filters from "foreign" index pattern, that are still applicable
* Add an additional unrelaeted filter test
* Update src/plugins/data/public/ui/filter_bar/_global_filter_item.scss
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
* Update src/plugins/data/public/ui/filter_bar/_global_filter_item.scss
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
* Fixed test data
* Revert mapping
* Update data with missing test
* Update test to match data
* Code review
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* create field for references and add comments
* add FTR test
* remove comments
* address comments
* use real reference in dataset and assert against it.
* Auto interval on date histogram is getting displayed as timestamp per 0 milliseconds when x-axis bucket is collapsed
Closes#57822
* Fixed incorrect interval label displaying while scaling the chart.
* Updated agg.test.tsx snapshot
* Got rid of context and refactored agg hooks
* Fixed agg.type.name check
* Added functional tests to cover the date histogram interval editing
* Fixed some expected values in tests
* Updated some test cases
* Added a new visualization to visualize archive
* Added testSubjects service to replace find where possible
* Updated tests to match updated behavior
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Catch invalid calendar exception
* Use isValidEsInterval directly
* Show field error message right away
* Fix for the case 2w
* Update time_interval.tsx
* Restructure validation
* Rename fn to isValidCalendarInterval
* Refactoring
* Update time_interval.tsx
* Add functional tests
* Add functional tests for interval
* Update _area_chart.js
* Don't show error when value is empty
* Use error message from InvalidEsCalendarIntervalError
* Update _area_chart.js
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* just a demo of function to return saved object table elements
* fix esArchive data, extend import objects test case for relationships
* improved data-test-subjs
* update snapshot for jest test
* unskip other half of the tests
* removed commented-out code
* use new findByTestSubject methods
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This PR adds a new syntax to KQL for querying nested fields.
Nested fields can be queried in two different ways:
Parts of the query may only match a single nested doc (bool inside nested). This is what most people want when querying on a nested field.
Parts of the query may match different nested docs (nested inside bool). This is how a regular object field works but nested fields can be queried in the same way. Although generally less useful, there are occasions where one might want to query a nested field in this way.
The new KQL syntax supports both.
* Implement getSortForSearchSource for add-on of 'numeric_type' to the ES request. Then sorting on a field that can be of date or date_nanos type works correctly
* Add functional test
Introduces "saved queries". Saved queries are a new saved object type similar to saved searches but more limited in scope. They allow users to store the the query string in the query bar and optionally the set of filters and timefilter in order to reload them anywhere a query is expected: Discover, Visualize, Dashboard, anywhere that uses our full SearchBar component.
* Add date_nanos to date type in kibana field types
* date_nanos by default is formatted by "Date Nanos" format
* Format computed date_nanos field to strict_date_time to prevent rounding
* Hide Discover - "View surrounding documents" btn for date_nanos (will be subject of another PR)
* Append number of nano seconds to formatted timeField
* Add new key dateNanosFormat to UI setting defaults
The interval parameter is used to fill the gaps between missing buckets. If we are using a calendar interval it not always correspond correctly to his milliseconds representation. E.g. 1y interval can correspond to 365 or 366 days depending on the interval and. If transformed to milliseconds it can get one of those two values depending of the interval start and end. The same happens for months.
Add a new esarchive with 7 years of data, used for those functional tests
Removed angular dependency from zero injection
* Move fieldsFetch logic into the vis editor
* Add annotations index pattern change detection
* Fix async update of state. Add functional test
* Add missing data archive
* Force fetch when component mount the first time
* Fix parameters naming
* Refactoring indexPatterns to fetch
* undoing a messy merge
* updating screenshots
* changing the variance to account for data table failure
* trying a different variance for data table and a general one for the rest of the screenshots
* changing the variance for general to .065
* adding xy position to adjust the screensize
* changing variance and setting a small window
* create calibrateForScreenshots method
* remove empty lines
* Update & expand reporting API tests
* remove xpack stuff from oss archive
* wrap "it"s so they are in expected order.
* Update expected recent stats
* url was pointing to a visualization not a csv
* Move comment around
* Merging with changes on master renaming stats to usage
* fix reference to old stats file.
* bad merge
* Expand coverage of dashboard tests and decrease time
* Fix timing error when sub urls fail to save from too fast app link clicking
* discover doesn't have breadcrumbs
* Check top nav text so it works on both listing and saved object edit/view pages
* need to do the add panel operations one at a time
* Need both types of input in filter
* Give test data a title
* Remove incorrect and unnecessary comment
* Move data around and get rid of 6_3 specific naming as we will end up migrating the data as we progress
* Remove code accidentally checked in
* adding large_string_test
* removed a failing test, modified the existing one
* new line at the end of mappings.json
* removed the data.json file and also removed the navigateTo() and clickKibanaIndices() as createIndexPattern() takes care of it
* more modifications
* WIP - add shakespeare data for getting started guide
* Refactor of getLineChartData, getBarChartData, getAreaChartData
* Added changing extents and test
* Fix opening axis options
* Change precision from 8 to 7
* lower precision to 6
* Fix index pattern creation
* update from review, remove comments, add others
* test huge data
* new file for testing large number of fields
* testing large fields
* large_fields_test
* add the unload of es_archiver
* incorporated the changes in kibana.yml
* Revert "incorporated the changes in kibana.yml"
This reverts commit 8682121678.
* cleanup
* code simplification
* removed commented code
* input controls horizontal layout
* fix controlWidth calculation
* add functional test to ensure panel resizing changes layout
* use all caps for consts, add more comments about where values came from
* replace sleeps in functional tests with retry
* use KuiFlexGroup with wrap option instead of manually calculating widths
* remove no longer used min width constants