feat: Certify Charts and Dashboards#17335
Conversation
…e/certified_dashboards_charts
Codecov Report
@@ Coverage Diff @@
## master #17335 +/- ##
==========================================
- Coverage 76.94% 76.75% -0.20%
==========================================
Files 1042 1042
Lines 56299 56364 +65
Branches 7793 7815 +22
==========================================
- Hits 43322 43262 -60
- Misses 12721 12846 +125
Partials 256 256
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
/testenv up |
zhaoyongjie
left a comment
There was a problem hiding this comment.
codes LGTM, except certificated_by column type.
betodealmeida
left a comment
There was a problem hiding this comment.
We have a script to benchmark DB migations, can you run it with your migration and post the results?
https://github.com/apache/superset/blob/master/scripts/benchmark_migration.py
|
|
||
| def upgrade(): | ||
| # ### commands auto generated by Alembic - please adjust! ### | ||
| op.add_column("dashboards", sa.Column("certified_by", sa.Text(), nullable=True)) |
There was a problem hiding this comment.
Can you use op.batch_alter_table here and in the downgrade? Some databases don't support adding/removing columns, so you need to use op.batch_alter_table to make the migration work with them. You can find examples in the other migration scripts.
|
❗ Please consider rebasing your branch to avoid db migration conflicts. |
…e/certified_dashboards_charts
…e/certified_dashboards_charts
|
Hey @betodealmeida I applied your suggested changes and ran the benchmarks as follows: |
betodealmeida
left a comment
There was a problem hiding this comment.
Thanks for the migration benchmark!
|
Ephemeral environment shutdown and build artifacts deleted. |
* Certify charts * Format * Certify dashboards * Format * Refactor card certification * Clear details when certified by empty * Show certification in detail page * Add RTL tests * Test charts api * Enhance integration tests * Lint * Fix dashboards count * Format * Handle empty value * Handle empty slice * Downgrade migration * Indent * Use alter * Fix revision * Fix revision
* Certify charts * Format * Certify dashboards * Format * Refactor card certification * Clear details when certified by empty * Show certification in detail page * Add RTL tests * Test charts api * Enhance integration tests * Lint * Fix dashboards count * Format * Handle empty value * Handle empty slice * Downgrade migration * Indent * Use alter * Fix revision * Fix revision
* Certify charts * Format * Certify dashboards * Format * Refactor card certification * Clear details when certified by empty * Show certification in detail page * Add RTL tests * Test charts api * Enhance integration tests * Lint * Fix dashboards count * Format * Handle empty value * Handle empty slice * Downgrade migration * Indent * Use alter * Fix revision * Fix revision
SUMMARY
This PR:
AFTER
DEV.Superset.2.mp4
ADDITIONAL INFORMATION