Skip to content

[2.0] Fixes #37056: move Test Login migration to 2.0.10 - #38301

Merged
mohityadav766 merged 1 commit into
2.0from
fix/2.0-sso-test-login-migration
Nov 20, 2026
Merged

mohityadav766 merged 1 commit into
2.0from
fix/2.0-sso-test-login-migration

Conversation

@mohityadav766

@mohityadav766 mohityadav766 commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Describe your changes

Fixes #37056.

The merged Test Login backport #38197 added the session-table migration to 2.0.9, which has already shipped. Move its MySQL and PostgreSQL DDL to 2.0.10, the intended release, so upgrades receive it from the correct version. Keep the now-empty 2.0.9 schema files and existing post-data scripts.

Main counterpart: #38219. The matching 2.1 migration correction is #38302.

Type of change

  • Bug fix

High-level design

N/A — SQL migration relocation only. Move the existing MySQL and PostgreSQL table/index DDL unchanged to native/2.0.10. Directory discovery needs no Java registration. Unexecuted historical versions are selected even below 2.1.0; globally recorded SQL checksums skip statements already applied from the old location. IF NOT EXISTS also preserves existing tables and indexes.

Tests

  • Passed direct execution of the relocated scripts in isolated MySQL 8.0 and PostgreSQL 16 containers: table creation, repeat execution, preservation of an inserted session, primary key and both secondary indexes.
  • Verified the SQL is unchanged and unrelated migration statements are preserved; git diff --check passed.
  • No Java classes changed; coverage percentage is not applicable.
  • Java migration-runner tests remain pending. A focused attempt on the main counterpart could not start because its sparse checkout lacks Maven reactor modules; zero Java tests ran. Full backend integration and application upgrade tests were not run.
  • Ingestion integration tests, Playwright and UI recording: not applicable — SQL-only change.
  • Manual reproduction: apply the 2.0.10 script to an empty scratch database, insert a session, reapply the script, and verify the row and indexes remain.

Checklist

  • Related issue and originating PR linked.
  • Both database dialects updated and directly validated.
  • Independent review found no blocking findings.
  • No new design decision; correction to the release folder.
  • Java migration-runner and full application upgrade checks pending; kept draft.

Reviewed commit: 5db021d.

RetriggerView in GreptileConfidence Score: 5/5

The migration relocation appears safe to merge.

Summary

Moves the unchanged sso_test_login_session table and index statements from 2.0.9 to 2.0.10 for MySQL and PostgreSQL.

  • The Test Login session table is now created by the 2.0.10 migration.

Reviews (1) · Last reviewed commit: "fix: move SSO test login migration to 2...." · Reviewed by Greptile

@gitar-bot

gitar-bot Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🔴 High risk

Moving the SSO test-login session table DDL from 2.0.9 to 2.0.10 changes schema migration behavior; upgrades may lack the table needed for sessions.

Moves the SSO Test Login session-table migration DDL for MySQL and PostgreSQL from the already-shipped 2.0.9 folder to native/2.0.10, using IF NOT EXISTS so existing tables and indexes are preserved. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@mohityadav766
mohityadav766 marked this pull request as ready for review November 20, 2026 12:11
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@mohityadav766
mohityadav766 merged commit 7eafd11 into 2.0 Nov 20, 2026
105 of 111 checks passed
@mohityadav766
mohityadav766 deleted the fix/2.0-sso-test-login-migration branch November 20, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants