Two group-by or aggregation names could result in conflicting nested fields which would return an error for pivot previews. For example, two names like responsetime and responsetime.avg are not allowed.
This PR fixes the issue by extending the tests whether a configuration is allowed to be added to the list of group-by and aggregation configurations. If a conflict is detected, a toast notification gets triggered and the configuration won't be added.
With insufficient privileges, a user would be redirected to the ML plugin's access-denied page which mentions the required user roles to access the pages. Since data frames introduces new user roles these messages were not correct.
This PR fixes it by redirecting to a specific access-denied page for data frames. To avoid to much refactoring as a fix, the page is a copy and port to React of the original one. In a follow up for 7.3, we should merge the two pages and it should have options to display required user roles given a certain context like anomaly detection or data frames.
- 7.0 introduced indices.query.bool.max_clause_count which defaults to 1024. This can break certain queries (e.g. simple_query) for indices which have more than 1024 fields (e.g. certain beats indices). The optional data frames query uses simple_query and could therefor break the source index preview as well the pivot preview and pivot job itself given these conditions.
- Originally the default query (* used for simple_query) was always applied for source index previews and pivot previews. A new check isDefaultQuery() will now allow a) the source index preview to use a more efficient match_all query and b) avoid adding the query to the pivot config. This avoids triggering the max_clause_count when no optional query is set.
- If an index has more than 1024 fields, the input form for an optional query will be hidden. A helper text explains the reasoning. This avoids triggering max_clause_count related errors from within the UI. A user can still copy a UI created config to the clipboard and add an optional query in Kibana dev console.
- Additionally, this PR adds a fix to format date fields in the source index preview table using moment-timezone and formatHumanReadableDateTimeSeconds to display dates with the correct timezone.
* [Code] improve project status polling management
* [Code] Use make repository status polling cancellable
* change back to 1000ms polling interval
* deduplicate repository status polling runner before run
Fixes an issue where long field names would overflow the aggregation item of the pivot config list. This fix was already done for the group-by-items, now brought over to aggregations too.
- Layout and message fixes for displaying error messages for the pivot preview in `ml/public/data_frame/components/define_pivot/pivot_preview.tsx
- Fixes list of available date field aggregations.
- Fix to make sure datepicker is always disabled for pivot wizard.
- Fixes incomplete job delete confirm modal message.
* [ML] Sample ML jobs: Updates to make anomalies clearer
Minor updates to web logs data and ML job
definitions to make anomalous activity more
distinct.
* [ML] Sample ML jobs: Further updates to jobs and data
Adding missing files from previous commit and
changing job naming (removing weblog_* prefix etc.)
* [ML] Resolving PR review comments.
* [ML] Improve anomalies in Kibana sample data
Minor fixes:
- Rename job group to `kibana_sample_data` throughout
- Fix index pattern link in `sample_data_sets.ts`
- Fix log.json.gz count test
* auto interval
* [TSVB] Rollup Search - 'auto' interval is not working for Rollup Jobs which were created in Calendar intervals
* [TSVB] Rollup Search - 'auto' interval is not working for Rollup Jobs which were created in Calendar intervals
* fix issue
* fix broken tests
* fix pr comments
* fix pr comments
- Fixes the use of Kibana saved searches for the data frame wizard. Previously users would end up on a blank page when choosing a saved search.
- Additionally, this fixes UI inconsistencies for the pivot creation form and summary page.
* persistence of a timeline
s Please enter the commit message for your changes. Lines starting
* fix unit testing + add functionality in the setting of timeline
* fix ciGroup5
* fix duplicate timeline
* fix merge issue
* fix test
* review I
* cleanup merge
* add kql from savedObject to kql bar
* add operator from Dataprovider to saveObject
* feat: add group arg to filters function
multi-arg so multiple groups can be used, and the value is always an array
test: add setFilter tests
* chore: replace getGlobalFilterExpression with getGlobalFilters
* feat: add group arg to filters function
* feat: add grouping to filter functions
timefilter, exacttly, dropdownControl, and timefilterControl
* chore: add resolved config filter sync helper
* feat: add filterGroup to filter expressions
and keep the values in sync with expression via helper function
* feat: add basic group input to sidebar
* feat: add getGlobalFilterGroups selector, with tests
* chore: remove unused argForm resolve values
* feat: pass filter groups into argTypes
added via FunctionForm, which renders the associated argType
* feat: add filterGroup arg type
use it for the timepicker and dropdown UIs
* fix: tweak filter group name and help text
* fix: remove aliases from filter functions
it breaks the filter lookup code, and the value is almost always set from the UI control anyway
* fix: sort global filter groups
* feat: include filters function groups
when collecting filter groups, also include groups in expressions
* mostly copy changes
* feat: add ungrouped arg to filters
* chore: types and translations
* chore: address nit feedback
* Improve the functional test of code (#35869)
* [Code] enable integration test
* [Code] Improve functional test
* [Code] skip explore-repository functional test for code (#36926)
* skip failing tests
(cherry picked from commit 2320ed9216)
* disable flaky test #36495 (#36497)
* [SIEM] Update links (#36754)
* Documentation URL
* Forums URL
* Replaced blogs and videos with a single link to the product page, for now
* Fix translation