-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Search aggregation: Support new non-proactive variation for the sidebar aggregation UI #40427
Comments
@vovakulikov to avoid confusion I think it's maybe not the best idea to refer to all these states as "modes" because "modes" usually mean that they're mutually exclusive. But what is referred to as the "full UI mode" here and this new "non-proactive mode" are not mutually exclusive (as you have noted in the issue). I would suggest being more specific about what controls this state, is this just the feature flag for proactive insights? If so, what's the difference between this issue and #40088? |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
@AlicjaSuska could I get some guidance for what to show in this instance? What's happening here? This is the scenario where we disable proactively running the aggregations. If the flag is set to true, then the chart will be hidden, and no grouping mode will be set until the user clicks something. This is what it looks like currently before anything is selected. I think we should have some sort of explanation here. Like "Select a grouping to aggregate this search" but, more human 😂 |
@unclejustin I don't think that matches the design and it's clearer in the design:
|
@vovakulikov some questions on the spec in the issue body:
|
@felixfbecker excellent points re: design! I was not intending to infer that this ready for design review. Just trying to get clarification as early as possible. What you see in my comment's screenshot is what is currently on
Not sure. This is the feature flag that was already provided on main. This is a good call out though since this isn't in any customer hands yet, now would be the time to fix it. It is being used to completely enable/disable the aggregation feature. I don't have a better name for it though so I am open to suggestions.
My understanding is that this flag is defaulting to Edit: I've updated my screenshot to remove confustion |
@felixfbecker I think part of this issue body was updated by someone else
|
I know you're not yet at design review but doesn't the lack of a chart mean lack of any usable grouping, therefore don't even show grouping options? otherwise, agree with @felixfbecker no button-group |
@yowayb no, lack of a chart can mean that we timed out trying to provide a proactive insight (under a low timeout, to not overload the backend) but the user can still trigger it manually. |
Screenshots
The area in the red rectangle will be hidden if all of the following criteria are true:
disable-proactive-insight-aggregation
enabledDynamic content
useSyncedWithURLState
TBD
currently just pulling mock dataReqs
disable-proactive-insight-aggregation
false by defaultclient/search-ui/src/results/aggregation/hooks.ts:aggregationModeDeserializer
client/search-ui/src/results/sidebar/SearchAggregations.tsx
if feature flag is enabled and no grouping is selectedCurrently, the app is using static mock data. Add a way to only pull this data based on feature flagNot needed. Vova's PR will be easy to integrate later.search-aggregation-filters
is disabled. This will obviously not make any API call. But we need to make sure the proactive call is also behind the newdisable-proactive-insight-aggregation
Developing
search-aggregation-filters
need to be enabledsite-admin/feature-flags
create a boolean feature flag calledsearch-aggregation-filters
set to trueTesting
Reviewing
search-aggregation-filters
need to be enabledsite-admin/feature-flags
create a boolean feature flag calledsearch-aggregation-filters
set to truedisable-proactive-insight-aggregation
site-admin/feature-flags
create a boolean feature flag calleddisable-proactive-insight-aggregation
set to trueContext
Figma Desings
From Figma
According to this statement, one of the possible aggregation UI configurations here is to render aggregation controls only and not render the chart until users explicitly click on one of the aggregation controls and pick the aggregation type. This action should trigger the aggregation chart appearance and BE query run.
A separate user experimental feature flag should control this non-proactive UI configuration. So it should have its own user-set feature flag.
/cc @Joelkw @felixfbecker @vovakulikov @unclejustin
The text was updated successfully, but these errors were encountered: