From da13343b2773ad0eb2a838543fae3ca0f1246b93 Mon Sep 17 00:00:00 2001 From: Jon Date: Sat, 26 Apr 2025 07:37:24 +0930 Subject: [PATCH] feat(itim): Depreciate Problem Ticket Endpoint ref: #732 #564 --- Release-Notes.md | 2 ++ app/itim/viewsets/problem.py | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/Release-Notes.md b/Release-Notes.md index 20c05aa3..860a65a3 100644 --- a/Release-Notes.md +++ b/Release-Notes.md @@ -14,6 +14,8 @@ - Depreciated Incident Ticket + - Depreciated Problem Ticket + These endpoints still work and will remain so until the new Ticket and Ticket Comment Models are production ready. diff --git a/app/itim/viewsets/problem.py b/app/itim/viewsets/problem.py index 7e1ec416..bcfea554 100644 --- a/app/itim/viewsets/problem.py +++ b/app/itim/viewsets/problem.py @@ -19,6 +19,7 @@ from core.viewsets.ticket_depreciated import TicketViewSet @extend_schema_view( create=extend_schema( + deprecated = True, summary = 'Create a Problem Ticket', description='', request = PolymorphicProxySerializer( @@ -38,6 +39,7 @@ from core.viewsets.ticket_depreciated import TicketViewSet } ), destroy = extend_schema( + deprecated = True, summary = 'Delete a Problem Ticket', description = '', responses = { @@ -46,6 +48,7 @@ from core.viewsets.ticket_depreciated import TicketViewSet } ), list = extend_schema( + deprecated = True, summary = 'Fetch all Problem Tickets', description='', responses = { @@ -54,6 +57,7 @@ from core.viewsets.ticket_depreciated import TicketViewSet } ), retrieve = extend_schema( + deprecated = True, summary = 'Fetch a Problem Ticket', description='', responses = { @@ -63,6 +67,7 @@ from core.viewsets.ticket_depreciated import TicketViewSet ), update = extend_schema(exclude = True), partial_update = extend_schema( + deprecated = True, summary = 'Update a Problem Ticket', description = '', responses = {