Bug 49511 - App settings show boolean as false although InitialValue=True
App settings show boolean as false although InitialValue=True
Status: NEW
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: App Center maintainers
App Center maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-05-20 15:56 CEST by Daniel Tröder
Modified: 2019-05-20 16:41 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.034
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Tröder univentionstaff 2019-05-20 15:56:28 CEST
The following settings should make the appcenter show a already checked checkbox when installing ucsschool, but the checkbox is empty.

[ucsschool/join/create_demo]
Type = Bool
Description = Create a demo school with demo users (1x teacher, 1x student, 1x schooladmin) and a demo class.
Description[de] = Automatisch eine Demoschule mit Demobenutzern (1x Lehrkraft, 1x Schüler, 1x Schuladministrator) und einer Demoklasse anlegen.
Show = Install, Settings
InitialValue = true

Thus during installation of the app:

INFO: Setting ucsschool/join/create_demo to 'false'

1. There is no way to set a UCRV to True, before installing the app.

2. The documentation says "The attribute InitialValue can be used during the installation. If no value for this attribute was given during the installation, the defined value is set."
2.1 The value is set *after* the installation, so it cannot be used during the installation.
2.2 What is the idea behind this? If an app wants to set a UCRV, it can just do so during installation. Why would it need the appcenter to do it afterwards?

Regardless of 2., please fix 1. -> The appcenter should show the InitialValue of the UCRV, when it is unset.
Comment 1 Daniel Tröder univentionstaff 2019-05-20 16:12:46 CEST
When setting "Show = Settings", the appcenter does not show a checkbox during installation - OK. But it also does not set ucsschool/join/create_demo to 'true'.
It simply doesn't do anything.