Bug 41746

Summary: Add a dev script to insert a new syspref
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Architecture, internals, and plumbingAssignee: Jonathan Druart <jonathan.druart>
Status: In Discussion --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: david, dcook, lucas, martin.renvoize, tomascohen
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 41682    
Bug Blocks:    
Attachments: Bug 41746: Move to Koha::Devel::Sysprefs
Bug 41746: misc/devel/add_syspref.pl
Bug 41746: Do not overwrite atomic file if exists
Bug 41746: Bug Deal with end of files (, vs ;)
Bug 41746: Compare order using DBMS's ORDER BY

Description Jonathan Druart 2026-02-02 09:15:37 UTC
To prevent new discrepancies (see bug 41682) we should provide a dev script to insert easily and cleanly a new syspref.
Comment 1 Jonathan Druart 2026-02-02 11:12:00 UTC
Created attachment 192288 [details] [review]
Bug 41746: Move to Koha::Devel::Sysprefs

Patch from commit 165a11a
Comment 2 Jonathan Druart 2026-02-02 11:12:01 UTC
Created attachment 192289 [details] [review]
Bug 41746: misc/devel/add_syspref.pl

Patch from commit 0d67082
Comment 3 Jonathan Druart 2026-02-02 11:12:02 UTC
Created attachment 192290 [details] [review]
Bug 41746: Do not overwrite atomic file if exists

Patch from commit 06b696b
Comment 4 Jonathan Druart 2026-02-02 11:12:04 UTC
Created attachment 192291 [details] [review]
Bug 41746: Bug Deal with end of files (, vs ;)

Patch from commit 6b61423
Comment 5 Jonathan Druart 2026-02-02 11:12:05 UTC
Created attachment 192292 [details] [review]
Bug 41746: Compare order using DBMS's ORDER BY

Patch from commit df6ff8e
Comment 6 Jonathan Druart 2026-02-02 11:12:35 UTC
Not ready yet for inclusion (missing tests and adjustment to the QA script). Do I continue? Do we want that?