Bug 40381 - Koha/SearchEngine/Elasticsearch/ExportConfig.t generates warnings
Summary: Koha/SearchEngine/Elasticsearch/ExportConfig.t generates warnings
Status: Pushed to oldstable
Alias: None
Product: Koha
Classification: Unclassified
Component: Test Suite (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low minor
Assignee: Jonathan Druart
QA Contact: Martin Renvoize (ashimema)
URL:
Keywords:
Depends on:
Blocks: 40444
  Show dependency treegraph
 
Reported: 2025-07-15 11:54 UTC by Jonathan Druart
Modified: 2025-08-01 13:25 UTC (History)
3 users (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
25.11.00,25.05.02,24.11.08
Circulation function:


Attachments
Bug 40381: Remove warning from Koha/SearchEngine/Elasticsearch/ExportConfig.t (1.80 KB, patch)
2025-07-15 11:54 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 40381: Remove warning from Koha/SearchEngine/Elasticsearch/ExportConfig.t (1.84 KB, patch)
2025-07-18 07:15 UTC, David Nind
Details | Diff | Splinter Review
Bug 40381: Remove warning from Koha/SearchEngine/Elasticsearch/ExportConfig.t (1.91 KB, patch)
2025-07-18 12:09 UTC, Martin Renvoize (ashimema)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Druart 2025-07-15 11:54:03 UTC
DBIx::Class::Storage::DBI::insert(): Missing value for primary key column 'filter' on SearchMarcToField - perhaps you forgot to set its 'is_auto_increment' attribute during add_columns()? Treating 'filter' implicitly as an autoinc, and attempting value retrieval at /kohadevbox/koha/Koha/SearchField.pm line 42
Comment 1 Jonathan Druart 2025-07-15 11:54:34 UTC
Created attachment 184084 [details] [review]
Bug 40381: Remove warning from Koha/SearchEngine/Elasticsearch/ExportConfig.t

DBIx::Class::Storage::DBI::insert(): Missing value for primary key column 'filter' on SearchMarcToField - perhaps you forgot to set its 'is_auto_increment' attribute during add_columns()? Treating 'filter' implicitly as an autoinc, and attempting value retrieval at /kohadevbox/koha/Koha/SearchField.pm line 42
Comment 2 David Nind 2025-07-18 07:15:15 UTC
Created attachment 184285 [details] [review]
Bug 40381: Remove warning from Koha/SearchEngine/Elasticsearch/ExportConfig.t

DBIx::Class::Storage::DBI::insert(): Missing value for primary key column 'filter' on SearchMarcToField - perhaps you forgot to set its 'is_auto_increment' attribute during add_columns()? Treating 'filter' implicitly as an autoinc, and attempting value retrieval at /kohadevbox/koha/Koha/SearchField.pm line 42
Signed-off-by: David Nind <david@davidnind.com>
Comment 3 David Nind 2025-07-18 07:15:53 UTC
Testing notes (using KTD):
1. prove t/db_dependent/Koha/SearchEngine/Elasticsearch/ExportConfig.t
Comment 4 Martin Renvoize (ashimema) 2025-07-18 12:09:56 UTC
Created attachment 184360 [details] [review]
Bug 40381: Remove warning from Koha/SearchEngine/Elasticsearch/ExportConfig.t

DBIx::Class::Storage::DBI::insert(): Missing value for primary key column 'filter' on SearchMarcToField - perhaps you forgot to set its 'is_auto_increment' attribute during add_columns()? Treating 'filter' implicitly as an autoinc, and attempting value retrieval at /kohadevbox/koha/Koha/SearchField.pm line 42
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Comment 5 Lucas Gass (lukeg) 2025-07-18 17:12:17 UTC
Nice work everyone!

Pushed to main for 25.11
Comment 6 Paul Derscheid 2025-07-24 08:21:15 UTC
Nice work everyone!

Pushed to 25.05.x
Comment 7 Fridolin Somers 2025-08-01 13:25:32 UTC
Pushed to 24.11.x for 24.11.08