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: revert "feat(sqla): apply time grain to all temporal groupbys" #17239

Merged
merged 3 commits into from
Oct 29, 2021

Conversation

john-bodley
Copy link
Member

Reverts #16318 per the comments left in the original PR.

Note I think the intent of the original change is good however it's somewhat nuanced and it was not apparent to the user from the UI that the grouping was being mutated. It does seem a preferred solution is either the addition of custom columns or UI components which allows users to opt in to which temporal columns should be transformed by the time grain. Furthermore said change was actually a breaking change but was not protected with a feature flag.

@john-bodley john-bodley changed the title revert: "feat(sqla): apply time grain to all temporal groupbys" fix: revert "feat(sqla): apply time grain to all temporal groupbys" Oct 27, 2021
@codecov
Copy link

codecov bot commented Oct 27, 2021

Codecov Report

Merging #17239 (d158742) into master (37909aa) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #17239   +/-   ##
=======================================
  Coverage   77.02%   77.02%           
=======================================
  Files        1037     1037           
  Lines       55629    55629           
  Branches     7594     7594           
=======================================
+ Hits        42850    42851    +1     
+ Misses      12529    12528    -1     
  Partials      250      250           
Flag Coverage Δ
hive 81.52% <100.00%> (ø)
javascript 71.14% <ø> (+<0.01%) ⬆️
mysql 81.95% <100.00%> (ø)
postgres 81.96% <100.00%> (ø)
presto 81.82% <100.00%> (ø)
python 82.46% <100.00%> (ø)
sqlite 81.63% <100.00%> (ø)

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

Impacted Files Coverage Δ
superset/connectors/sqla/models.py 87.39% <100.00%> (ø)
...eFilters/FiltersConfigModal/FiltersConfigModal.tsx 87.71% <0.00%> (+0.58%) ⬆️

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 37909aa...d158742. Read the comment docs.

Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

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

Apologies for the regression introduced by the original PR. Having said that, it can be difficult to draw the line between what's a breaking change and what's a feature that was never really explicitly intended, and therefore not something that needs to be maintained. The reason for the change in the original PR was to enable something that is probably usually the expected behavior, as in the absence of per-column time grain configurations it is currently not possible to apply a time grain to multiple temporal columns without the change introduced by the original PR. But perhaps this change must wait for a better per-column time grain configuration UX (2.0?).

@john-bodley
Copy link
Member Author

john-bodley commented Oct 27, 2021

@villebro I agree with your comment. Additionally a poor UX, i.e., something unintended and sub-optimal, can become the de facto norm based on user behavior and or baked in work arounds. The issue then is future fixes—with good intend—are actually breaking changes given the saved formed data and thus a migration of some form (preferably non-breaking) is likely needed.

@john-bodley john-bodley merged commit b7bda70 into master Oct 29, 2021
@john-bodley john-bodley deleted the revert-16318-villebro/sqla-time-grain branch October 29, 2021 18:58
AAfghahi pushed a commit that referenced this pull request Jan 10, 2022
…17239)

* Revert "feat(sqla): apply time grain to all temporal groupbys (#16318)"

This reverts commit 9075e42.

* Update models.py
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.5.0 labels Mar 13, 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/S 🚢 1.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants