-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Controls] Persist runPastTimeout
setting
#208611
[Controls] Persist runPastTimeout
setting
#208611
Conversation
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
cc @Heenawter |
Pinging @elastic/kibana-presentation (Team:Presentation) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM! Good to see this fixed.
await userEvent.click(control.getByTestId('optionsList-control-selection-bark')); | ||
await waitOneTick(); | ||
expect(control.getByTestId('optionsList-control-selection-woof')).not.toBeChecked(); | ||
await waitFor(async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call to switch to waitFor
here.
Starting backport for target branches: 8.16, 8.17, 8.x |
Closes elastic#206459 ## Summary This PR ensures that the `runPastTimeout` setting is persisted for options list controls and the UI reflects the value of this setting. The root cause of this bug is that we weren't sending in the behavior subject for `runPastTimeout$` to the data control's `editorStateManager` when initializing the options list control, which meant that its value could not be set by the options list's `CustomOptionsComponent` - this PR fixes that. **Before** https://github.com/user-attachments/assets/2c9eeab8-67d9-46bc-938e-4d7cb91e435f **After** https://github.com/user-attachments/assets/d06b6ffa-b1e9-4ecd-b732-69bd69a8aee9 ### Checklist - [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 - [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) (cherry picked from commit da41b8b)
Closes elastic#206459 ## Summary This PR ensures that the `runPastTimeout` setting is persisted for options list controls and the UI reflects the value of this setting. The root cause of this bug is that we weren't sending in the behavior subject for `runPastTimeout$` to the data control's `editorStateManager` when initializing the options list control, which meant that its value could not be set by the options list's `CustomOptionsComponent` - this PR fixes that. **Before** https://github.com/user-attachments/assets/2c9eeab8-67d9-46bc-938e-4d7cb91e435f **After** https://github.com/user-attachments/assets/d06b6ffa-b1e9-4ecd-b732-69bd69a8aee9 ### Checklist - [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 - [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) (cherry picked from commit da41b8b)
Closes elastic#206459 ## Summary This PR ensures that the `runPastTimeout` setting is persisted for options list controls and the UI reflects the value of this setting. The root cause of this bug is that we weren't sending in the behavior subject for `runPastTimeout$` to the data control's `editorStateManager` when initializing the options list control, which meant that its value could not be set by the options list's `CustomOptionsComponent` - this PR fixes that. **Before** https://github.com/user-attachments/assets/2c9eeab8-67d9-46bc-938e-4d7cb91e435f **After** https://github.com/user-attachments/assets/d06b6ffa-b1e9-4ecd-b732-69bd69a8aee9 ### Checklist - [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 - [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) (cherry picked from commit da41b8b)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
#208764) # Backport This will backport the following commits from `main` to `8.17`: - [[Controls] Persist `runPastTimeout` setting (#208611)](#208611) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Hannah Mudge","email":"Heenawter@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-01-29T14:46:29Z","message":"[Controls] Persist `runPastTimeout` setting (#208611)\n\nCloses https://github.com/elastic/kibana/issues/206459\r\n\r\n## Summary\r\n\r\nThis PR ensures that the `runPastTimeout` setting is persisted for\r\noptions list controls and the UI reflects the value of this setting. The\r\nroot cause of this bug is that we weren't sending in the behavior\r\nsubject for `runPastTimeout# Backport This will backport the following commits from `main` to `8.17`: - [[Controls] Persist `runPastTimeout` setting (#208611)](#208611) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT to the data control's `editorStateManager`\r\nwhen initializing the options list control, which meant that its value\r\ncould not be set by the options list's `CustomOptionsComponent` - this\r\nPR fixes that.\r\n\r\n**Before**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/2c9eeab8-67d9-46bc-938e-4d7cb91e435f\r\n\r\n**After**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/d06b6ffa-b1e9-4ecd-b732-69bd69a8aee9\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] The PR description includes the appropriate Release Notes section,\r\nand the correct `release_note:*` label is applied per the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"da41b8be52609ae62b1baad13fcdbc04f5d1b9a9","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","regression","release_note:fix","Feature:Input Control","Team:Presentation","loe:small","impact:high","v9.0.0","Project:Controls","backport:prev-major","project:embeddableRebuild"],"title":"[Controls] Persist `runPastTimeout` setting","number":208611,"url":"https://github.com/elastic/kibana/pull/208611","mergeCommit":{"message":"[Controls] Persist `runPastTimeout` setting (#208611)\n\nCloses https://github.com/elastic/kibana/issues/206459\r\n\r\n## Summary\r\n\r\nThis PR ensures that the `runPastTimeout` setting is persisted for\r\noptions list controls and the UI reflects the value of this setting. The\r\nroot cause of this bug is that we weren't sending in the behavior\r\nsubject for `runPastTimeout# Backport This will backport the following commits from `main` to `8.17`: - [[Controls] Persist `runPastTimeout` setting (#208611)](#208611) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT to the data control's `editorStateManager`\r\nwhen initializing the options list control, which meant that its value\r\ncould not be set by the options list's `CustomOptionsComponent` - this\r\nPR fixes that.\r\n\r\n**Before**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/2c9eeab8-67d9-46bc-938e-4d7cb91e435f\r\n\r\n**After**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/d06b6ffa-b1e9-4ecd-b732-69bd69a8aee9\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] The PR description includes the appropriate Release Notes section,\r\nand the correct `release_note:*` label is applied per the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"da41b8be52609ae62b1baad13fcdbc04f5d1b9a9"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/208611","number":208611,"mergeCommit":{"message":"[Controls] Persist `runPastTimeout` setting (#208611)\n\nCloses https://github.com/elastic/kibana/issues/206459\r\n\r\n## Summary\r\n\r\nThis PR ensures that the `runPastTimeout` setting is persisted for\r\noptions list controls and the UI reflects the value of this setting. The\r\nroot cause of this bug is that we weren't sending in the behavior\r\nsubject for `runPastTimeout# Backport This will backport the following commits from `main` to `8.17`: - [[Controls] Persist `runPastTimeout` setting (#208611)](#208611) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT to the data control's `editorStateManager`\r\nwhen initializing the options list control, which meant that its value\r\ncould not be set by the options list's `CustomOptionsComponent` - this\r\nPR fixes that.\r\n\r\n**Before**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/2c9eeab8-67d9-46bc-938e-4d7cb91e435f\r\n\r\n**After**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/d06b6ffa-b1e9-4ecd-b732-69bd69a8aee9\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] The PR description includes the appropriate Release Notes section,\r\nand the correct `release_note:*` label is applied per the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"da41b8be52609ae62b1baad13fcdbc04f5d1b9a9"}}]}] BACKPORT--> Co-authored-by: Hannah Mudge <Heenawter@users.noreply.github.com>
…#208765) # Backport This will backport the following commits from `main` to `8.x`: - [[Controls] Persist `runPastTimeout` setting (#208611)](#208611) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Hannah Mudge","email":"Heenawter@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-01-29T14:46:29Z","message":"[Controls] Persist `runPastTimeout` setting (#208611)\n\nCloses https://github.com/elastic/kibana/issues/206459\r\n\r\n## Summary\r\n\r\nThis PR ensures that the `runPastTimeout` setting is persisted for\r\noptions list controls and the UI reflects the value of this setting. The\r\nroot cause of this bug is that we weren't sending in the behavior\r\nsubject for `runPastTimeout# Backport This will backport the following commits from `main` to `8.x`: - [[Controls] Persist `runPastTimeout` setting (#208611)](#208611) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT to the data control's `editorStateManager`\r\nwhen initializing the options list control, which meant that its value\r\ncould not be set by the options list's `CustomOptionsComponent` - this\r\nPR fixes that.\r\n\r\n**Before**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/2c9eeab8-67d9-46bc-938e-4d7cb91e435f\r\n\r\n**After**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/d06b6ffa-b1e9-4ecd-b732-69bd69a8aee9\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] The PR description includes the appropriate Release Notes section,\r\nand the correct `release_note:*` label is applied per the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"da41b8be52609ae62b1baad13fcdbc04f5d1b9a9","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","regression","release_note:fix","Feature:Input Control","Team:Presentation","loe:small","impact:high","v9.0.0","Project:Controls","backport:prev-major","project:embeddableRebuild"],"title":"[Controls] Persist `runPastTimeout` setting","number":208611,"url":"https://github.com/elastic/kibana/pull/208611","mergeCommit":{"message":"[Controls] Persist `runPastTimeout` setting (#208611)\n\nCloses https://github.com/elastic/kibana/issues/206459\r\n\r\n## Summary\r\n\r\nThis PR ensures that the `runPastTimeout` setting is persisted for\r\noptions list controls and the UI reflects the value of this setting. The\r\nroot cause of this bug is that we weren't sending in the behavior\r\nsubject for `runPastTimeout# Backport This will backport the following commits from `main` to `8.x`: - [[Controls] Persist `runPastTimeout` setting (#208611)](#208611) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT to the data control's `editorStateManager`\r\nwhen initializing the options list control, which meant that its value\r\ncould not be set by the options list's `CustomOptionsComponent` - this\r\nPR fixes that.\r\n\r\n**Before**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/2c9eeab8-67d9-46bc-938e-4d7cb91e435f\r\n\r\n**After**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/d06b6ffa-b1e9-4ecd-b732-69bd69a8aee9\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] The PR description includes the appropriate Release Notes section,\r\nand the correct `release_note:*` label is applied per the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"da41b8be52609ae62b1baad13fcdbc04f5d1b9a9"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/208611","number":208611,"mergeCommit":{"message":"[Controls] Persist `runPastTimeout` setting (#208611)\n\nCloses https://github.com/elastic/kibana/issues/206459\r\n\r\n## Summary\r\n\r\nThis PR ensures that the `runPastTimeout` setting is persisted for\r\noptions list controls and the UI reflects the value of this setting. The\r\nroot cause of this bug is that we weren't sending in the behavior\r\nsubject for `runPastTimeout# Backport This will backport the following commits from `main` to `8.x`: - [[Controls] Persist `runPastTimeout` setting (#208611)](#208611) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT to the data control's `editorStateManager`\r\nwhen initializing the options list control, which meant that its value\r\ncould not be set by the options list's `CustomOptionsComponent` - this\r\nPR fixes that.\r\n\r\n**Before**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/2c9eeab8-67d9-46bc-938e-4d7cb91e435f\r\n\r\n**After**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/d06b6ffa-b1e9-4ecd-b732-69bd69a8aee9\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] The PR description includes the appropriate Release Notes section,\r\nand the correct `release_note:*` label is applied per the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"da41b8be52609ae62b1baad13fcdbc04f5d1b9a9"}}]}] BACKPORT--> Co-authored-by: Hannah Mudge <Heenawter@users.noreply.github.com>
#208763) # Backport This will backport the following commits from `main` to `8.16`: - [[Controls] Persist `runPastTimeout` setting (#208611)](#208611) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Hannah Mudge","email":"Heenawter@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-01-29T14:46:29Z","message":"[Controls] Persist `runPastTimeout` setting (#208611)\n\nCloses https://github.com/elastic/kibana/issues/206459\r\n\r\n## Summary\r\n\r\nThis PR ensures that the `runPastTimeout` setting is persisted for\r\noptions list controls and the UI reflects the value of this setting. The\r\nroot cause of this bug is that we weren't sending in the behavior\r\nsubject for `runPastTimeout# Backport This will backport the following commits from `main` to `8.16`: - [[Controls] Persist `runPastTimeout` setting (#208611)](#208611) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT to the data control's `editorStateManager`\r\nwhen initializing the options list control, which meant that its value\r\ncould not be set by the options list's `CustomOptionsComponent` - this\r\nPR fixes that.\r\n\r\n**Before**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/2c9eeab8-67d9-46bc-938e-4d7cb91e435f\r\n\r\n**After**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/d06b6ffa-b1e9-4ecd-b732-69bd69a8aee9\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] The PR description includes the appropriate Release Notes section,\r\nand the correct `release_note:*` label is applied per the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"da41b8be52609ae62b1baad13fcdbc04f5d1b9a9","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","regression","release_note:fix","Feature:Input Control","Team:Presentation","loe:small","impact:high","v9.0.0","Project:Controls","backport:prev-major","project:embeddableRebuild"],"title":"[Controls] Persist `runPastTimeout` setting","number":208611,"url":"https://github.com/elastic/kibana/pull/208611","mergeCommit":{"message":"[Controls] Persist `runPastTimeout` setting (#208611)\n\nCloses https://github.com/elastic/kibana/issues/206459\r\n\r\n## Summary\r\n\r\nThis PR ensures that the `runPastTimeout` setting is persisted for\r\noptions list controls and the UI reflects the value of this setting. The\r\nroot cause of this bug is that we weren't sending in the behavior\r\nsubject for `runPastTimeout# Backport This will backport the following commits from `main` to `8.16`: - [[Controls] Persist `runPastTimeout` setting (#208611)](#208611) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT to the data control's `editorStateManager`\r\nwhen initializing the options list control, which meant that its value\r\ncould not be set by the options list's `CustomOptionsComponent` - this\r\nPR fixes that.\r\n\r\n**Before**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/2c9eeab8-67d9-46bc-938e-4d7cb91e435f\r\n\r\n**After**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/d06b6ffa-b1e9-4ecd-b732-69bd69a8aee9\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] The PR description includes the appropriate Release Notes section,\r\nand the correct `release_note:*` label is applied per the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"da41b8be52609ae62b1baad13fcdbc04f5d1b9a9"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/208611","number":208611,"mergeCommit":{"message":"[Controls] Persist `runPastTimeout` setting (#208611)\n\nCloses https://github.com/elastic/kibana/issues/206459\r\n\r\n## Summary\r\n\r\nThis PR ensures that the `runPastTimeout` setting is persisted for\r\noptions list controls and the UI reflects the value of this setting. The\r\nroot cause of this bug is that we weren't sending in the behavior\r\nsubject for `runPastTimeout# Backport This will backport the following commits from `main` to `8.16`: - [[Controls] Persist `runPastTimeout` setting (#208611)](#208611) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT to the data control's `editorStateManager`\r\nwhen initializing the options list control, which meant that its value\r\ncould not be set by the options list's `CustomOptionsComponent` - this\r\nPR fixes that.\r\n\r\n**Before**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/2c9eeab8-67d9-46bc-938e-4d7cb91e435f\r\n\r\n**After**\r\n\r\n\r\nhttps://github.com/user-attachments/assets/d06b6ffa-b1e9-4ecd-b732-69bd69a8aee9\r\n\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] The PR description includes the appropriate Release Notes section,\r\nand the correct `release_note:*` label is applied per the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"da41b8be52609ae62b1baad13fcdbc04f5d1b9a9"}}]}] BACKPORT--> Co-authored-by: Hannah Mudge <Heenawter@users.noreply.github.com>
Closes #206459
Summary
This PR ensures that the
runPastTimeout
setting is persisted for options list controls and the UI reflects the value of this setting. The root cause of this bug is that we weren't sending in the behavior subject forrunPastTimeout$
to the data control'seditorStateManager
when initializing the options list control, which meant that its value could not be set by the options list'sCustomOptionsComponent
- this PR fixes that.Before
Screen.Recording.2025-01-28.at.5.36.34.PM.mov
After
Screen.Recording.2025-01-28.at.5.38.37.PM.mov
Checklist
release_note:*
label is applied per the guidelines