Koha-clms/t/db_dependent
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
Auth Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
AuthoritiesMarc Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Authority 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
CourseReserves Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Creators Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Exporter Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Holds Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
HoldsQueue Bug 35826: Add unit tests. 2024-04-26 18:06:18 +02:00
Items Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Koha Bug 26744: Log changes to extended patron attributes 2025-03-10 11:42:31 +01:00
LDAP Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Labels Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Letters Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Members Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
OAI Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Patron Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Record Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Reports Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Reserves Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
SIP Bug 36431: Unit tests 2025-03-07 18:02:59 +01:00
Search Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Serials Bug 38829: Add a test 2025-03-06 13:54:46 +01:00
Template/Plugin Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Utils Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
api/v1 Bug 28907: REST - Remove allow-owner from public article requests cancel route 2025-03-06 13:54:33 +01:00
cronjobs Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
data Bug 35418: Add TR_B2 tests 2023-11-29 17:36:11 -03:00
misc/translator Bug 38664: Revert changse made to t/db_dependent/misc/translator/sample.tt 2025-02-11 22:31:27 +01:00
mojo Bug 36598: (QA follow-up): tidy up code 2024-10-18 12:07:50 +02:00
selenium Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
www Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
00-strict.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Accounts.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Acquisition.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Amazon.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
ArticleRequests.t Bug 36081: (QA follow-up) Resolve IsNotDebit exception in ArticleRequests.t 2025-03-06 13:54:39 +01:00
AudioAlerts.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Auth.t Bug 38664: Fix some tests 2025-02-11 14:58:26 +01:00
AuthUtils.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Auth_with_cas.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Auth_with_ldap.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Auth_with_shibboleth.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
AuthorisedValues.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
AuthoritiesMarc.t Bug 30888: Unit tests 2025-02-21 10:41:46 +01:00
AuthoritiesMarc_GetTagsLabels.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Barcodes.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Barcodes_ValueBuilder.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
Biblio_holdsqueue.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Breeding.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Breeding_Auth.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
Cache.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Calendar.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.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Circulation_holdsqueue.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
ClassSources.t Bug 37870: Run tests from ClassSources.t within transactions 2024-09-12 13:52:35 +02:00
Clubs.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Context.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Contract.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
CourseReserves.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
DecreaseLoanHighHolds.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Filter_MARC_ViewPolicy.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Fines.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
FrameworkPlugin.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Heading.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Heading_MARC21.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Hold.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Holds.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
HoldsQueue.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Holidays.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
ILSDI_Services.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
ImportExportFramework.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Installer.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Items.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Koha.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Koha_Database.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Koha_Elasticsearch.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Koha_ExternalContent_OverDrive.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Koha_MetadataRecord_Authority.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Koha_Misc_Files.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Languages.t Bug 38903: Fix theme in some getTranslatedLanguages calls 2025-03-07 15:41:13 +01:00
Letters.t Bug 38474: Prevent Letters.t to fail on slow server 2025-02-13 15:31:00 +01:00
LibraryGroups.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Linker_Default.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Linker_FirstMatch.t Bug 26684: Remove marc from auth_header for new installs 2025-02-21 10:41:41 +01:00
Log.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
MarcModificationTemplates.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Matcher.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Members.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Message.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
MungeMarcPrice.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Overdues.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Passwordrecovery.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
PatronLists.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Patroncards.t Bug 37898: Wrap Patroncards.t inside a transaction 2024-09-19 12:50:20 +01:00
Patrons.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Prices.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Record.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
RecordProcessor_EmbedSeeFromHeadings.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Reports.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Reserves.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
RotatingCollections.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
Serials.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Serials_2.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Service.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
ShelfBrowser.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Sitemapper.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
SocialData.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
StockRotationItems.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
StockRotationRotas.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
StockRotationStages.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
SuggestionEngine_ExplodedTerms.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Suggestions.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
TablesSettings.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Tags.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Templates.t Bug 38467: (follow-up) Fix test 2025-03-06 13:54:43 +01:00
TestBuilder.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Upload.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
UsageStats.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
Virtualshelves.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
XISBN.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
XSLT.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
check_kohastructure.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
check_sysprefs.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
db_structure.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
rollingloans.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
sysprefs.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
yaml.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
zebra_config.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00