-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
Retire dashboard v1 (js and python) #5418
Retire dashboard v1 (js and python) #5418
Conversation
5d2ce25
to
7838098
Compare
Codecov Report
@@ Coverage Diff @@
## master #5418 +/- ##
==========================================
+ Coverage 59.09% 63.31% +4.21%
==========================================
Files 372 349 -23
Lines 23747 22096 -1651
Branches 2758 2455 -303
==========================================
- Hits 14033 13989 -44
+ Misses 9699 8093 -1606
+ Partials 15 14 -1
Continue to review full report at Codecov.
|
5c80682
to
f236971
Compare
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.
couple minor changes but lgtm overall! this is exciting! 🎉
Not sure how you are thinking about merging things but I feel like frontend deprecation shouldn't be merged until after the python migration script is in place. wdyt @john-bodley @mistercrunch ?
const version = nextProps.dashboardState.isV2Preview | ||
? 'v2-preview' | ||
: 'v2'; | ||
const version = 'v2'; |
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.
nit I wouldn't define a variable for this, you can just define it as part of the object below.
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.
fixed.
'Save Dashboard%s', | ||
isV2Preview ? ' (⚠️ all saved dashboards will be V2)' : '', | ||
)} | ||
modalTitle={t('Save Dashboard%s')} |
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.
extra %
I think?
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.
fixed. removed %s
superset/views/core.py
Outdated
# Hack to log the dashboard_id properly, even when getting a slug | ||
@log_this | ||
def dashboard(**kwargs): # noqa | ||
pass | ||
|
||
# TODO remove extra logging upon v1 deprecation 🎉 | ||
dashboard( |
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.
I think you still need to call the dashboard()
method or there will be no logging. just need to remove the v1/2-switch-specific kwargs
.
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.
fixed.
I wonder also if we should delete the markdown + separator slice types? |
f236971
to
137cd42
Compare
i think if user ever saved a So I didn't delete those viz type, but i added a logic in |
137cd42
to
75019cd
Compare
@@ -102,7 +102,6 @@ | |||
"react-dnd-html5-backend": "^2.5.4", | |||
"react-dom": "^15.6.2", | |||
"react-gravatar": "^2.6.1", | |||
"react-grid-layout": "0.16.6", |
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.
🎉
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.
This LGTM, I would still say the DB migration (in #5463) should be merged before this tho otherwise folks might view an unconverted v1 dashboard which would fail.
(cherry picked from commit 3f2fc8f)
this PR depends on #5463.
Remove dashboard v1-only and v1 => v2 transition related logic, and update unit tests.
build passed 😂
@williaster @mistercrunch