Bug 41746 - Add a dev script to insert a new syspref
Summary: Add a dev script to insert a new syspref
Status: In Discussion
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement
Assignee: Jonathan Druart
QA Contact: Testopia
URL:
Keywords:
Depends on: 41682
Blocks:
  Show dependency treegraph
 
Reported: 2026-02-02 09:15 UTC by Jonathan Druart
Modified: 2026-02-03 01:17 UTC (History)
5 users (show)

See Also:
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:


Attachments
Bug 41746: Move to Koha::Devel::Sysprefs (6.23 KB, patch)
2026-02-02 11:12 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 41746: misc/devel/add_syspref.pl (11.61 KB, patch)
2026-02-02 11:12 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 41746: Do not overwrite atomic file if exists (1.25 KB, patch)
2026-02-02 11:12 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 41746: Bug Deal with end of files (, vs ;) (1.57 KB, patch)
2026-02-02 11:12 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 41746: Compare order using DBMS's ORDER BY (14.40 KB, patch)
2026-02-02 11:12 UTC, Jonathan Druart
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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?