Bug 28842 - Missing summary for /items/:item_id/pickup_locations
Summary: Missing summary for /items/:item_id/pickup_locations
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: REST API (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor
Assignee: Tomás Cohen Arazi (tcohen)
QA Contact: Martin Renvoize (ashimema)
URL: https://api.koha-community.org/#opera...
Keywords:
Depends on: 27931 28461
Blocks:
  Show dependency treegraph
 
Reported: 2021-08-11 11:56 UTC by Tomás Cohen Arazi (tcohen)
Modified: 2022-12-12 21:24 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
21.11.00
Circulation function:


Attachments
Bug 28842: A summary to the /items/:item_id/pickup_locations route (1.10 KB, patch)
2021-08-11 12:09 UTC, Tomás Cohen Arazi (tcohen)
Details | Diff | Splinter Review
Bug 28842: A summary to the /items/:item_id/pickup_locations route (1.14 KB, patch)
2021-08-12 11:37 UTC, David Nind
Details | Diff | Splinter Review
Bug 28842: A summary to the /items/:item_id/pickup_locations route (1.21 KB, patch)
2021-08-13 12:46 UTC, Martin Renvoize (ashimema)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Tomás Cohen Arazi (tcohen) 2021-08-11 11:56:49 UTC
Bug 27931 introduced /items/:item_id/pickup_locations but missed to add the route summary and the top level display title for the 'pickup_locations' tag.
Comment 1 Tomás Cohen Arazi (tcohen) 2021-08-11 12:09:07 UTC
Created attachment 123787 [details] [review]
Bug 28842: A summary to the /items/:item_id/pickup_locations route

This patch simply adds a summary to the route. This will be picked by
the API docs.

It also removes the 'pickup_locations' tag, as we did in bug 28461.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Comment 2 David Nind 2021-08-12 11:37:48 UTC
Created attachment 123810 [details] [review]
Bug 28842: A summary to the /items/:item_id/pickup_locations route

This patch simply adds a summary to the route. This will be picked by
the API docs.

It also removes the 'pickup_locations' tag, as we did in bug 28461.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: David Nind <david@davidnind.com>
Comment 3 David Nind 2021-08-12 11:39:41 UTC
Testing notes (koha-testing-docker):

1. Enable RESTPublicAPI system preference.
2. Go to http://127.0.0.1:8080/api/v1/.html
3. Search for getItemPickupLocations
4. Text immediately after should say "This resource is not documented."
5. Apply the patch, flush_memcached, restart_all.
6. Refresh the page.
7. The text should now say "Get valid pickup locations for an item"
Comment 4 Martin Renvoize (ashimema) 2021-08-13 12:46:11 UTC
Created attachment 123824 [details] [review]
Bug 28842: A summary to the /items/:item_id/pickup_locations route

This patch simply adds a summary to the route. This will be picked by
the API docs.

It also removes the 'pickup_locations' tag, as we did in bug 28461.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 5 Martin Renvoize (ashimema) 2021-08-13 12:46:48 UTC
Nice fix, no typos or spelling issues.

Passing QA
Comment 6 Jonathan Druart 2021-08-16 10:05:25 UTC
Pushed to master for 21.11, thanks to everybody involved!
Comment 7 Tomás Cohen Arazi (tcohen) 2021-08-31 17:54:57 UTC
Please backport to 21.05.