Skip to content

Conversation

@mgaeta
Copy link
Contributor

@mgaeta mgaeta commented Oct 7, 2021

Refactor model methods for GroupLink and ExternalIssue and put them in Manager classes.

@mgaeta mgaeta requested a review from a team October 7, 2021 18:57
@mgaeta mgaeta requested a review from a team as a code owner October 7, 2021 18:57

group_id = BoundedBigIntegerField()
project_id = BoundedBigIntegerField(db_index=True)
group = FlexibleForeignKey("sentry.Group")
Copy link
Member

Choose a reason for hiding this comment

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

@mgaeta mgaeta force-pushed the fix/api-2163-slack-actions-3 branch 2 times, most recently from de1c1dc to 598929e Compare October 7, 2021 21:48
Base automatically changed from fix/api-2163-slack-actions-3 to master October 7, 2021 22:21
@mgaeta mgaeta requested a review from a team as a code owner October 11, 2021 23:17
Copy link
Member

@markstory markstory left a comment

Choose a reason for hiding this comment

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

Migration seems good as it is only state changes.

@github-actions
Copy link
Contributor

This PR has a migration; here is the generated SQL

BEGIN;
--
-- Custom state/database change combination
--
COMMIT;

@mgaeta
Copy link
Contributor Author

mgaeta commented Oct 25, 2021

Hi @wedamija I haven't gotten around to this PR in a while can you help me see if there's anything else I need to do?

Copy link
Member

@wedamija wedamija left a comment

Choose a reason for hiding this comment

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

This looks good to me, although we'll need to regenerate the migration to fix the conflicts

@mgaeta
Copy link
Contributor Author

mgaeta commented Oct 26, 2021

I think this is blocked by check migration / check migration. Do you know how to satisfy it?

@wedamija
Copy link
Member

I think this is blocked by check migration / check migration. Do you know how to satisfy it?

It's because the state in the migration doesn't match the state on the models - probably caused by adding db_constraint=False to the models but not the migration.

@mgaeta
Copy link
Contributor Author

mgaeta commented Nov 9, 2021

@wedamija It worked! Thanks

@mgaeta mgaeta merged commit d529545 into master Nov 9, 2021
@mgaeta mgaeta deleted the fix/api-2163-slack-actions-4 branch November 9, 2021 17:09
@github-actions github-actions bot locked and limited conversation to collaborators Nov 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants