Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Discover] Address the flaky histogram code #201809

Merged
merged 8 commits into from
Nov 28, 2024

Conversation

@jughosta jughosta added release_note:skip Skip the PR/issue when compiling release notes Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) labels Nov 26, 2024
@jughosta jughosta self-assigned this Nov 26, 2024
@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🟠 Some tests failed. - kibana-flaky-test-suite-runner#7492

[❌] test/functional/apps/management/config.ts: 7/30 tests passed.

see run history

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🟠 Some tests failed. - kibana-flaky-test-suite-runner#7496

[❌] test/functional/apps/management/config.ts: 1/25 tests passed.

see run history

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🟠 Some tests failed. - kibana-flaky-test-suite-runner#7497

[❌] test/functional/apps/management/config.ts: 6/25 tests passed.

see run history

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🟠 Some tests failed. - kibana-flaky-test-suite-runner#7505

[❌] test/functional/apps/management/config.ts: 0/25 tests passed.

see run history

@jughosta jughosta changed the title [Discover] Address the flaky test [Discover] Address the flaky histogram code Nov 27, 2024
@elasticmachine
Copy link
Contributor

elasticmachine commented Nov 27, 2024

💔 Build Failed

Failed CI Steps

History

cc @jughosta

@jughosta jughosta added v9.0.0 v8.16.0 backport:version Backport to applied version labels v8.17.0 v8.18.0 and removed backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) labels Nov 27, 2024
@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#7511

[✅] test/functional/apps/management/config.ts: 100/100 tests passed.

see run history

@jughosta jughosta marked this pull request as ready for review November 27, 2024 18:23
@jughosta jughosta requested review from a team as code owners November 27, 2024 18:23
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

Copy link
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.

Nice, thanks for addressing this so quickly!

I don't suppose this gets us closer to being able to revert #200687 since it causes UI flickering, does it? Just asking since I saw it was linked as a similar issue.

@kertal
Copy link
Member

kertal commented Nov 28, 2024

@davismcphee the change of #186642 was already removed in #200687

bf670f6

Comment on lines +335 to +337
if (!dataView.isTimeBased() || !dataView.timeFieldName) {
return undefined;
}
Copy link
Member

Choose a reason for hiding this comment

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

sometimes it's simple, this has to be celebrated ! 🥳

@jughosta
Copy link
Contributor Author

@davismcphee I think it's fixing the root cause. Checked it in 8.17 branch here #202070

@jughosta jughosta merged commit f50b93c into elastic:main Nov 28, 2024
19 checks passed
@jughosta jughosta deleted the 201744-fix-flaky-alias-test branch November 28, 2024 09:35
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.16, 8.17, 8.x

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 28, 2024
- Closes elastic#201744
- Similar to elastic#184600

## Summary

This PR fixes the issues with the transition from a data view without a
time field to a data view with a time field.

Previously reported error:
![management Index patterns on aliases discover verify hits should be
able to
disc-4da8c0b87362e3312cae00dc943a984acfda9af98d821decb6f48164eaca21ae](https://github.com/user-attachments/assets/652096ef-70c1-4394-a665-6b2b15d976ec)

(cherry picked from commit f50b93c)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 28, 2024
- Closes elastic#201744
- Similar to elastic#184600

## Summary

This PR fixes the issues with the transition from a data view without a
time field to a data view with a time field.

Previously reported error:
![management Index patterns on aliases discover verify hits should be
able to
disc-4da8c0b87362e3312cae00dc943a984acfda9af98d821decb6f48164eaca21ae](https://github.com/user-attachments/assets/652096ef-70c1-4394-a665-6b2b15d976ec)

(cherry picked from commit f50b93c)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Nov 28, 2024
- Closes elastic#201744
- Similar to elastic#184600

## Summary

This PR fixes the issues with the transition from a data view without a
time field to a data view with a time field.

Previously reported error:
![management Index patterns on aliases discover verify hits should be
able to
disc-4da8c0b87362e3312cae00dc943a984acfda9af98d821decb6f48164eaca21ae](https://github.com/user-attachments/assets/652096ef-70c1-4394-a665-6b2b15d976ec)

(cherry picked from commit f50b93c)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.16
8.17
8.x

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 Nov 28, 2024
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Discover] Address the flaky histogram code
(#201809)](#201809)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Julia
Rechkunova","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-28T09:35:29Z","message":"[Discover]
Address the flaky histogram code (#201809)\n\n- Closes
https://github.com/elastic/kibana/issues/201744\r\n- Similar to
https://github.com/elastic/kibana/issues/184600\r\n\r\n##
Summary\r\n\r\nThis PR fixes the issues with the transition from a data
view without a\r\ntime field to a data view with a time
field.\r\n\r\nPreviously reported error:\r\n![management Index patterns
on aliases discover verify hits should be\r\nable
to\r\ndisc-4da8c0b87362e3312cae00dc943a984acfda9af98d821decb6f48164eaca21ae](https://github.com/user-attachments/assets/652096ef-70c1-4394-a665-6b2b15d976ec)","sha":"f50b93c29004f8dac0fc6d1b44e6a8497a0cf2ea","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:DataDiscovery","v8.16.0","backport:version","v8.17.0","v8.18.0"],"title":"[Discover]
Address the flaky histogram
code","number":201809,"url":"https://github.com/elastic/kibana/pull/201809","mergeCommit":{"message":"[Discover]
Address the flaky histogram code (#201809)\n\n- Closes
https://github.com/elastic/kibana/issues/201744\r\n- Similar to
https://github.com/elastic/kibana/issues/184600\r\n\r\n##
Summary\r\n\r\nThis PR fixes the issues with the transition from a data
view without a\r\ntime field to a data view with a time
field.\r\n\r\nPreviously reported error:\r\n![management Index patterns
on aliases discover verify hits should be\r\nable
to\r\ndisc-4da8c0b87362e3312cae00dc943a984acfda9af98d821decb6f48164eaca21ae](https://github.com/user-attachments/assets/652096ef-70c1-4394-a665-6b2b15d976ec)","sha":"f50b93c29004f8dac0fc6d1b44e6a8497a0cf2ea"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.17","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201809","number":201809,"mergeCommit":{"message":"[Discover]
Address the flaky histogram code (#201809)\n\n- Closes
https://github.com/elastic/kibana/issues/201744\r\n- Similar to
https://github.com/elastic/kibana/issues/184600\r\n\r\n##
Summary\r\n\r\nThis PR fixes the issues with the transition from a data
view without a\r\ntime field to a data view with a time
field.\r\n\r\nPreviously reported error:\r\n![management Index patterns
on aliases discover verify hits should be\r\nable
to\r\ndisc-4da8c0b87362e3312cae00dc943a984acfda9af98d821decb6f48164eaca21ae](https://github.com/user-attachments/assets/652096ef-70c1-4394-a665-6b2b15d976ec)","sha":"f50b93c29004f8dac0fc6d1b44e6a8497a0cf2ea"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Julia Rechkunova <[email protected]>
jughosta added a commit that referenced this pull request Nov 28, 2024
# Backport

This will backport the following commits from `main` to `8.17`:
- [[Discover] Address the flaky histogram code
(#201809)](#201809)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Julia
Rechkunova","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-28T09:35:29Z","message":"[Discover]
Address the flaky histogram code (#201809)\n\n- Closes
https://github.com/elastic/kibana/issues/201744\r\n- Similar to
https://github.com/elastic/kibana/issues/184600\r\n\r\n##
Summary\r\n\r\nThis PR fixes the issues with the transition from a data
view without a\r\ntime field to a data view with a time
field.\r\n\r\nPreviously reported error:\r\n![management Index patterns
on aliases discover verify hits should be\r\nable
to\r\ndisc-4da8c0b87362e3312cae00dc943a984acfda9af98d821decb6f48164eaca21ae](https://github.com/user-attachments/assets/652096ef-70c1-4394-a665-6b2b15d976ec)","sha":"f50b93c29004f8dac0fc6d1b44e6a8497a0cf2ea","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:DataDiscovery","v8.16.0","backport:version","v8.17.0","v8.18.0"],"title":"[Discover]
Address the flaky histogram
code","number":201809,"url":"https://github.com/elastic/kibana/pull/201809","mergeCommit":{"message":"[Discover]
Address the flaky histogram code (#201809)\n\n- Closes
https://github.com/elastic/kibana/issues/201744\r\n- Similar to
https://github.com/elastic/kibana/issues/184600\r\n\r\n##
Summary\r\n\r\nThis PR fixes the issues with the transition from a data
view without a\r\ntime field to a data view with a time
field.\r\n\r\nPreviously reported error:\r\n![management Index patterns
on aliases discover verify hits should be\r\nable
to\r\ndisc-4da8c0b87362e3312cae00dc943a984acfda9af98d821decb6f48164eaca21ae](https://github.com/user-attachments/assets/652096ef-70c1-4394-a665-6b2b15d976ec)","sha":"f50b93c29004f8dac0fc6d1b44e6a8497a0cf2ea"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.17","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201809","number":201809,"mergeCommit":{"message":"[Discover]
Address the flaky histogram code (#201809)\n\n- Closes
https://github.com/elastic/kibana/issues/201744\r\n- Similar to
https://github.com/elastic/kibana/issues/184600\r\n\r\n##
Summary\r\n\r\nThis PR fixes the issues with the transition from a data
view without a\r\ntime field to a data view with a time
field.\r\n\r\nPreviously reported error:\r\n![management Index patterns
on aliases discover verify hits should be\r\nable
to\r\ndisc-4da8c0b87362e3312cae00dc943a984acfda9af98d821decb6f48164eaca21ae](https://github.com/user-attachments/assets/652096ef-70c1-4394-a665-6b2b15d976ec)","sha":"f50b93c29004f8dac0fc6d1b44e6a8497a0cf2ea"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: Julia Rechkunova <[email protected]>
jughosta added a commit that referenced this pull request Nov 28, 2024
# Backport

This will backport the following commits from `main` to `8.16`:
- [[Discover] Address the flaky histogram code
(#201809)](#201809)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Julia
Rechkunova","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-28T09:35:29Z","message":"[Discover]
Address the flaky histogram code (#201809)\n\n- Closes
https://github.com/elastic/kibana/issues/201744\r\n- Similar to
https://github.com/elastic/kibana/issues/184600\r\n\r\n##
Summary\r\n\r\nThis PR fixes the issues with the transition from a data
view without a\r\ntime field to a data view with a time
field.\r\n\r\nPreviously reported error:\r\n![management Index patterns
on aliases discover verify hits should be\r\nable
to\r\ndisc-4da8c0b87362e3312cae00dc943a984acfda9af98d821decb6f48164eaca21ae](https://github.com/user-attachments/assets/652096ef-70c1-4394-a665-6b2b15d976ec)","sha":"f50b93c29004f8dac0fc6d1b44e6a8497a0cf2ea","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:DataDiscovery","v8.16.0","backport:version","v8.17.0","v8.18.0"],"title":"[Discover]
Address the flaky histogram
code","number":201809,"url":"https://github.com/elastic/kibana/pull/201809","mergeCommit":{"message":"[Discover]
Address the flaky histogram code (#201809)\n\n- Closes
https://github.com/elastic/kibana/issues/201744\r\n- Similar to
https://github.com/elastic/kibana/issues/184600\r\n\r\n##
Summary\r\n\r\nThis PR fixes the issues with the transition from a data
view without a\r\ntime field to a data view with a time
field.\r\n\r\nPreviously reported error:\r\n![management Index patterns
on aliases discover verify hits should be\r\nable
to\r\ndisc-4da8c0b87362e3312cae00dc943a984acfda9af98d821decb6f48164eaca21ae](https://github.com/user-attachments/assets/652096ef-70c1-4394-a665-6b2b15d976ec)","sha":"f50b93c29004f8dac0fc6d1b44e6a8497a0cf2ea"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.17","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201809","number":201809,"mergeCommit":{"message":"[Discover]
Address the flaky histogram code (#201809)\n\n- Closes
https://github.com/elastic/kibana/issues/201744\r\n- Similar to
https://github.com/elastic/kibana/issues/184600\r\n\r\n##
Summary\r\n\r\nThis PR fixes the issues with the transition from a data
view without a\r\ntime field to a data view with a time
field.\r\n\r\nPreviously reported error:\r\n![management Index patterns
on aliases discover verify hits should be\r\nable
to\r\ndisc-4da8c0b87362e3312cae00dc943a984acfda9af98d821decb6f48164eaca21ae](https://github.com/user-attachments/assets/652096ef-70c1-4394-a665-6b2b15d976ec)","sha":"f50b93c29004f8dac0fc6d1b44e6a8497a0cf2ea"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

---------

Co-authored-by: Julia Rechkunova <[email protected]>
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Dec 12, 2024
- Closes elastic#201744
- Similar to elastic#184600

## Summary

This PR fixes the issues with the transition from a data view without a
time field to a data view with a time field.

Previously reported error:
![management Index patterns on aliases discover verify hits should be
able to
disc-4da8c0b87362e3312cae00dc943a984acfda9af98d821decb6f48164eaca21ae](https://github.com/user-attachments/assets/652096ef-70c1-4394-a665-6b2b15d976ec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. v8.16.0 v8.16.2 v8.17.0 v8.18.0 v9.0.0
Projects
None yet
6 participants