Skip to content
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

fix(native-filters): show human readable time grain label in indicator #15411

Merged
merged 3 commits into from
Jun 28, 2021

Conversation

villebro
Copy link
Member

SUMMARY

Currently when using a time grain native filter, the ISO-8601 time duration is shown in the filter indicator. Instead of showing the technical duration in the indicator (e.g. PT1H), it is preferable to show the human readable filter value (e.g. "Hour").

AFTER

Now the human readable label is displayed in the filter indicator:
image

BEFORE

Previously the ISO-8601 time duration was shown in the filter indicator
image

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue: closes [native filter] 'Clear All' will show error in value filter  #15361
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@codecov
Copy link

codecov bot commented Jun 28, 2021

Codecov Report

Merging #15411 (a11c2e4) into master (f53b2c6) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #15411      +/-   ##
==========================================
- Coverage   77.22%   77.22%   -0.01%     
==========================================
  Files         975      975              
  Lines       50634    50638       +4     
  Branches     6222     6223       +1     
==========================================
  Hits        39104    39104              
- Misses      11319    11323       +4     
  Partials      211      211              
Flag Coverage Δ
javascript 71.73% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ers/components/TimeGrain/TimeGrainFilterPlugin.tsx 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f53b2c6...a11c2e4. Read the comment docs.

@villebro villebro merged commit ddcf461 into apache:master Jun 28, 2021
@villebro villebro deleted the villebro/timegrain-label branch June 28, 2021 10:35
mvoitko pushed a commit to mvoitko/superset that referenced this pull request Jun 28, 2021
apache#15411)

* fix(native-filters): show human readable time grain label in indicator

* lint

* simplify
@rosemarie-chiu
Copy link
Contributor

🏷 2021.25

henryyeh pushed a commit to preset-io/superset that referenced this pull request Jun 28, 2021
apache#15411)

* fix(native-filters): show human readable time grain label in indicator

* lint

* simplify

(cherry picked from commit ddcf461)
amitmiran137 pushed a commit that referenced this pull request Jul 4, 2021
#15411)

* fix(native-filters): show human readable time grain label in indicator

* lint

* simplify

(cherry picked from commit ddcf461)
cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
apache#15411)

* fix(native-filters): show human readable time grain label in indicator

* lint

* simplify
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
apache#15411)

* fix(native-filters): show human readable time grain label in indicator

* lint

* simplify
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
apache#15411)

* fix(native-filters): show human readable time grain label in indicator

* lint

* simplify
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.3.0 labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels preset:2021.25 preset-io size/S v1.3 🚢 1.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[native filter] 'Clear All' will show error in value filter
5 participants