-
Notifications
You must be signed in to change notification settings - Fork 3k
[WEB-5537]refactor: rename IssueUserProperty to ProjectUserProperty and update related references #8206
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
base: preview
Are you sure you want to change the base?
[WEB-5537]refactor: rename IssueUserProperty to ProjectUserProperty and update related references #8206
Changes from all commits
6a09e51
e43d9b6
f75d40f
d874227
280c3ce
e7cf8fa
2f0ea09
ab9a6b4
d75efb3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,14 +26,15 @@ | |
| from plane.bgtasks.webhook_task import model_activity, webhook_activity | ||
| from plane.db.models import ( | ||
| DeployBoard, | ||
| ProjectUserProperty, | ||
| Intake, | ||
| IssueUserProperty, | ||
| Project, | ||
| ProjectIdentifier, | ||
| ProjectMember, | ||
| ProjectNetwork, | ||
| State, | ||
| DEFAULT_STATES, | ||
| UserFavorite, | ||
| Workspace, | ||
| WorkspaceMember, | ||
| ) | ||
|
|
@@ -255,7 +256,7 @@ def create(self, request, slug): | |
| role=ROLE.ADMIN.value, | ||
| ) | ||
| # Also create the issue property for the user | ||
| _ = IssueUserProperty.objects.create(project_id=serializer.data["id"], user=request.user) | ||
| _ = ProjectUserProperty.objects.create(project_id=serializer.data["id"], user=request.user) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: Duplicate ProjectUserProperty creation causes IntegrityErrorThe Additional Locations (1) |
||
|
|
||
| if serializer.data["project_lead"] is not None and str(serializer.data["project_lead"]) != str( | ||
| request.user.id | ||
|
|
@@ -265,11 +266,6 @@ def create(self, request, slug): | |
| member_id=serializer.data["project_lead"], | ||
| role=ROLE.ADMIN.value, | ||
| ) | ||
| # Also create the issue property for the user | ||
| IssueUserProperty.objects.create( | ||
| project_id=serializer.data["id"], | ||
| user_id=serializer.data["project_lead"], | ||
| ) | ||
|
|
||
| State.objects.bulk_create( | ||
| [ | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.