[Koha-bugs] [Bug 20028] Export all patron related personal data in one package

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Feb 20 03:05:25 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20028

--- Comment #32 from Lari Taskula <lari.taskula at hypernova.fi> ---
Added four patches containing a very basic functionality for exporting patron
related data. It iterates DBIx Borrower relationships and returns a huge
hashref in the following format:

>{
>  "Accountline": [
>    { "accountline_id": 1, "borrowernumber": 1481, ... },
>    { "accountline_id": 2, "borrowernumber": 1481, ... }
>  ],
>  "Borrower": { "borrowernumber": 1481, "firstname": "Export", ... },
>  ...,
>  "Virtualshelve": [
>    { "shelfnumber": 1, "owner": 1481, ... },
>    { "shelfnumber": 2, "owner": 1481, ... }
>  ]
>}

Returns the same thing from REST API, from these two endpoints:

GET /api/v1/patrons/123/export        (privileged)
GET /api/v1/public/patrons/123/export (unprivileged)

So it does not yet follow our terminology rules nor add any pagination.

Anyway, thoughts about the DBIx relationship approach?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list