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 time granularity-related issues #4821

Merged
merged 2 commits into from
Apr 18, 2018

Conversation

mistercrunch
Copy link
Member

@mistercrunch mistercrunch commented Apr 13, 2018

related to #4755

@betodealmeida 👀

@codecov-io
Copy link

codecov-io commented Apr 13, 2018

Codecov Report

Merging #4821 into master will increase coverage by 0.03%.
The diff coverage is 42.85%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4821      +/-   ##
==========================================
+ Coverage   76.98%   77.01%   +0.03%     
==========================================
  Files          44       44              
  Lines        8498     8501       +3     
==========================================
+ Hits         6542     6547       +5     
+ Misses       1956     1954       -2
Impacted Files Coverage Δ
superset/data/__init__.py 100% <ø> (ø) ⬆️
superset/connectors/sqla/models.py 75.15% <0%> (-1.18%) ⬇️
superset/models/core.py 86.54% <100%> (+0.04%) ⬆️
superset/viz.py 79.87% <0%> (+0.54%) ⬆️

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 44c2d5b...98b372f. Read the comment docs.

@betodealmeida
Copy link
Member

Taking a look — thanks for fixing this!


For backward compatibility"""
d = {grain.duration: grain for grain in self.grains()}
d.update({grain.label: grain for grain in self.grains()})
Copy link
Member

Choose a reason for hiding this comment

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

How do the grains show up in the form? Do we have duplicates?

Copy link
Member Author

Choose a reason for hiding this comment

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

Looks ok. The dropdown uses the grains property, not grains_dict.

Copy link
Member

Choose a reason for hiding this comment

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

Awesome, thanks!

@mistercrunch mistercrunch merged commit a98c3cf into apache:master Apr 18, 2018
michellethomas pushed a commit to michellethomas/panoramix that referenced this pull request May 24, 2018
timifasubaa pushed a commit to timifasubaa/incubator-superset that referenced this pull request May 31, 2018
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
* Fixing time grain

* Add tests
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.25.0 labels Feb 27, 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 🚢 0.25.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants