-
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
feat: Certify Charts and Dashboards #17335
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 |
superset/migrations/versions/aea15018d53b_add_certifications_columns_to_dashboard.py
Outdated
Show resolved
Hide 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.
codes LGTM, except certificated_by
column type.
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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:
|
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.
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
SUMMARY
This PR:
AFTER
DEV.Superset.2.mp4
ADDITIONAL INFORMATION