Skip to content

Conversation

@wedamija
Copy link
Member

We don't want to delete these rows if the actor that made the changes is deleted, just SET_NULL
instead. Also corrected some comments

@wedamija wedamija requested review from a team and ahmedetefy October 21, 2021 01:08
We don't want to delete these rows if the actor that made the changes is deleted, just `SET_NULL`
instead. Also corrected some comments
@github-actions
Copy link
Contributor

This PR has a migration; here is the generated SQL

BEGIN;
--
-- Alter field actor on grouphistory
--
SET CONSTRAINTS "sentry_grouphistory_actor_id_085453d6_fk_sentry_actor_id" IMMEDIATE; ALTER TABLE "sentry_grouphistory" DROP CONSTRAINT "sentry_grouphistory_actor_id_085453d6_fk_sentry_actor_id";
ALTER TABLE "sentry_grouphistory" ADD CONSTRAINT "sentry_grouphistory_actor_id_085453d6_fk_sentry_actor_id" FOREIGN KEY ("actor_id") REFERENCES "sentry_actor" ("id") DEFERRABLE INITIALLY DEFERRED;
COMMIT;

from sentry.models import Group, Release, Team, User


class GroupHistoryStatus:
Copy link
Member

Choose a reason for hiding this comment

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

I noticed that this class isn't part of Group deletions, should it be?

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, I'll follow up with another PR

@wedamija wedamija merged commit 1173127 into master Oct 21, 2021
@wedamija wedamija deleted the danf/insights_fix_model branch October 21, 2021 17:24
@github-actions github-actions bot locked and limited conversation to collaborators Nov 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants