fix: removed the unused triage state (#6337)
This commit is contained in:
parent
5b96c970cd
commit
70dacc5e6a
3 changed files with 0 additions and 30 deletions
|
|
@ -288,16 +288,6 @@ class ProjectAPIEndpoint(BaseAPIView):
|
||||||
is_default=True,
|
is_default=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Create the triage state in Backlog group
|
|
||||||
State.objects.get_or_create(
|
|
||||||
name="Triage",
|
|
||||||
group="triage",
|
|
||||||
description="Default state for managing all Intake Issues",
|
|
||||||
project_id=pk,
|
|
||||||
color="#ff7700",
|
|
||||||
is_triage=True,
|
|
||||||
)
|
|
||||||
|
|
||||||
project = self.get_queryset().filter(pk=serializer.data["id"]).first()
|
project = self.get_queryset().filter(pk=serializer.data["id"]).first()
|
||||||
|
|
||||||
model_activity.delay(
|
model_activity.delay(
|
||||||
|
|
|
||||||
|
|
@ -416,16 +416,6 @@ class ProjectViewSet(BaseViewSet):
|
||||||
is_default=True,
|
is_default=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Create the triage state in Backlog group
|
|
||||||
State.objects.get_or_create(
|
|
||||||
name="Triage",
|
|
||||||
group="triage",
|
|
||||||
description="Default state for managing all Intake Issues",
|
|
||||||
project_id=pk,
|
|
||||||
color="#ff7700",
|
|
||||||
is_triage=True,
|
|
||||||
)
|
|
||||||
|
|
||||||
project = self.get_queryset().filter(pk=serializer.data["id"]).first()
|
project = self.get_queryset().filter(pk=serializer.data["id"]).first()
|
||||||
|
|
||||||
model_activity.delay(
|
model_activity.delay(
|
||||||
|
|
|
||||||
|
|
@ -130,15 +130,6 @@ class IntakeIssuePublicViewSet(BaseViewSet):
|
||||||
{"error": "Invalid priority"}, status=status.HTTP_400_BAD_REQUEST
|
{"error": "Invalid priority"}, status=status.HTTP_400_BAD_REQUEST
|
||||||
)
|
)
|
||||||
|
|
||||||
# Create or get state
|
|
||||||
state, _ = State.objects.get_or_create(
|
|
||||||
name="Triage",
|
|
||||||
group="backlog",
|
|
||||||
description="Default state for managing all Intake Issues",
|
|
||||||
project_id=project_deploy_board.project_id,
|
|
||||||
color="#ff7700",
|
|
||||||
)
|
|
||||||
|
|
||||||
# create an issue
|
# create an issue
|
||||||
issue = Issue.objects.create(
|
issue = Issue.objects.create(
|
||||||
name=request.data.get("issue", {}).get("name"),
|
name=request.data.get("issue", {}).get("name"),
|
||||||
|
|
@ -148,7 +139,6 @@ class IntakeIssuePublicViewSet(BaseViewSet):
|
||||||
),
|
),
|
||||||
priority=request.data.get("issue", {}).get("priority", "low"),
|
priority=request.data.get("issue", {}).get("priority", "low"),
|
||||||
project_id=project_deploy_board.project_id,
|
project_id=project_deploy_board.project_id,
|
||||||
state=state,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Create an Issue Activity
|
# Create an Issue Activity
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue