feat(itim): Depreciate Problem Ticket Endpoint

ref: #732 #564
This commit is contained in:
2025-04-26 07:37:24 +09:30
parent 8100030870
commit da13343b27
2 changed files with 7 additions and 0 deletions

View File

@ -14,6 +14,8 @@
- Depreciated Incident Ticket - 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. These endpoints still work and will remain so until the new Ticket and Ticket Comment Models are production ready.

View File

@ -19,6 +19,7 @@ from core.viewsets.ticket_depreciated import TicketViewSet
@extend_schema_view( @extend_schema_view(
create=extend_schema( create=extend_schema(
deprecated = True,
summary = 'Create a Problem Ticket', summary = 'Create a Problem Ticket',
description='', description='',
request = PolymorphicProxySerializer( request = PolymorphicProxySerializer(
@ -38,6 +39,7 @@ from core.viewsets.ticket_depreciated import TicketViewSet
} }
), ),
destroy = extend_schema( destroy = extend_schema(
deprecated = True,
summary = 'Delete a Problem Ticket', summary = 'Delete a Problem Ticket',
description = '', description = '',
responses = { responses = {
@ -46,6 +48,7 @@ from core.viewsets.ticket_depreciated import TicketViewSet
} }
), ),
list = extend_schema( list = extend_schema(
deprecated = True,
summary = 'Fetch all Problem Tickets', summary = 'Fetch all Problem Tickets',
description='', description='',
responses = { responses = {
@ -54,6 +57,7 @@ from core.viewsets.ticket_depreciated import TicketViewSet
} }
), ),
retrieve = extend_schema( retrieve = extend_schema(
deprecated = True,
summary = 'Fetch a Problem Ticket', summary = 'Fetch a Problem Ticket',
description='', description='',
responses = { responses = {
@ -63,6 +67,7 @@ from core.viewsets.ticket_depreciated import TicketViewSet
), ),
update = extend_schema(exclude = True), update = extend_schema(exclude = True),
partial_update = extend_schema( partial_update = extend_schema(
deprecated = True,
summary = 'Update a Problem Ticket', summary = 'Update a Problem Ticket',
description = '', description = '',
responses = { responses = {