Skip to content

fix: Update migration logic in #27119#28482

Merged
john-bodley merged 2 commits into
apache:masterfrom
john-bodley:john-bodley--migration-longtext
May 20, 2024
Merged

fix: Update migration logic in #27119#28482
john-bodley merged 2 commits into
apache:masterfrom
john-bodley:john-bodley--migration-longtext

Conversation

@john-bodley
Copy link
Copy Markdown
Member

@john-bodley john-bodley commented May 13, 2024

SUMMARY

This PR is a follow up #28422 (which needs to be cherry-picked to remedy an issue, but can't include a migration). Specifically it also adds a new migration to resize specific columns back to LONGTEXT if the previous migration has already been run. If not, the migration is a no-op.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

CI.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@github-actions github-actions Bot added the risk:db-migration PRs that require a DB migration label May 13, 2024
@john-bodley john-bodley added the risk:may-require-downtime Upgrading to this feature may require downtime label May 13, 2024
@john-bodley john-bodley force-pushed the john-bodley--migration-longtext branch from 8a8a210 to 2cc5ee3 Compare May 13, 2024 18:17
@john-bodley john-bodley force-pushed the john-bodley--migration-longtext branch from 2cc5ee3 to d72f46c Compare May 14, 2024 18:02
@codecov
Copy link
Copy Markdown

codecov Bot commented May 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.48%. Comparing base (76d897e) to head (19423bc).
Report is 1094 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #28482       +/-   ##
===========================================
+ Coverage   60.48%   83.48%   +22.99%     
===========================================
  Files        1931      521     -1410     
  Lines       76236    37484    -38752     
  Branches     8568        0     -8568     
===========================================
- Hits        46114    31294    -14820     
+ Misses      28017     6190    -21827     
+ Partials     2105        0     -2105     
Flag Coverage Δ
hive 49.09% <ø> (-0.07%) ⬇️
javascript ?
mysql 77.15% <ø> (?)
postgres 77.28% <ø> (?)
presto 53.64% <ø> (-0.16%) ⬇️
python 83.48% <ø> (+19.99%) ⬆️
sqlite 76.73% <ø> (?)
unit 58.94% <ø> (+1.31%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@john-bodley john-bodley marked this pull request as ready for review May 14, 2024 19:09
@john-bodley john-bodley requested a review from a team as a code owner May 14, 2024 19:09
@dosubot dosubot Bot added the change:backend Requires changing the backend label May 14, 2024
Copy link
Copy Markdown
Member

@mistercrunch mistercrunch left a comment

Choose a reason for hiding this comment

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

LGTM

@john-bodley john-bodley merged commit 1c48fe0 into apache:master May 20, 2024
vinothkumar66 pushed a commit to vinothkumar66/superset that referenced this pull request Nov 11, 2024
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 4.1.0 First shipped in 4.1.0 labels Nov 27, 2024
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels change:backend Requires changing the backend risk:db-migration PRs that require a DB migration risk:may-require-downtime Upgrading to this feature may require downtime size/M 🚢 4.1.0 First shipped in 4.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants