Description
Martin Renvoize
2023-11-30 11:00:02 UTC
Created attachment 159390 [details] [review] Bug 35451: Add record_table to additional_field_values This patch updates the database to include a record_table field in the additional_field_values table and adds an index on that field. This should facilitate more performant joins. Created attachment 159391 [details] [review] Bug 35451: Record table in set_additional_fields Created attachment 159392 [details] [review] Bug 35451: Update relations Created attachment 159393 [details] [review] Bug 35451: Schema Created attachment 159394 [details] [review] Bug 35451: Fix test data Needs unit tests adding, but posting here as a proof of concept for now looking for feedback. Created attachment 159747 [details] [review] Bug 35451: Add record_table to additional_field_values This patch updates the database to include a record_table field in the additional_field_values table and adds an index on that field. This should facilitate more performant joins. Created attachment 159748 [details] [review] Bug 35451: Record table in set_additional_fields Created attachment 159749 [details] [review] Bug 35451: Update relations Created attachment 159750 [details] [review] Bug 35451: Schema Created attachment 159751 [details] [review] Bug 35451: Fix test data Is there a test plan for this? I get this message for a dependency when trying to apply the patches for this bug: git bz apply 35451 Bug 35451 Depends on bug 35044 (Signed Off) Follow? [(y)es, (n)o] y Cannot apply cleanly patches from bug 35044. Everything will be left dirty. git bz apply --continue will not continue the process if patches from other bug reports need to be applied. Once bug 35044 is fixed, I'll have another go at testing. My test plan was to: 1. Apply the patches 2. Update the database: updatedatabase 3. Restart everything (flush_memcached, restart_all) 4. Run the tests - they should pass: prove t/db_dependent/Koha/Objects/Mixin/AdditionalFields.t I wasn't sure what else needs to be tested, or if this is sufficient. |