Skip to content

[Controls Anywhere] Section-scoped controls#239221

Merged
Heenawter merged 30 commits intoelastic:controlsAnywherefrom
Heenawter:controlsAnywhere-filter-sections-only_2025-10-15
Nov 4, 2025
Merged

[Controls Anywhere] Section-scoped controls#239221
Heenawter merged 30 commits intoelastic:controlsAnywherefrom
Heenawter:controlsAnywhere-filter-sections-only_2025-10-15

Conversation

@Heenawter
Copy link
Copy Markdown
Contributor

@Heenawter Heenawter commented Oct 15, 2025

Warning

This work is being merged into a feature branch, not main!
Because of this, we only need a review from @elastic/kibana-presentation for now.

Closes #233124

Summary

This PR makes it so that controls only publish their filters and/or variables to panels within their sections. In order to do this, I had to add meta data to variables, just like we have with filters. All of the filtering is happening via the fetch$ observable, so I also had to do some work to ensure embeddables were using it as expected.

Filters

Screen.Recording.2025-11-03.at.3.26.01.PM.mov

Variables

Screen.Recording.2025-11-03.at.3.23.18.PM.mov

@Heenawter Heenawter force-pushed the controlsAnywhere-filter-sections-only_2025-10-15 branch from c16b929 to d93a829 Compare October 29, 2025 21:52
@Heenawter Heenawter force-pushed the controlsAnywhere-filter-sections-only_2025-10-15 branch from d93a829 to 7caf5f3 Compare October 30, 2025 18:36
@Heenawter Heenawter changed the title [Controls Anywhere] Make filters only target panels in shared sections [Controls Anywhere] Make filters and variables only target panels in shared sections Oct 31, 2025
@Heenawter Heenawter changed the title [Controls Anywhere] Make filters and variables only target panels in shared sections [Controls Anywhere] Section-scoped controls Oct 31, 2025
Comment on lines +93 to +97
// update the ES|QL query with new variables, if necessary
if (pendingQueryUpdate.current) {
onUpdateESQLQuery(pendingQueryUpdate.current);
pendingQueryUpdate.current = undefined;
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This was somehow removed in a bad merge 🫠 So I'm re-adding it because it allows the query to update when a new variable control is added

@Heenawter Heenawter marked this pull request as ready for review November 3, 2025 22:27
@Heenawter Heenawter requested review from a team as code owners November 3, 2025 22:27
@elastic-vault-github-plugin-prod elastic-vault-github-plugin-prod bot requested a review from a team as a code owner November 3, 2025 22:37
@botelastic botelastic bot added the Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. label Nov 3, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@Heenawter Heenawter removed request for a team November 3, 2025 22:38
@elastic-vault-github-plugin-prod elastic-vault-github-plugin-prod bot requested a review from a team as a code owner November 3, 2025 22:57
@Heenawter Heenawter removed the request for review from a team November 3, 2025 23:01
@Heenawter Heenawter removed the Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. label Nov 3, 2025
@Heenawter Heenawter requested a review from ThomThomson November 3, 2025 23:59
Copy link
Copy Markdown
Contributor

@Zacqary Zacqary left a comment

Choose a reason for hiding this comment

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

LGTM

apiIsPresentationContainer,
combineCompatibleChildrenApis,
getContainerParentFromAPI,
listenForCompatibleApi,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should remove this function entirely since nothing else is using it, or at least deprecate it if that's out of scope.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oops! I actually didn't mean to remove this. It's still used in an example embeddable 😄 Thanks for catching that

@botelastic botelastic bot added the Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. label Nov 4, 2025
…thub.com:heenawter/kibana into controlsAnywhere-filter-sections-only_2025-10-15
@Heenawter Heenawter merged commit eea42b4 into elastic:controlsAnywhere Nov 4, 2025
7 of 8 checks passed
@Heenawter Heenawter deleted the controlsAnywhere-filter-sections-only_2025-10-15 branch November 4, 2025 18:40
@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Nov 4, 2025

⏳ Build in-progress, with failures

Failed CI Steps

History

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants