[SILO-598] fix: Fixed bugs identified while testing SDK (#8042)
This commit is contained in:
parent
961cdf6c8f
commit
bfea2c8572
4 changed files with 8 additions and 25 deletions
|
|
@ -44,24 +44,7 @@ class IntakeIssueCreateSerializer(BaseSerializer):
|
|||
|
||||
class Meta:
|
||||
model = IntakeIssue
|
||||
fields = [
|
||||
"issue",
|
||||
"intake",
|
||||
"status",
|
||||
"snoozed_till",
|
||||
"duplicate_to",
|
||||
"source",
|
||||
"source_email",
|
||||
]
|
||||
read_only_fields = [
|
||||
"id",
|
||||
"workspace",
|
||||
"project",
|
||||
"created_by",
|
||||
"updated_by",
|
||||
"created_at",
|
||||
"updated_at",
|
||||
]
|
||||
fields = ["issue"]
|
||||
|
||||
|
||||
class IntakeIssueSerializer(BaseSerializer):
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ urlpatterns = [
|
|||
name="cycle-archive-unarchive",
|
||||
),
|
||||
path(
|
||||
"workspaces/<str:slug>/projects/<uuid:project_id>/archived-cycles/<uuid:pk>/unarchive/",
|
||||
"workspaces/<str:slug>/projects/<uuid:project_id>/archived-cycles/<uuid:cycle_id>/unarchive/",
|
||||
CycleArchiveUnarchiveAPIEndpoint.as_view(http_method_names=["delete"]),
|
||||
name="cycle-archive-unarchive",
|
||||
),
|
||||
|
|
|
|||
|
|
@ -713,10 +713,10 @@ class CycleArchiveUnarchiveAPIEndpoint(BaseAPIView):
|
|||
),
|
||||
)
|
||||
)
|
||||
.annotate(total_estimates=Sum("issue_cycle__issue__estimate_point"))
|
||||
.annotate(total_estimates=Sum("issue_cycle__issue__estimate_point__key"))
|
||||
.annotate(
|
||||
completed_estimates=Sum(
|
||||
"issue_cycle__issue__estimate_point",
|
||||
"issue_cycle__issue__estimate_point__key",
|
||||
filter=Q(
|
||||
issue_cycle__issue__state__group="completed",
|
||||
issue_cycle__issue__archived_at__isnull=True,
|
||||
|
|
@ -727,7 +727,7 @@ class CycleArchiveUnarchiveAPIEndpoint(BaseAPIView):
|
|||
)
|
||||
.annotate(
|
||||
started_estimates=Sum(
|
||||
"issue_cycle__issue__estimate_point",
|
||||
"issue_cycle__issue__estimate_point__key",
|
||||
filter=Q(
|
||||
issue_cycle__issue__state__group="started",
|
||||
issue_cycle__issue__archived_at__isnull=True,
|
||||
|
|
@ -867,7 +867,7 @@ class CycleIssueListCreateAPIEndpoint(BaseAPIView):
|
|||
request={},
|
||||
responses={
|
||||
200: create_paginated_response(
|
||||
CycleIssueSerializer,
|
||||
IssueSerializer,
|
||||
"PaginatedCycleIssueResponse",
|
||||
"Paginated list of cycle work items",
|
||||
"Paginated Cycle Work Items",
|
||||
|
|
|
|||
|
|
@ -1024,7 +1024,7 @@ class ModuleArchiveUnarchiveAPIEndpoint(BaseAPIView):
|
|||
],
|
||||
request={},
|
||||
responses={
|
||||
204: ARCHIVED_RESPONSE,
|
||||
204: None,
|
||||
400: CANNOT_ARCHIVE_RESPONSE,
|
||||
404: MODULE_NOT_FOUND_RESPONSE,
|
||||
},
|
||||
|
|
@ -1059,7 +1059,7 @@ class ModuleArchiveUnarchiveAPIEndpoint(BaseAPIView):
|
|||
MODULE_PK_PARAMETER,
|
||||
],
|
||||
responses={
|
||||
204: UNARCHIVED_RESPONSE,
|
||||
204: None,
|
||||
404: MODULE_NOT_FOUND_RESPONSE,
|
||||
},
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue