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

fix(group-attributes): Drop group_first_release_id column #6048

Merged
merged 4 commits into from
Jun 21, 2024

Conversation

snigdhas
Copy link
Member

Dropping this column because the type is wrong. Previous PR to change the column type failed and had to be reverted.

@snigdhas snigdhas marked this pull request as ready for review June 21, 2024 17:30
@snigdhas snigdhas requested a review from a team as a code owner June 21, 2024 17:30
@ayirr7
Copy link
Member

ayirr7 commented Jun 21, 2024

Can you double check that #6039 was rolled out everywhere? Thanks!

table_name="group_attributes_dist",
column=Column(
"group_first_release_id",
UUID(Modifiers(nullable=True)),
Copy link
Member

Choose a reason for hiding this comment

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

Just checking here. Would UUID be the desired column type for the reverse operation (i.e. adding back the new column)? Or is UInt64 the correct type?

Copy link
Member Author

Choose a reason for hiding this comment

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

It sounds like the type change didn't work? so I assumed it wasn't safe to rollback to that

Copy link
Member

Choose a reason for hiding this comment

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

Ok, we can rollback to UUID. I suppose when we add back the column, we'll add it with the Uint64 type?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, that's the plan!

@snigdhas
Copy link
Member Author

Can you double check that #6039 was rolled out everywhere? Thanks!

Changes were rolled out in this deploy

@snigdhas snigdhas requested review from ayirr7 and a team June 21, 2024 17:46
Copy link

github-actions bot commented Jun 21, 2024

This PR has a migration; here is the generated SQL

-- start migrations

-- forward migration group_attributes : 0004_drop_first_release_id_from_group_attributes
Distributed op: ALTER TABLE group_attributes_dist DROP COLUMN IF EXISTS group_first_release_id;
Local op: ALTER TABLE group_attributes_local DROP COLUMN IF EXISTS group_first_release_id;
-- end forward migration group_attributes : 0004_drop_first_release_id_from_group_attributes




-- backward migration group_attributes : 0004_drop_first_release_id_from_group_attributes
Local op: ALTER TABLE group_attributes_local ADD COLUMN IF NOT EXISTS group_first_release_id Nullable(UUID) AFTER group_priority;
Distributed op: ALTER TABLE group_attributes_dist ADD COLUMN IF NOT EXISTS group_first_release_id Nullable(UUID) AFTER group_priority;
-- end backward migration group_attributes : 0004_drop_first_release_id_from_group_attributes

Copy link

codecov bot commented Jun 21, 2024

Test Failures Detected: Due to failing tests, we cannot provide coverage reports at this time.

❌ Failed Test Results:

Completed 1 tests with 1 failed, 0 passed and 0 skipped.

View the full list of failed tests

pytest

  • Test name: ::tests.migrations.test_legacy_use

    No failure message available

@snigdhas snigdhas merged commit 6e377fa into master Jun 21, 2024
28 checks passed
@snigdhas snigdhas deleted the snigdha/drop-column branch June 21, 2024 18:53
@getsentry-bot
Copy link
Contributor

PR reverted: 44717a3

getsentry-bot added a commit that referenced this pull request Jun 21, 2024
)"

This reverts commit 6e377fa.

Co-authored-by: evanh <2727124+evanh@users.noreply.github.com>
xurui-c pushed a commit that referenced this pull request Jun 23, 2024
)"

This reverts commit 6e377fa.

Co-authored-by: evanh <2727124+evanh@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants