Bug 51691 - Add more fields to the UCS@school User Wizard
Add more fields to the UCS@school User Wizard
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: UMC - Wizards
UCS@school 4.4
Other Linux
: P5 normal (vote)
: UCS@school 4.4 v6
Assigned To: Ole Schwiegert
Tobias Wenzel
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-07-21 13:12 CEST by Ole Schwiegert
Modified: 2020-08-05 17:07 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
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 Ole Schwiegert univentionstaff 2020-07-21 13:12:29 CEST
We want to add the missing attributes of ucsschool.lib users to the UMC User Wizard. The attributes in question are birthday, disabled, ucsschool_roles and schools.

The two latter ones will be read only. It should also be possible to configure the visibility of all optional attributes via UCR. That includes email, password, birthday, disabled, ucsschool_roles and schools. They should all be visible by default.
Comment 1 Ole Schwiegert univentionstaff 2020-07-21 13:17:24 CEST
A first implementation can be found in oschwieg/4.4/51691

The UCR variable is not yet implemented.
Comment 2 Ole Schwiegert univentionstaff 2020-07-23 12:00:55 CEST
The visibility of the defined optional fields can now be configured via

ucsschool/wizards/schoolwizards/users/optional_visible_fields

During installation the value is set to "schools ucsschool_roles password email disabled birthday". The default of the unset variable is an empty string, which means no optional variables are showed.

For QA check:
UCR variable configures visibility properly
Modification and creation of users via UMC module is still possible
the new fields disabled and birthday can be set and are changed in the udm object accordingly
UCR variable documentation string is good
Comment 3 Tobias Wenzel univentionstaff 2020-07-23 13:29:16 CEST
QA -> All Ok -> REOPEN for merge&build

Code (UserWizard.js & postinst) -> looks good.

Functionality -> All OK for me, please check if (*) is ok for you.

- UCR-V gets installed & set to schools ucsschool_roles password email disabled birthday -> OK
- UCR variable configures visibility properly
  - default Schulen (read only), UCS@school Rollen (read only), Deaktiviert & Geburtstag -> OK
  - unset only Vorname, Nachname, Benutzername & Klasse (no password & email) -> OK
  - (*) email & deactivated (the latter is invalid) -> only E-Mail, no error -> OK

- Modification and creation of users via UMC module is still possible
the new fields disabled and birthday can be set and are changed in the udm object accordingly -> OK (tested in UMC Module & UDM)
- UCR variable documentation string is good -> OK
Comment 4 Ole Schwiegert univentionstaff 2020-07-23 14:54:39 CEST
Package: ucs-school-umc-wizards
Version: 11.0.0-9A~4.4.0.202007231451
Branch: ucs_4.4-0
Scope: ucs-school-4.4
Comment 5 Tobias Wenzel univentionstaff 2020-07-23 16:00:32 CEST
QA -> all OK -> set to VERIFY

Changelog -> OK
YAML -> OK
Functionality -> OK
Comment 6 Daniel Tröder univentionstaff 2020-08-05 17:07:31 CEST
UCS@school 4.4 v6 has been released.

https://docs.software-univention.de/changelog-ucsschool-4.4v6-de.html

If this error occurs again, please clone this bug.