-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat: team issue assignment #27370
feat: team issue assignment #27370
Conversation
Size Change: +190 B (+0.02%) Total Size: 1.13 MB ℹ️ View Unchanged
|
migrations.AddConstraint( | ||
model_name="errortrackingissueassignment", | ||
constraint=models.UniqueConstraint(fields=("issue",), name="unique_per_issue"), | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of these constraints are causing the checks to fail due to table locking. Given this table is tiny right now it feels easier to override the check than go about writing the custom up / down SQL by hand cc @neilkakkar
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah i think will be fine 👍
self.assertEqual([x["id"] for x in results], [issue_id]) | ||
|
||
@snapshot_clickhouse_queries | ||
def test_user_group_assignee(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only actual new test in this file. Everything else is just a cleanup
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
Problem
Issues belong to teams not individuals sometimes. Let's add the concept of a team within error tracking and offer the ability to assign to more than one person
Changes
Decided to go with explicit
user
anderror_tracking_team
columns on the assignment model rather than something polymorphic / generic because of https://lukeplant.me.uk/blog/posts/avoid-django-genericforeignkey/