feat(native-filters): add markers and number formatter to range filter#14981
Conversation
| useEffect(() => { | ||
| handleAfterChange(defaultValue ?? [min, max]); | ||
| // I think after Config Modal update some filter it re-creates default value for all other filters | ||
| // so we can process it like this `JSON.stringify` or start to use `Immer` | ||
| }, [JSON.stringify(defaultValue)]); | ||
|
|
There was a problem hiding this comment.
defaultValue is now converted into filterState by the application, hence it doesn't need to be handled here
Codecov Report
@@ Coverage Diff @@
## master #14981 +/- ##
==========================================
+ Coverage 77.53% 77.60% +0.06%
==========================================
Files 965 965
Lines 49504 49530 +26
Branches 6259 6267 +8
==========================================
+ Hits 38384 38438 +54
+ Misses 10920 10891 -29
- Partials 200 201 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
/testenv up |
|
@kgabryje Ephemeral environment spinning up at http://34.210.133.131:8080. Credentials are |
|
Ephemeral environment shutdown and build artifacts deleted. |
* upstream/master: (68 commits) fix typos (apache#14950) docs: fix custom oauth config (apache#14997) fix: apply template_params on external_metadata (apache#14996) fix: toggle fullscreen on the dashboard (apache#14979) feat(native-filters): add markers and number formatter + simple tests (apache#14981) fix(native-filters): Fix "undefined" error after editing a filter (apache#14984) fix(native-filters): remove implied fetch predicate (apache#14982) fix(native-filters): update cascaded filter state on change (apache#14980) fix(filter box): replace freeform where clause with ilike (apache#14900) refactor: Convert TableElement.jsx component from class to functional with hooks (apache#14830) fix: renamed sqllab filters to _filters (apache#14971) feat(native-filters): apply cascading without instant filtering (apache#14966) chore: bump superset-ui to 0.17.53 (apache#14968) fix(native-filters): cascading filters not rendering in tab (apache#14964) feat: add type_generic and is_dttm to table metadata (apache#14863) additional safeguard (apache#14953) feat: Adding FORCE_SSL as feature flag in config.py (apache#14934) feat(dashboard/native-filters): Hide filters out of scope of current tab (apache#14933) fix: time parser truncate to first day of year/month (apache#14945) fix: is_temporal should overwrite is_dttm (apache#14894) ...
SUMMARY
Small improvements to range filter:
Also:
(both story and test cases can be expanded later)
BEFORE
range_v1.mp4
AFTER
range.mp4
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION