Bugzilla – Attachment 181881 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
Bug-39816-Allow-embedding-latesincedays-in-baskets.patch (text/plain), 2.79 KB, created by
Tomás Cohen Arazi (tcohen)
on 2025-05-02 17:31:17 UTC
(
hide
)
Description:
Bug 39816: Allow embedding `late_since_days` in baskets
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2025-05-02 17:31:17 UTC
Size:
2.79 KB
patch
obsolete
>From d7de37d6a69bc8d4bebe43a7d8bea6fc2a1c0be5 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] 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. >--- > 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 2006079fd7a..af08323abd8 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 eab24251181..06f77d6bdc2 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 804fd9a4b23..5b87bf4cc3c 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.49.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 39816
:
181879
|
181880
|
181881
|
181882
|
182069
|
182070