Open ashwin-pc opened 1 year ago
While I have called this out as a bug based on current behavior, I think we need to define what the behavior here needs to be since its quite weird that today (current behavior for other visualizations) when a filter is applied in the visualization view:
@ahopp, @kgcreative @KrooshalUX what are your thoughts on this?
I'd love to hear from the community regarding expectations of this behavior. My hypothesis is that the following should be the behavior we want to target.
This would give dashboard authors additional control over how they can create specialized views, for example, showing a dashboard with daily, weekly and monthly trends by category, where they don't necessarily have to create custom buckets to show different categories, since they could achieve the same with custom filters
@ashwin-pc @kgcreative If i am understanding it correctly, this issue should already be resolved after we implement the global persistence functionality for vis builder? If we add a filter, it is a default app filter which will only persist on that specific visualization. So when we go to dashboard view, it is expected that the filter is not there anymore. However, if we want that filter also on the dashboard view, we can make this filter a global filter by selecting pinned across the whole app
, so that it will be persisted all throughout the app. Thus solve the bug you are describing.
As @abbyhu2000 and I discussed offline, the issue here is different from what Abby is calling out in her comment here.
@ashwin-pc to me this reads as more related to "Custom filters" and "Custom timerange" per visualization, so that I may persist filters and time ranges in a visualization that may be different from the "golbal" filters/timerange in the dashboard itself.
@kgcreative while that is what I thought, how do we then explain overriding those values when we set a new filter in the Dashboard view. Even for filters that arent related to the existing "custom" filter, the custom filter is completely replaced by the dashboard filter if one is set. If i didnt know what i was looking for, I would have totally missed this and no where is it displayed whats happening.
I like your suggestion of somehow displaying the filters being applied to a visualization. @KrooshalUX I know that you had mentioned that you were working on restructuring the save visualization workflow so that it makes more sense. do you think it makes sense to combine @kgcreative's suggestion with that? and @kgcreative can 3
& 4
happen without 1
& 2
? So that we solve this issue for now and mimic the existing behavior in VisBuilder while we solve 1
and 2
along with the save workflow issue?
Hi, this bug still exists.
Describe the bug
When creating a visualization, we can add filters and search parameters to the visualization. These parameters should persist when the visualization is added to the dashboard.
To Reproduce Steps to reproduce the behavior:
Expected behavior If no other filter is present to override the default filter, apply the filter used while creating the visualization.
OpenSearch Version 3.0
Dashboards Version 3.0
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.