[SILO-598] fix: Fixed bugs identified while testing SDK (#8042)

This commit is contained in:
Dheeraj Kumar Ketireddy 2025-10-31 19:53:22 +05:30 committed by GitHub
parent 961cdf6c8f
commit bfea2c8572
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 25 deletions

View file

@ -44,24 +44,7 @@ class IntakeIssueCreateSerializer(BaseSerializer):
class Meta: class Meta:
model = IntakeIssue model = IntakeIssue
fields = [ fields = ["issue"]
"issue",
"intake",
"status",
"snoozed_till",
"duplicate_to",
"source",
"source_email",
]
read_only_fields = [
"id",
"workspace",
"project",
"created_by",
"updated_by",
"created_at",
"updated_at",
]
class IntakeIssueSerializer(BaseSerializer): class IntakeIssueSerializer(BaseSerializer):

View file

@ -46,7 +46,7 @@ urlpatterns = [
name="cycle-archive-unarchive", name="cycle-archive-unarchive",
), ),
path( 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"]), CycleArchiveUnarchiveAPIEndpoint.as_view(http_method_names=["delete"]),
name="cycle-archive-unarchive", name="cycle-archive-unarchive",
), ),

View file

@ -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( .annotate(
completed_estimates=Sum( completed_estimates=Sum(
"issue_cycle__issue__estimate_point", "issue_cycle__issue__estimate_point__key",
filter=Q( filter=Q(
issue_cycle__issue__state__group="completed", issue_cycle__issue__state__group="completed",
issue_cycle__issue__archived_at__isnull=True, issue_cycle__issue__archived_at__isnull=True,
@ -727,7 +727,7 @@ class CycleArchiveUnarchiveAPIEndpoint(BaseAPIView):
) )
.annotate( .annotate(
started_estimates=Sum( started_estimates=Sum(
"issue_cycle__issue__estimate_point", "issue_cycle__issue__estimate_point__key",
filter=Q( filter=Q(
issue_cycle__issue__state__group="started", issue_cycle__issue__state__group="started",
issue_cycle__issue__archived_at__isnull=True, issue_cycle__issue__archived_at__isnull=True,
@ -867,7 +867,7 @@ class CycleIssueListCreateAPIEndpoint(BaseAPIView):
request={}, request={},
responses={ responses={
200: create_paginated_response( 200: create_paginated_response(
CycleIssueSerializer, IssueSerializer,
"PaginatedCycleIssueResponse", "PaginatedCycleIssueResponse",
"Paginated list of cycle work items", "Paginated list of cycle work items",
"Paginated Cycle Work Items", "Paginated Cycle Work Items",

View file

@ -1024,7 +1024,7 @@ class ModuleArchiveUnarchiveAPIEndpoint(BaseAPIView):
], ],
request={}, request={},
responses={ responses={
204: ARCHIVED_RESPONSE, 204: None,
400: CANNOT_ARCHIVE_RESPONSE, 400: CANNOT_ARCHIVE_RESPONSE,
404: MODULE_NOT_FOUND_RESPONSE, 404: MODULE_NOT_FOUND_RESPONSE,
}, },
@ -1059,7 +1059,7 @@ class ModuleArchiveUnarchiveAPIEndpoint(BaseAPIView):
MODULE_PK_PARAMETER, MODULE_PK_PARAMETER,
], ],
responses={ responses={
204: UNARCHIVED_RESPONSE, 204: None,
404: MODULE_NOT_FOUND_RESPONSE, 404: MODULE_NOT_FOUND_RESPONSE,
}, },
) )