mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
Compare commits
2 Commits
fix/editor
...
chore/publ
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
08d15bae1b | ||
|
|
c671fab18a |
@@ -244,9 +244,14 @@ def update_json_row(rows, row):
|
|||||||
)
|
)
|
||||||
assignee, label = row["Assignee"], row["Labels"]
|
assignee, label = row["Assignee"], row["Labels"]
|
||||||
|
|
||||||
if assignee is not None and assignee not in existing_assignees:
|
|
||||||
|
# if assignee is not None and assignee not in existing_assignees:
|
||||||
|
if assignee is not None and (
|
||||||
|
existing_assignees is None or label not in existing_assignees
|
||||||
|
):
|
||||||
rows[matched_index]["Assignee"] += f", {assignee}"
|
rows[matched_index]["Assignee"] += f", {assignee}"
|
||||||
if label is not None and label not in existing_labels:
|
# if label is not None and label not in existing_labels:
|
||||||
|
if label is not None and (existing_labels is None or label not in existing_labels):
|
||||||
rows[matched_index]["Labels"] += f", {label}"
|
rows[matched_index]["Labels"] += f", {label}"
|
||||||
else:
|
else:
|
||||||
rows.append(row)
|
rows.append(row)
|
||||||
@@ -266,9 +271,12 @@ def update_table_row(rows, row):
|
|||||||
existing_assignees, existing_labels = rows[matched_index][7:9]
|
existing_assignees, existing_labels = rows[matched_index][7:9]
|
||||||
assignee, label = row[7:9]
|
assignee, label = row[7:9]
|
||||||
|
|
||||||
if assignee is not None and assignee not in existing_assignees:
|
|
||||||
rows[matched_index][7] += f", {assignee}"
|
if assignee is not None and (
|
||||||
if label is not None and label not in existing_labels:
|
existing_assignees is None or label not in existing_assignees
|
||||||
|
):
|
||||||
|
rows[matched_index][8] += f", {assignee}"
|
||||||
|
if label is not None and (existing_labels is None or label not in existing_labels):
|
||||||
rows[matched_index][8] += f", {label}"
|
rows[matched_index][8] += f", {label}"
|
||||||
else:
|
else:
|
||||||
rows.append(row)
|
rows.append(row)
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ from plane.db.models import (
|
|||||||
IssueVote,
|
IssueVote,
|
||||||
ProjectPublicMember,
|
ProjectPublicMember,
|
||||||
IssueAttachment,
|
IssueAttachment,
|
||||||
|
Project,
|
||||||
)
|
)
|
||||||
from plane.bgtasks.issue_activities_task import issue_activity
|
from plane.bgtasks.issue_activities_task import issue_activity
|
||||||
from plane.utils.issue_filters import issue_filters
|
from plane.utils.issue_filters import issue_filters
|
||||||
@@ -77,6 +78,15 @@ class ProjectIssuesPublicEndpoint(BaseAPIView):
|
|||||||
deploy_board = DeployBoard.objects.filter(
|
deploy_board = DeployBoard.objects.filter(
|
||||||
anchor=anchor, entity_name="project"
|
anchor=anchor, entity_name="project"
|
||||||
).first()
|
).first()
|
||||||
|
|
||||||
|
project = Project.objects.get(pk=deploy_board.project_id)
|
||||||
|
|
||||||
|
if project.archived_at:
|
||||||
|
return Response(
|
||||||
|
{"error": "Project is archived"},
|
||||||
|
status=status.HTTP_404_NOT_FOUND,
|
||||||
|
)
|
||||||
|
|
||||||
if not deploy_board:
|
if not deploy_board:
|
||||||
return Response(
|
return Response(
|
||||||
{"error": "Project is not published"},
|
{"error": "Project is not published"},
|
||||||
|
|||||||
Reference in New Issue
Block a user