Commit cc1a3d6
[Unified Search] Flip
## Summary
This makes the new time picker the default in Discover and Dashboards.
It flips the fallback of the `unifiedSearch.newDateRangePickerEnabled`
feature flag to `true`, so the new `DateRangePicker` becomes the default
when the flag isn't explicitly configured.
See elastic#260163
To opt back into the legacy `EuiSuperDatePicker` locally, you can
override the flag in `config/kibana.dev.yml`:
```yaml
feature_flags.overrides:
unifiedSearch.newDateRangePickerEnabled: false
```
## Changes
Follow-up commits on this branch also fix FTR/snapshot fallout from the
flip:
- `_esql_view.ts` (stateful + serverless): replaced hard-coded
`superDatePickerToggleQuickMenuButton` checks with
`timePicker.timePickerExists()` (both picker paths). Specs already had
`// TODO`s for exactly this change.
- `dashboard_controls` light/dark snapshots: regenerated baselines to
reflect the new picker's duration badge on dashboards.
- `ccs_compatibility/_cancel_results.ts` (ES|QL subtest): made the query
submit explicit so it no longer depends on the legacy picker's internal
`querySubmitButton` click.
> [!NOTE]
> Two Flaky Test Runner passes on the affected CCS config are linked in
the comments below.
### Checklist
- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [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
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [x] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.
### Identify risks
Users who have not explicitly set the flag will now see the new
DateRangePicker in place of the legacy `EuiSuperDatePicker`. This is the
entire point of the flag — a staged rollout — so the risk is limited to
UX differences between the two pickers (e.g. the new picker's duration
badge, which required snapshot baseline updates here).
- [ ] ~~[See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)~~
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>newDateRangePickerEnabled feature flag fallback to true (elastic#264743)1 parent 84f5f96 commit cc1a3d6
6 files changed
Lines changed: 8 additions & 11 deletions
File tree
- src/platform
- test/functional
- apps/discover
- ccs_compatibility
- esql_2
- screenshots/baseline
- x-pack/platform/test/serverless/functional/test_suites/discover/esql
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
395 | | - | |
| 395 | + | |
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
126 | | - | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
| 102 | + | |
104 | 103 | | |
105 | 104 | | |
106 | 105 | | |
| |||
122 | 121 | | |
123 | 122 | | |
124 | 123 | | |
125 | | - | |
126 | | - | |
| 124 | + | |
127 | 125 | | |
128 | 126 | | |
129 | 127 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
| 85 | + | |
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
| |||
105 | 104 | | |
106 | 105 | | |
107 | 106 | | |
108 | | - | |
109 | | - | |
| 107 | + | |
110 | 108 | | |
111 | 109 | | |
112 | 110 | | |
| |||
0 commit comments