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

feat: team issue assignment #27370

Merged
merged 52 commits into from
Jan 15, 2025
Merged

feat: team issue assignment #27370

merged 52 commits into from
Jan 15, 2025

Conversation

daibhin
Copy link
Contributor

@daibhin daibhin commented Jan 8, 2025

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

team-creation

Decided to go with explicit user and error_tracking_team columns on the assignment model rather than something polymorphic / generic because of https://lukeplant.me.uk/blog/posts/avoid-django-genericforeignkey/

Copy link
Contributor

github-actions bot commented Jan 9, 2025

Size Change: +190 B (+0.02%)

Total Size: 1.13 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 1.13 MB +190 B (+0.02%)

compressed-size-action

@daibhin daibhin requested a review from a team January 9, 2025 16:05
Comment on lines 83 to 86
migrations.AddConstraint(
model_name="errortrackingissueassignment",
constraint=models.UniqueConstraint(fields=("issue",), name="unique_per_issue"),
),
Copy link
Contributor Author

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

Copy link
Contributor

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):
Copy link
Contributor Author

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

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 2)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 2)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@daibhin daibhin merged commit ce75a87 into master Jan 15, 2025
99 checks passed
@daibhin daibhin deleted the dn-feat/team-assignment branch January 15, 2025 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants