Skip to content

[Scout] Migrate Data Views API tests from FTR - Part4#257709

Merged
fake-haris merged 7 commits intoelastic:mainfrom
fake-haris:scout/data-views-api-tests-migration-4
Apr 14, 2026
Merged

[Scout] Migrate Data Views API tests from FTR - Part4#257709
fake-haris merged 7 commits intoelastic:mainfrom
fake-haris:scout/data-views-api-tests-migration-4

Conversation

@fake-haris
Copy link
Copy Markdown
Contributor

@fake-haris fake-haris commented Mar 13, 2026

Summary

Migrate data views runtime field CRUD API tests from FTR to Scout.

Details

This PR migrates the following FTR test suites to Scout API tests, covering both the modern data_views API and the legacy index_patterns API:

  • create_runtime_field/main - Tests for successfully creating runtime fields (standard and composite), verifying availability in the data view object, and preventing field name collisions
  • create_runtime_field/errors - Tests for error handling when the runtime field object is not provided
  • get_runtime_field/errors - Tests for error handling on non-existing data views, non-existing runtime fields, and IDs exceeding max length

@fake-haris fake-haris self-assigned this Mar 13, 2026
@fake-haris fake-haris added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting Team:QA Platform QA t// backport:all-open Backport to all branches that could still receive a release v9.4.0 and removed backport:skip This PR does not require backporting labels Mar 13, 2026
@fake-haris fake-haris removed the v9.4.0 label Apr 8, 2026
@fake-haris fake-haris marked this pull request as ready for review April 8, 2026 11:57
@fake-haris fake-haris requested a review from a team as a code owner April 8, 2026 11:57
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/appex-qa (Team:QA)

Copy link
Copy Markdown
Contributor

@davismcphee davismcphee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM, thanks!

@fake-haris
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@fake-haris fake-haris enabled auto-merge (squash) April 14, 2026 07:06
@fake-haris fake-haris merged commit 604e254 into elastic:main Apr 14, 2026
17 checks passed
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.19, 9.2, 9.3, 9.4

https://github.com/elastic/kibana/actions/runs/24388282684

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @fake-haris

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Apr 14, 2026
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Apr 14, 2026
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Apr 14, 2026
@kibanamachine
Copy link
Copy Markdown
Contributor

💔 Some backports could not be created

Status Branch Result
8.19 Backport failed because of merge conflicts

You might need to backport the following PRs to 8.19:
- [Metrics] Pod OTEL metrics table: review follow-ups from #259552 (#262708)
- [Security Solution][Detection Engine][A11y] Add Announcement for Exported Exception List (#258196)
- [Security Solution] Re-validate EQL query when index pattern changes (#261027)
9.2
9.3
9.4

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 257709

Questions ?

Please refer to the Backport tool documentation

tfcmarques pushed a commit to tfcmarques/kibana that referenced this pull request Apr 14, 2026
fake-haris added a commit to fake-haris/kibana that referenced this pull request Apr 14, 2026
(cherry picked from commit 604e254)

# Conflicts:
#	src/platform/test/api_integration/apis/data_views/runtime_fields_crud/create_runtime_field/errors.ts
#	src/platform/test/api_integration/apis/data_views/runtime_fields_crud/create_runtime_field/index.ts
#	src/platform/test/api_integration/apis/data_views/runtime_fields_crud/create_runtime_field/main.ts
#	src/platform/test/api_integration/apis/data_views/runtime_fields_crud/get_runtime_field/errors.ts
@fake-haris
Copy link
Copy Markdown
Contributor Author

💚 All backports created successfully

Status Branch Result
8.19

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Apr 14, 2026
…#262966)

# Backport

This will backport the following commits from `main` to `9.3`:
- [[Scout] Migrate Data Views API tests from FTR - Part4
(#257709)](#257709)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Charis
Kalpakis","email":"39087493+fake-haris@users.noreply.github.com"},"sourceCommit":{"committedDate":"2026-04-14T08:11:10Z","message":"[Scout]
Migrate Data Views API tests from FTR - Part4
(#257709)","sha":"604e2544b6866d8c036e05f659f8fbc7002408a8","branchLabelMapping":{"^v9.5.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:QA","release_note:skip","backport:all-open","v9.5.0"],"title":"[Scout]
Migrate Data Views API tests from FTR -
Part4","number":257709,"url":"https://github.com/elastic/kibana/pull/257709","mergeCommit":{"message":"[Scout]
Migrate Data Views API tests from FTR - Part4
(#257709)","sha":"604e2544b6866d8c036e05f659f8fbc7002408a8"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.5.0","branchLabelMappingKey":"^v9.5.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/257709","number":257709,"mergeCommit":{"message":"[Scout]
Migrate Data Views API tests from FTR - Part4
(#257709)","sha":"604e2544b6866d8c036e05f659f8fbc7002408a8"}}]}]
BACKPORT-->

Co-authored-by: Charis Kalpakis <39087493+fake-haris@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Apr 14, 2026
…#262967)

# Backport

This will backport the following commits from `main` to `9.4`:
- [[Scout] Migrate Data Views API tests from FTR - Part4
(#257709)](#257709)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Charis
Kalpakis","email":"39087493+fake-haris@users.noreply.github.com"},"sourceCommit":{"committedDate":"2026-04-14T08:11:10Z","message":"[Scout]
Migrate Data Views API tests from FTR - Part4
(#257709)","sha":"604e2544b6866d8c036e05f659f8fbc7002408a8","branchLabelMapping":{"^v9.5.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:QA","release_note:skip","backport:all-open","v9.5.0"],"title":"[Scout]
Migrate Data Views API tests from FTR -
Part4","number":257709,"url":"https://github.com/elastic/kibana/pull/257709","mergeCommit":{"message":"[Scout]
Migrate Data Views API tests from FTR - Part4
(#257709)","sha":"604e2544b6866d8c036e05f659f8fbc7002408a8"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.5.0","branchLabelMappingKey":"^v9.5.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/257709","number":257709,"mergeCommit":{"message":"[Scout]
Migrate Data Views API tests from FTR - Part4
(#257709)","sha":"604e2544b6866d8c036e05f659f8fbc7002408a8"}}]}]
BACKPORT-->

Co-authored-by: Charis Kalpakis <39087493+fake-haris@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Apr 14, 2026
…#262965)

# Backport

This will backport the following commits from `main` to `9.2`:
- [[Scout] Migrate Data Views API tests from FTR - Part4
(#257709)](#257709)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Charis
Kalpakis","email":"39087493+fake-haris@users.noreply.github.com"},"sourceCommit":{"committedDate":"2026-04-14T08:11:10Z","message":"[Scout]
Migrate Data Views API tests from FTR - Part4
(#257709)","sha":"604e2544b6866d8c036e05f659f8fbc7002408a8","branchLabelMapping":{"^v9.5.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:QA","release_note:skip","backport:all-open","v9.5.0"],"title":"[Scout]
Migrate Data Views API tests from FTR -
Part4","number":257709,"url":"https://github.com/elastic/kibana/pull/257709","mergeCommit":{"message":"[Scout]
Migrate Data Views API tests from FTR - Part4
(#257709)","sha":"604e2544b6866d8c036e05f659f8fbc7002408a8"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.5.0","branchLabelMappingKey":"^v9.5.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/257709","number":257709,"mergeCommit":{"message":"[Scout]
Migrate Data Views API tests from FTR - Part4
(#257709)","sha":"604e2544b6866d8c036e05f659f8fbc7002408a8"}}]}]
BACKPORT-->

Co-authored-by: Charis Kalpakis <39087493+fake-haris@users.noreply.github.com>
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Apr 15, 2026
@kibanamachine
Copy link
Copy Markdown
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @fake-haris

fake-haris added a commit that referenced this pull request Apr 15, 2026
#262976)

# Backport

This will backport the following commits from `main` to `8.19`:
- [[Scout] Migrate Data Views API tests from FTR - Part4
(#257709)](#257709)

<!--- Backport version: 11.0.1 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Charis
Kalpakis","email":"39087493+fake-haris@users.noreply.github.com"},"sourceCommit":{"committedDate":"2026-04-14T08:11:10Z","message":"[Scout]
Migrate Data Views API tests from FTR - Part4
(#257709)","sha":"604e2544b6866d8c036e05f659f8fbc7002408a8","branchLabelMapping":{"^v9.5.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:QA","release_note:skip","backport:all-open","v9.5.0"],"title":"[Scout]
Migrate Data Views API tests from FTR -
Part4","number":257709,"url":"https://github.com/elastic/kibana/pull/257709","mergeCommit":{"message":"[Scout]
Migrate Data Views API tests from FTR - Part4
(#257709)","sha":"604e2544b6866d8c036e05f659f8fbc7002408a8"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.5.0","branchLabelMappingKey":"^v9.5.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/257709","number":257709,"mergeCommit":{"message":"[Scout]
Migrate Data Views API tests from FTR - Part4
(#257709)","sha":"604e2544b6866d8c036e05f659f8fbc7002408a8"}},{"url":"https://github.com/elastic/kibana/pull/262965","number":262965,"branch":"9.2","state":"OPEN"},{"url":"https://github.com/elastic/kibana/pull/262966","number":262966,"branch":"9.3","state":"OPEN"},{"url":"https://github.com/elastic/kibana/pull/262967","number":262967,"branch":"9.4","state":"OPEN"}]}]
BACKPORT-->
@kibanamachine kibanamachine added v8.19.15 and removed backport missing Added to PRs automatically when the are determined to be missing a backport. labels Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:all-open Backport to all branches that could still receive a release release_note:skip Skip the PR/issue when compiling release notes Team:QA Platform QA t// v8.19.15 v9.2.9 v9.3.4 v9.4.0 v9.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants