Skip to content

fix(appconnect): Drop app_id column - #40326

Merged
loewenheim merged 13 commits into
masterfrom
fix/remove-appid-column
Oct 27, 2022
Merged

loewenheim merged 13 commits into
masterfrom
fix/remove-appid-column

Conversation

@loewenheim

Copy link
Copy Markdown
Contributor

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

It drops the app_id column from postgres.

Depends on #40325.

@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.

You'll need to write custom sql to remove the column at this point. Django is no longer aware of the app_id column, and will try to remove the app_id_str column since the AppConnectBuild.app_id field is pointing at it

@loewenheim
loewenheim force-pushed the fix/remove-appid-model branch from 3ceb3ac to 15780e0 Compare October 24, 2022 16:20
@loewenheim
loewenheim requested a review from a team October 24, 2022 16:20
Base automatically changed from fix/remove-appid-model to master October 25, 2022 11:39
@loewenheim

Copy link
Copy Markdown
Contributor Author

Should I use SeparateDatabaseAndState and only put the operation in the datatbase part?

@github-actions

Copy link
Copy Markdown
Contributor

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

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

                    ALTER TABLE "sentry_appconnectbuild" DROP COLUMN "app_id";
                    ;

@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.

Looks good, thanks for cleaning this up!

@github-actions

Copy link
Copy Markdown
Contributor

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

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

                    ALTER TABLE "sentry_appconnectbuild" DROP COLUMN "app_id";
                    ;

@loewenheim
loewenheim merged commit 96f397f into master Oct 27, 2022
@loewenheim
loewenheim deleted the fix/remove-appid-column branch October 27, 2022 09:42
jan-auer added a commit that referenced this pull request Oct 27, 2022
* master: (82 commits)
  ref(test): Convert account security details to rtl and ts (#40638)
  fix(appconnect): Drop app_id column (#40326)
  test(js): Convert InviteMembersModal to RTL (#40637)
  test(js): Convert fieldRenderers to RTL (#40633)
  chore(events): Use longKeys for Java packages (#40539)
  ref(ui): Remove deprecatedforms from AdminQuotas (#40627)
  ref(js): Convert InviteRowControl to a FC (#40634)
  feat(ui): Improve aria attributes of menu items (#40573)
  feat(js): Report usage of deprecatedforms in window.SentryApp (#40628)
  ref(ui): Remove deprecatedforms/selectField in AdminQueue (#40626)
  ref(js): Convert TitleStar to a FC (#40632)
  feat(ui): Label Settings Serach input (#40630)
  ref(js): Extract permissionStateToList out of class (#40620)
  ref(js): Be consistent about `domId` with `useMemo` (#40622)
  feat(ui): Use `nav` For settings navigations (#40576)
  fix(webpack): Use 127.0.0.1 loopback over locahost (#40625)
  test(discover): Convert eventsRequest.spec.jsx to RTL (#40585)
  fix(ui): Remove invalid `role="text"` (#40579)
  feat(ui): Use `header` for Layout.Header component (#40580)
  (fix): self-hosted e2e env variable update (#40619)
  ...
jan-auer added a commit that referenced this pull request Oct 27, 2022
* master: (82 commits)
  ref(test): Convert account security details to rtl and ts (#40638)
  fix(appconnect): Drop app_id column (#40326)
  test(js): Convert InviteMembersModal to RTL (#40637)
  test(js): Convert fieldRenderers to RTL (#40633)
  chore(events): Use longKeys for Java packages (#40539)
  ref(ui): Remove deprecatedforms from AdminQuotas (#40627)
  ref(js): Convert InviteRowControl to a FC (#40634)
  feat(ui): Improve aria attributes of menu items (#40573)
  feat(js): Report usage of deprecatedforms in window.SentryApp (#40628)
  ref(ui): Remove deprecatedforms/selectField in AdminQueue (#40626)
  ref(js): Convert TitleStar to a FC (#40632)
  feat(ui): Label Settings Serach input (#40630)
  ref(js): Extract permissionStateToList out of class (#40620)
  ref(js): Be consistent about `domId` with `useMemo` (#40622)
  feat(ui): Use `nav` For settings navigations (#40576)
  fix(webpack): Use 127.0.0.1 loopback over locahost (#40625)
  test(discover): Convert eventsRequest.spec.jsx to RTL (#40585)
  fix(ui): Remove invalid `role="text"` (#40579)
  feat(ui): Use `header` for Layout.Header component (#40580)
  (fix): self-hosted e2e env variable update (#40619)
  ...
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 11, 2022

This branch was successfully deployed

2 active deployments
Preview – sentry — 723287a9 Deployed Oct 27, 2022 by vercel[bot]
Preview – storybook — 723287a9 Deployed Oct 27, 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