Bugzilla – Attachment 163484 Details for
Bug 35616
Add a 'source' field to Koha::Tickets to denote the path taken to report the ticket
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35616: API specification update
Bug-35616-API-specification-update.patch (text/plain), 2.84 KB, created by
Victor Grousset/tuxayo
on 2024-03-20 01:53:51 UTC
(
hide
)
Description:
Bug 35616: API specification update
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2024-03-20 01:53:51 UTC
Size:
2.84 KB
patch
obsolete
>From d41772cdeae6b265d1e804eb097465de1bc597e0 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 20 Dec 2023 14:47:08 +0000 >Subject: [PATCH] Bug 35616: API specification update > >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > api/v1/swagger/definitions/ticket.yaml | 5 +++++ > t/db_dependent/api/v1/tickets.t | 6 ++++++ > 2 files changed, 11 insertions(+) > >diff --git a/api/v1/swagger/definitions/ticket.yaml b/api/v1/swagger/definitions/ticket.yaml >index 57e4cfd54d..5ca2671cbb 100644 >--- a/api/v1/swagger/definitions/ticket.yaml >+++ b/api/v1/swagger/definitions/ticket.yaml >@@ -5,6 +5,10 @@ properties: > type: integer > description: Internal ticket identifier > readOnly: true >+ source: >+ type: string >+ enum: >+ - catalog > reported_date: > type: > - string >@@ -60,5 +64,6 @@ properties: > description: Number of updates > additionalProperties: false > required: >+ - source > - title > - body >diff --git a/t/db_dependent/api/v1/tickets.t b/t/db_dependent/api/v1/tickets.t >index 788d32a252..9cfebde702 100755 >--- a/t/db_dependent/api/v1/tickets.t >+++ b/t/db_dependent/api/v1/tickets.t >@@ -172,6 +172,7 @@ subtest 'add() tests' => sub { > > my $biblio = $builder->build_sample_biblio(); > my $ticket = { >+ source => 'catalog', > biblio_id => $biblio->id, > title => "Test ticket", > body => "Test ticket details", >@@ -185,6 +186,7 @@ subtest 'add() tests' => sub { > # Authorized attempt to write invalid data > my $ticket_with_invalid_field = { > blah => "Something wrong", >+ source => 'catalog', > biblio_id => $biblio->id, > title => "Test ticket", > body => "Test ticket details", >@@ -230,6 +232,7 @@ subtest 'add() tests' => sub { > > # Authorized attempt to write missing data > my $ticket_with_missing_field = { >+ source => 'catalog', > biblio_id => $biblio->id, > body => "Test ticket details", > }; >@@ -282,6 +285,7 @@ subtest 'update() tests' => sub { > > # Attempt partial update on a PUT > my $ticket_with_missing_field = { >+ source => 'catalog', > body => "Test ticket details", > }; > >@@ -292,6 +296,7 @@ subtest 'update() tests' => sub { > > # Full object update on PUT > my $ticket_with_updated_field = { >+ source => 'catalog', > title => "Test ticket update", > body => "Test ticket update details", > }; >@@ -303,6 +308,7 @@ subtest 'update() tests' => sub { > # Authorized attempt to write invalid data > my $ticket_with_invalid_field = { > blah => "Ticket Blah", >+ source => 'catalog', > title => "Test ticket update", > body => "Test ticket update details", > }; >-- >2.44.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35616
:
160118
|
160119
|
160120
|
160121
|
160127
|
160128
|
160129
|
160130
|
160143
|
160144
|
160145
|
160146
|
160164
|
160165
|
160166
|
160167
|
163482
|
163483
| 163484 |
163485
|
163486