kibana/test/functional/apps
Davis McPhee 80c142a5db
[Search] Fix unrecognized parameter: [indexType] error (#212707)
## Summary

This PR fixes an issue introduced in #208776 where switching from ES|QL
mode to classic mode in Discover caused the search request to fail with
an `unrecognized parameter: [indexType]` error. This was because the
`indexType` was actually being sent as part of the search request
`params` when it shouldn't have been.

We already had some rollup tests that would have caught it, but a
workaround was also added to the rollup search strategy to sidestep the
issue, preventing the tests from failing. That workaround has been
removed and existing ES|QL tests updated to catch the issue specifically
for ES|QL mode.

Fixes #212704.

### 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.
- [ ] [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)
2025-03-04 20:33:41 -04:00
..
bundles Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
console [Console] Fix bug with inline autocompletion (#210187) 2025-02-13 13:15:22 +01:00
context [Discover] Remove the legacy table (#201254) 2024-12-03 12:03:08 +01:00
dashboard unskip dashboard_listing (#211742) 2025-02-19 16:42:26 +01:00
dashboard_elements [Dashboard Navigation] Unskip tests (#211660) 2025-02-25 18:40:33 +00:00
discover [Search] Fix unrecognized parameter: [indexType] error (#212707) 2025-03-04 20:33:41 -04:00
getting_started [Visualize] remove never executing functional tests code (#198512) 2024-11-08 10:00:36 +01:00
home Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kibana_overview [ci] skip tests that fail on chrome 128+ (#192830) 2024-09-16 15:18:49 +02:00
management [Data View Field] Fix popularity score bugs (#211201) 2025-02-27 10:34:22 +00:00
saved_objects_management Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
sharing Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
status_page Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
visualize [Vega] Fix highlight for HJSON (#208858) 2025-02-03 14:18:35 +01:00