-
Notifications
You must be signed in to change notification settings - Fork 14k
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
refactor: migrate table chart to new API #10270
Conversation
afc2b4a
to
0273508
Compare
@ktmud this needs a rebase, will be happy to give it a spin once the conflicts are resolved |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comment on adding the new results to the response schema. Looks great, let's get this in as soon as superset-ui/core
is bumped to 0.15.
0273508
to
602dce7
Compare
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue |
602dce7
to
a1e87a8
Compare
a1e87a8
to
295c88d
Compare
Codecov Report
@@ Coverage Diff @@
## master #10270 +/- ##
==========================================
+ Coverage 64.99% 66.94% +1.95%
==========================================
Files 1021 1021
Lines 50095 50125 +30
Branches 5141 5141
==========================================
+ Hits 32559 33556 +997
+ Misses 17360 16435 -925
+ Partials 176 134 -42
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@ktmud if you're busy I can help finish this |
@villebro I'll finish it this week. |
7be3fd5
to
4fcf60e
Compare
1129349
to
a0fdb6e
Compare
f46ee03
to
5ee9045
Compare
message=_("Request is incorrect: %(error)s", error=error.messages) | ||
message=_( | ||
"Request is incorrect: %(error)s", error=error.normalized_messages() | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use normalized_messsages
from mashmallow's ValidationError
so that the error message shows which query field failed the validation.
8e2dc63
to
210ae65
Compare
84d92b3
to
8263bf7
Compare
46cb0cb
to
9b05065
Compare
588ceee
to
026c639
Compare
HOLD: We may need another update on (Thanks for the Cypress tests!) |
@villebro @zhaoyongjie An update on this. I didn't have time to fix this today but will try to do it tomorrow. This PR should block bumping |
@kristw @villebro could you help taking a look at apache-superset/superset-ui#919 , which should fix the failing E2E test in this PR. |
Approved - I'll merge it and deploy in an hour or so if you're offline (hmm, it seems to be stuck, I'll kick CI if it doesn't wake up soon) |
ef12444
to
5cfab09
Compare
@villebro I've done the bumping. Feel free to merge when the CI is green. |
That would be right now 🙂 |
SUMMARY
Move the table viz to API v1. Depends on apache-superset/superset-ui#889
Also did a bunch of refactoring on
QueryContext
andQueryObject
:DbColumnTypes
toGenericDataType
colnames
andcoltypes
to query response. Didn't call themcolumn_names
to make it easier to search in the code.DTTM_ALIAS
in groupby/columnspost_processing.contribution
to support applying contribution only on selected columns (needed for percent metrics).Bumped
superset-ui
packages and plugins to0.17.0
:apache-superset/superset-ui@v0.16.9...v0.17.0
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A
TEST PLAN
CI and manual verification.
ADDITIONAL INFORMATION