Skip to content

fix(appconnect): Backfill app_id_str - #40321

Merged
loewenheim merged 13 commits into
masterfrom
fix/appid-str-backfill
Oct 24, 2022
Merged

loewenheim merged 13 commits into
masterfrom
fix/appid-str-backfill

Conversation

@loewenheim

Copy link
Copy Markdown
Contributor

This is step 2 in the effort to change the type of AppConnectBuild.app_id from an integer to a string.

It backfills the new app_id_str column from the existing app_id field.

Depends on #40261.

@loewenheim
loewenheim requested a review from a team as a code owner October 20, 2022 14:02
@loewenheim loewenheim self-assigned this Oct 20, 2022
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 20, 2022
@github-actions

Copy link
Copy Markdown
Contributor

This PR has a migration; here is the generated SQL for src/sentry/migrations/0325_add_appid_str.py ()

--
-- Custom state/database change combination
--

                    ALTER TABLE "sentry_appconnectbuild" ADD COLUMN "app_id_str" character(256) DEFAULT "0";
                    ;

@wedamija wedamija left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks safe to me. This table has 188k rows, should be fine to run this live rather than asking ops to do so.

@wedamija

Copy link
Copy Markdown
Member

Looks good, just want to note that you should be careful to deploy each of these prs separately

Base automatically changed from fix/add-appid-str-migration to master October 24, 2022 09:23
@loewenheim
loewenheim requested a review from a team October 24, 2022 09:23
@github-actions

Copy link
Copy Markdown
Contributor

This PR has a migration; here is the generated SQL for src/sentry/migrations/0328_backfill_app_id_str.py ()

--
-- MIGRATION NOW PERFORMS OPERATION THAT CANNOT BE WRITTEN AS SQL:
-- Raw Python operation
--

@loewenheim
loewenheim merged commit 764673a into master Oct 24, 2022
@loewenheim
loewenheim deleted the fix/appid-str-backfill branch October 24, 2022 11:22
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 8, 2022

This branch was successfully deployed

2 active deployments
Preview – storybook — e375cb86 Deployed Oct 24, 2022 by vercel[bot]
Preview – sentry — e375cb86 Deployed Oct 24, 2022 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants