Bug 26447 - Provide more sophisticated DB dependency management in web installer
Summary: Provide more sophisticated DB dependency management in web installer
Status: RESOLVED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Installation and upgrade (web-based installer) (show other bugs)
Version: 20.05
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
: 24694 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-09-13 10:37 UTC by Hugh Rundle
Modified: 2023-12-09 15:52 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

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