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: Fix Time Column dropdown for date filter #11149

Merged

Conversation

graceguo-supercat
Copy link

@graceguo-supercat graceguo-supercat commented Oct 3, 2020

SUMMARY

Steps to reproduce this issue:

  1. create a date filter.
  2. check SHOW SQL TIME COLUMN checkbox.
  3. click on dropdown list in the filter: throw js error as shown below.

BEFORE

Screen Shot 2020-09-28 at 3 45 07 PM

AFTER

Screen Shot 2020-10-02 at 6 20 44 PM

cc @etr2460 @ktmud @mistercrunch

@opus-42
Copy link
Contributor

opus-42 commented Oct 5, 2020

This fix is much-needed :)

@graceguo-supercat
Copy link
Author

force pushed another solution: the root cause for this issue is package changed from superset-ui.

Copy link
Member

@etr2460 etr2460 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the fix! not sure how this one slipped through the cracks for so long

@@ -63,9 +63,10 @@ import {
getSequentialSchemeRegistry,
legacyValidateInteger,
validateNonEmpty,
ColumnOption,
} from '@superset-ui/core';

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit, remove the newline here (i need to see if i can programatically enforce it with prettier)

@codecov-commenter
Copy link

codecov-commenter commented Oct 6, 2020

Codecov Report

Merging #11149 into master will decrease coverage by 0.38%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11149      +/-   ##
==========================================
- Coverage   61.68%   61.29%   -0.39%     
==========================================
  Files         827      391     -436     
  Lines       39061    24485   -14576     
  Branches     3676        0    -3676     
==========================================
- Hits        24094    15009    -9085     
+ Misses      14786     9476    -5310     
+ Partials      181        0     -181     
Flag Coverage Δ
#javascript ?
#python 61.29% <ø> (-0.06%) ⬇️

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

Impacted Files Coverage Δ
superset/db_engine_specs/mysql.py 79.59% <0.00%> (-12.25%) ⬇️
superset/models/core.py 87.56% <0.00%> (-0.83%) ⬇️
superset/views/core.py 74.01% <0.00%> (-0.29%) ⬇️
superset/security/manager.py 90.90% <0.00%> (-0.14%) ⬇️
superset/utils/decorators.py 50.76% <0.00%> (ø)
superset-frontend/src/chart/Chart.jsx
superset-frontend/src/utils/common.js
...perset-frontend/src/utils/getControlsForVizType.js
...rset-frontend/src/dashboard/util/componentTypes.ts
superset-frontend/src/components/TableSelector.tsx
... and 430 more

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 e9f4fcb...22f1ff2. Read the comment docs.

@graceguo-supercat graceguo-supercat merged commit 13963ac into apache:master Oct 6, 2020
villebro pushed a commit to preset-io/superset that referenced this pull request Oct 22, 2020
@graceguo-supercat graceguo-supercat deleted the gg-FixTimeColumnDropdown branch November 11, 2020 23:17
auxten pushed a commit to auxten/incubator-superset that referenced this pull request Nov 20, 2020
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
@mistercrunch mistercrunch added 🍒 0.38.0 🍒 0.38.1 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.0.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 size/XS 🍒 0.38.0 🍒 0.38.1 🚢 1.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants