Bugzilla – Attachment 182329 Details for
Bug 39816
Allow embedding `late_since_days`in baskets
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39816: Allow embedding `late_since_days` in baskets
0001-Bug-39816-Allow-embedding-late_since_days-in-baskets.patch (text/plain), 2.85 KB, created by
Emmi Takkinen
on 2025-05-13 06:38:59 UTC
(
hide
)
Description:
Bug 39816: Allow embedding `late_since_days` in baskets
Filename:
MIME Type:
Creator:
Emmi Takkinen
Created:
2025-05-13 06:38:59 UTC
Size:
2.85 KB
patch
obsolete
>From 6b3e7381c2ffc03227ca4028568413f4c7fbf32b Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 2 May 2025 14:15:12 -0300 >Subject: [PATCH 1/2] Bug 39816: Allow embedding `late_since_days` in baskets > >This patch adds the option to embed the return value of the >`late_since_days` method in basket objects in the REST API. > >It does so by just adding it to the list of embeds in the spec. It is >added in every place baskets can be returned. > >Signed-off-by: Emmi Takkinen <emmi.takkinen@koha-suomi.fi> >--- > api/v1/swagger/definitions/basket.yaml | 7 ++++++- > api/v1/swagger/paths/acquisitions_baskets.yaml | 10 ++++++++++ > api/v1/swagger/paths/acquisitions_orders.yaml | 2 ++ > 3 files changed, 18 insertions(+), 1 deletion(-) > >diff --git a/api/v1/swagger/definitions/basket.yaml b/api/v1/swagger/definitions/basket.yaml >index 2006079fd7..af08323abd 100644 >--- a/api/v1/swagger/definitions/basket.yaml >+++ b/api/v1/swagger/definitions/basket.yaml >@@ -84,4 +84,9 @@ properties: > - null > description: "When items should be created for orders in this basket (Options: > 'ordering', 'receiving', 'cataloguing'. Null means system wide config)" >-additionalProperties: false >\ No newline at end of file >+ late_since_days: >+ type: >+ - integer >+ - "null" >+ description: The number of days the basket is late (x-koha-embed) >+additionalProperties: false >diff --git a/api/v1/swagger/paths/acquisitions_baskets.yaml b/api/v1/swagger/paths/acquisitions_baskets.yaml >index eab2425118..06f77d6bdc 100644 >--- a/api/v1/swagger/paths/acquisitions_baskets.yaml >+++ b/api/v1/swagger/paths/acquisitions_baskets.yaml >@@ -14,6 +14,16 @@ > - $ref: "../swagger.yaml#/parameters/per_page" > - $ref: "../swagger.yaml#/parameters/q_param" > - $ref: "../swagger.yaml#/parameters/q_body" >+ - name: x-koha-embed >+ in: header >+ required: false >+ description: Embed list sent as a request header >+ type: array >+ items: >+ type: string >+ enum: >+ - late_since_days >+ collectionFormat: csv > produces: > - application/json > responses: >diff --git a/api/v1/swagger/paths/acquisitions_orders.yaml b/api/v1/swagger/paths/acquisitions_orders.yaml >index 804fd9a4b2..5b87bf4cc3 100644 >--- a/api/v1/swagger/paths/acquisitions_orders.yaml >+++ b/api/v1/swagger/paths/acquisitions_orders.yaml >@@ -53,6 +53,7 @@ > - basket > - basket.basket_group > - basket.creator >+ - basket.late_since_days > - biblio > - biblio.uncancelled_orders+count > - biblio.holds+count >@@ -180,6 +181,7 @@ > - basket > - basket.basket_group > - basket.creator >+ - basket.late_since_days > - biblio > - biblio.uncancelled_orders+count > - biblio.holds+count >-- >2.34.1 >
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 39816
:
181879
|
181880
|
181881
|
181882
|
182069
|
182070
| 182329 |
182330