Skip to content
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

Correct type for report_card.collection_preview #42919

Merged
merged 1 commit into from
May 20, 2024

Conversation

johnswanson
Copy link
Contributor

@johnswanson johnswanson commented May 20, 2024

In v49, we converted all boolean types to bit(1) on mysql/mariadb. It looks like we missed this one, so when you GET a card it has "collection_preview": 1. Then we get an error when trying to save, because collection_preview should be a boolean.

I verified that after this migration, GETting a card results in a boolean "collection_preview".

Fixes #40600

@johnswanson johnswanson requested a review from noahmoss May 20, 2024 19:37
@metabase-bot metabase-bot bot added the .Team/AdminWebapp Admin and Webapp team label May 20, 2024
@johnswanson johnswanson added the no-backport Do not backport this PR to any branch label May 20, 2024
@johnswanson johnswanson force-pushed the jds/fix-mariadb-boolean branch 2 times, most recently from a200b1b to 22a956b Compare May 20, 2024 19:45
Copy link

replay-io bot commented May 20, 2024

Status In Progress ↗︎ 53 / 54
Commit 78ff5d6
Results
⚠️ 2 Flaky
2561 Passed

In v49, we converted all boolean types to `bit(1)` on mysql/mariadb. It
looks like we missed this one, so when you `GET` a card it has
`"collection_preview": 1`. Then we get an error when trying to save,
because `collection_preview` should be a boolean.

I verified that after this migration, `GET`ting a card results in a
boolean `"collection_preview"`.
@johnswanson johnswanson enabled auto-merge (squash) May 20, 2024 21:36
@johnswanson johnswanson disabled auto-merge May 20, 2024 21:36
@johnswanson johnswanson merged commit b76e26f into master May 20, 2024
109 checks passed
@johnswanson johnswanson deleted the jds/fix-mariadb-boolean branch May 20, 2024 22:20
Copy link

@johnswanson Did you forget to add a milestone to the issue for this PR? When and where should I add a milestone?

@johnswanson johnswanson added this to the 0.49.12 milestone May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-backport Do not backport this PR to any branch .Team/AdminWebapp Admin and Webapp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot duplicate or save questions when moving from 42 to 49
2 participants