Koha-clms/t
Stefan Berndtsson af6f6331c4
Bug 26744: Log changes to extended patron attributes
Log non-repeatable attributes and only log changes and creations, not deletions.
When changed, attributes are first all deleted, then the relevant ones are recreated.
This patch catches all deletions, and checks against them in the creation phase, logging
only the attributes that have changed (with before/after content). This makes it impossible
to log actual deletions.

To test:

1) Ensure tests in  t/db_dependent/Koha/Patron/Attribute.t passes

Sponsored-by: Gothenburg University Library
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Clemens Tubach <clemens.tubach@kit.edu>
Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2025-03-10 11:42:31 +01:00
..
Acquisition Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Biblio Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Budgets Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Circulation Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
External Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Koha Bug 38488: Add Template::Toolkit filter for C4::Scrubber 2025-03-06 13:54:45 +01:00
Number Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
SIP Bug 37816: (QA follow-up) Avoid repetition, typo and pipe test 2025-03-06 13:54:40 +01:00
Search Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Serials Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Template Bug 33030: Add unit tests 2023-07-14 16:52:06 -03:00
Test Bug 38818: Unit tests 2025-02-20 17:34:52 +01:00
cypress Bug 37222: Standardize markup for sidebar menus 2025-02-21 16:41:24 +01:00
data Bug 31393: Koha::Config: handle the special case for 'content' attribute 2023-10-30 09:02:17 -03:00
db_dependent Bug 26744: Log changes to extended patron attributes 2025-03-10 11:42:31 +01:00
edi_testfiles Bug 38689: Improve test coverage 2025-02-21 16:41:23 +01:00
etc Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
lib Bug 36081: Force TestBuilder to generate a valid format value 2025-03-06 13:54:37 +01:00
mock_templates/intranet-tmpl/prog Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
00-check-atomic-updates.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
00-deprecated.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
00-load.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
00-merge-conflict-markers.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
00-testcritic.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
00-valid-xml.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Auth.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
AuthoritiesMarc_MARC21.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
AuthoritiesMarc_UNIMARC.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Barcodes_EAN13.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Barcodes_annual.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Barcodes_hbyymmincr.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Barcodes_incremental.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Biblio.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Biblio2.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Budgets.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Charset.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Circulation_barcodedecode.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
ClassSortRoutine.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
ClassSortRoutine_Dewey.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
ClassSortRoutine_Generic.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
ClassSortRoutine_LCC.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
ClassSource.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Context.t Bug 36081: Use multivalue_preference 2025-03-06 13:54:36 +01:00
Contract.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
CookieManager.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Creators.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
DateUtils.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
EdiInvoice.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Edifact.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Ediorder.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Ediordrsp.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Form_MessagingPreferences.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
HtmlTags.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
ImportBatch.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Installer_PerlModules.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
ItemCirculationAlertPreference.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Koha_MetadataRecord.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Koha_SearchEngine_Elasticsearch_Browse.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Koha_Template_Plugin_HtmlId.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Koha_Template_Plugin_Koha.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Koha_Util_FrameworkPlugin.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Koha_Util_MARC.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Koha_XSLT_HTTPS.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Labels.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Labels_split_Regex.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Labels_split_ccn.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Labels_split_ddcn.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Labels_split_lccn.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Languages.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Logger.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Makefile.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Members_Messaging.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
OpenLibrarySearch.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Output.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Output_JSONStream.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Patroncards.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Patroncards_Batch.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Patroncards_Lib.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Patroncards_Patroncard.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Patroncards_Profile.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Patroncards_Template.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
RecordProcessor.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Ris.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
SMS.t Bug 36307: SMS::Send driver errors are not captured and stored 2024-04-05 17:39:46 +02:00
Scheduler.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Scrubber.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Search.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Search_PazPar2.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
SimpleMARC.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
SuggestionEngine.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
SuggestionEngine_AuthorityFile.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
TmplToken.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Token.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
dummy.t
…
template_filters.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
timezones.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00