Bug 25043 - Use of union in Koha::Objects
Summary: Use of union in Koha::Objects
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-02 13:44 UTC by Jonathan Druart
Modified: 2024-01-06 16:58 UTC (History)
1 user (show)

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


Attachments
Bug 25043: Play with union (1.72 KB, patch)
2020-04-02 13:46 UTC, Jonathan Druart
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Druart 2020-04-02 13:44:37 UTC

    
Comment 1 Jonathan Druart 2020-04-02 13:46:26 UTC
Created attachment 102296 [details] [review]
Bug 25043: Play with union
Comment 2 Jonathan Druart 2020-04-02 13:46:43 UTC
That will be hard to implement for our Koha::Objects
Comment 3 Tomás Cohen Arazi 2020-04-02 14:22:19 UTC
(In reply to Jonathan Druart from comment #2)
> That will be hard to implement for our Koha::Objects

Speaking about the API use of this to circumvent the current DB issues, I think we can use an approach like this on the (very) few cases in which we have old* tables that might be requested to be included in the resultset.

So maybe is not a question of making it a core feature in Koha, but just using in the controllers to compose the result to be sent on the request response.
Comment 4 Jonathan Druart 2020-04-02 14:28:40 UTC
But I am afraid we won't be able to use object.search
Comment 5 Tomás Cohen Arazi 2020-04-02 14:29:35 UTC
(In reply to Jonathan Druart from comment #4)
> But I am afraid we won't be able to use object.search

All the pieces used in objects.search can be used, manually, on the controller method, so that's not a problem.
Comment 6 Katrin Fischer 2024-01-06 16:58:10 UTC
Still valid?