Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

feat(query): remove redundant metric label truncation #492

Merged
merged 2 commits into from
May 15, 2020

Conversation

villebro
Copy link
Contributor

🏆 Enhancements
When working on another PR I noticed this redundant metric label mutation logic. For some time now, the Superset backend has supported arbitrary column/metric names, despite restrictions in the database. Check apache/superset#5827 for more context.

@villebro villebro requested a review from a team as a code owner May 15, 2020 15:38
@vercel
Copy link

vercel bot commented May 15, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/superset/superset-ui/7p6zzn8yt
✅ Preview: https://superset-ui-git-fork-preset-io-villebro-metric-trunc.superset.now.sh

@codecov
Copy link

codecov bot commented May 15, 2020

Codecov Report

Merging #492 into master will decrease coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #492      +/-   ##
==========================================
- Coverage   22.75%   22.72%   -0.03%     
==========================================
  Files         276      276              
  Lines        6672     6670       -2     
  Branches      645      644       -1     
==========================================
- Hits         1518     1516       -2     
  Misses       5115     5115              
  Partials       39       39              
Impacted Files Coverage Δ
packages/superset-ui-query/src/convertMetric.ts 100.00% <100.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 7b608f0...2eca5d8. Read the comment docs.

@kristw kristw changed the title feat: remove redundant metric label truncation feat(query): remove redundant metric label truncation May 15, 2020
Copy link
Member

@rusackas rusackas left a comment

Choose a reason for hiding this comment

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

Hooray! Less code!

@rusackas rusackas merged commit 5b42bc1 into apache-superset:master May 15, 2020
@villebro villebro deleted the villebro/metric-trunc branch May 17, 2020 05:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants