-
Notifications
You must be signed in to change notification settings - Fork 14.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
feat(native-filters): select group by support #14217
Conversation
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.
Great stuff, looking forward to this! One quick comment
superset-frontend/src/filters/components/GroupBy/GroupByFilterPlugin.tsx
Outdated
Show resolved
Hide resolved
* master: fix: Use utils.json_iso_dttm_ser to dump jsons when async query execution (apache#13830) feat: TrinoEngineSpec.adjust_database_uri (apache#14122) chore: bump package.json (apache#14222) Add superset helm repository (apache#14223) fix(cross-filters): Fix missed metadata (apache#14220)
Codecov Report
@@ Coverage Diff @@
## master #14217 +/- ##
==========================================
- Coverage 76.13% 76.04% -0.10%
==========================================
Files 945 951 +6
Lines 47927 47985 +58
Branches 5950 5966 +16
==========================================
Hits 36491 36491
- Misses 11230 11287 +57
- Partials 206 207 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
super valuable feature, functionalities LGTM! This could be considered as 'drilldown' by some definitions.
A couple of comments
Screen.Recording.2021-04-19.at.10.31.28.PM.mov |
cross filter scoping is already enforcing the scope of groupby , we should generify the naming here : |
about comment number 1 , lets leave explore view pass params to a follow up discussion/PR |
order of filter should be determine by a number order property in each native filter metadata and corresponding to the drag and drop actions |
We'd need to add some new fields to the
As long as this component is based on AntD, it's going to be difficult to add DnD, as the AntD Select component doesn't natively support reordering.
Agreed, we need to finalize the naming here, it's difficult to talk about these features when we have many names for the same functionality. |
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.
Code LGTM and works well in testing, super cool feature! 🎉
// TODO: Need to do with it something | ||
const FILTERS_WITHOUT_COLUMN = [ | ||
'filter_timegrain', | ||
'filter_timecolumn', | ||
'filter_groupby', | ||
]; |
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.
Yes, we really need to address this at some point. I suggest once we do dynamic controls we make sure we can use the same control panel for the filter config modal and Explore.
Hi, very cool feature! But I also had some doubts regarding priority. Why are we keep adding new features to the native filters? Shouldn't we be focusing on making it ready for prime time (unless we believe current state is already good enough)? |
Different organizations have different priorities and we are an open source project, so let's keep it open:). since we are adding new dashboard interaction to charts one at a time, and the timeline of this project & Echarts project are highly intertwined, meaning we may not get to feature complete in any time soon. let's spend a cycle to clear some debt and polish before moving forward. Some known performance issues are also blocking another project - filterbox migration, led by Airbnb team. Hope we can all reach an agreement to 'slow down' in development for a now or push experiment to a feature branch and shift focus to optimization. (FYI, we are working on dashboard Drilldown in a separate branch.) cc |
Thank you @ktmud and @junlincc. Airbnb just started the project to migrate from old filter_box to new native dashboard filter. The first priority for us is to make sure that native filter supports all functionalities that filter_box did. Right now we found following features are not available in native filter:
These missing features blocked us from moving towards native filter. Performance, which is another big concern, we can't even start to evaluate since our filter_box can't be tested in native filter yet. If @amitmiran137 has some bandwidth, I really hope you can help us on feature parity, bug fixing, and perf improvement for the primary use. After the majority of users migrated to new filter component, we can enrich it with a solid foundation. Thank you!! |
* chore: initial commit * feat: groupby filter Co-authored-by: Simcha Shats <simcha.shats@nielsen.com>
It seems that this PR should be included since Superset 1.2, however, in 1.4.0 the Group By option is not selectable in the Filter Type dropdown. Am I missing a feature flag here? |
SUMMARY
This new native filter allows the user to choose columns that he wants to group by all charts across the dashboard.
applying a groupBy is a very intrusive action , therefore it is up to the receiving plugin to implement the reaction
here is the table-plugin PR
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Screen.Recording.2021-04-18.at.11.47.59.mov
TEST PLAN
ADDITIONAL INFORMATION