Bug 26447

Summary: Provide more sophisticated DB dependency management in web installer
Product: Koha Reporter: Hugh Rundle <koha>
Component: Installation and upgrade (web-based installer)Assignee: Bugs List <koha-bugs>
Status: RESOLVED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, pasi.kallinen
Version: 20.05   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Hugh Rundle 2020-09-13 10:37:06 UTC
Some optional sample data is dependent on other optional data when using the web installer. This is not made obvious, nor are users prevented from attempting to install sample data that depends on other sample data that is not selected. This means that first time users are unnecessarily confronted with (fairly ugly) database errors whilst attempting their very first install, with no obvious way to "undo" these errors nor how much importance to pay to them.

For example: `sample_libraries_holidays` and `sample_patrons` fail to load if sample libraries are not also selected.

It would be useful if the step where users select which optional data to install included a check for data dependencies like this to ensure a relaxing experience for new users. Ideally this would be some kind of JavaScript (e.g. if Koha was using VueJS that would be ideal to check the state of relevant checkboxes), or alternatively a check on submission of the form that returns to the selection screen if incompatible options are selected, with a useful error message explaining the problem.
Comment 1 Hugh Rundle 2020-09-13 10:39:00 UTC
This bug seems to be related also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24694
Comment 2 Katrin Fischer 2020-09-13 10:41:29 UTC
*** Bug 24694 has been marked as a duplicate of this bug. ***
Comment 3 Katrin Fischer 2023-12-09 15:52:03 UTC
We have added some logic to the installer since this was reported. So you can only select sample holidays if you also have sample libraries, similar for sample patrons etc.

Marking this as FIXED.