Bug 35758

Summary: Background jobs should not log personal data apart from borrowernumber
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: dcook, jonathan.druart, michaela.sieber
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 30889    
Bug Blocks:    

Description Katrin Fischer 2024-01-10 13:19:20 UTC
When looking at the background_jobs table the column context contains a lot of personal information that is not necessary for the purpose of this table:

* firstname
* surname
* email address

This makes it hard to share data for debugging. It's also end user information, not only staff accounts. 

Example: If the library is using Elasticsearch, renewing items in the OPAC will create a reindex job entry for each biblionumber. This will be logged with the context of the patron.

There is no reason to duplicate this data into the context table, we can save space and avoid headaches by removing this information.