Bug 46086 - Scheme example not working
Scheme example not working
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: Documentation
UCS@school 4.4
Other Linux
: P5 normal (vote)
: UCS@school 4.4 v7
Assigned To: Tobias Wenzel
Ole Schwiegert
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-01-19 15:13 CET by Jürn Brodersen
Modified: 2020-10-13 07:57 CEST (History)
4 users (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?: 5: Will affect all installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.086
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 Jürn Brodersen univentionstaff 2018-01-19 15:13:08 CET
The scheme example at:
http://docs.software-univention.de/ucsschool-import-handbuch-4.2.html#configuration:scheme_formatting
does not work (anymore).

phone is now a list. The scheme needs to be changed. For example to:
"phone": "+49-<phone>[0][1:]"

Also phone is self referencing. In Bug 45972 we discussed that self referencing is a problem for some (all?) fields (for example the birthday field). A note about which fields are a problem might be needed. Or did I understood that wrong? :)
Comment 1 Daniel Tröder univentionstaff 2018-01-22 08:35:29 CET
(In reply to Jürn Brodersen from comment #0)
> The scheme example at:
> http://docs.software-univention.de/ucsschool-import-handbuch-4.2.
> html#configuration:scheme_formatting
> does not work (anymore).
> 
> phone is now a list.
IMHO that's not a problem. It should create a list with one item.

> Also phone is self referencing.
Yes - that's wrong.

The formatting-example should also be enhanced to include an example CSV-line and the resulting attribute values when the import has run.
Comment 2 Tobias Wenzel univentionstaff 2020-09-21 09:52:39 CEST
I removed the self-referencing example and added an example which shows the impact of the formating schemes.

FIXED in 
twenzel/46086_scheme_docu

see also https://jenkins.knut.univention.de:8181/view/Doku/job/BuildDocBookBranchUCSSchool/23/artifact/webroot/ucsschool-import-handbuch-4.4.html#configuration:mapping
Comment 3 Ole Schwiegert univentionstaff 2020-09-28 09:56:44 CEST
phone was removed from the example, since it should be done in formatting hooks

CSV line and result was added to doc

OK
Comment 4 Tobias Wenzel univentionstaff 2020-09-28 12:12:04 CEST
Leave verified, merged to 4.4

[4.4] e09e07c14 Bug #46086: Merge branch 'twenzel/46086_scheme_docu' into 4.4
[4.4] 3be77032f Bug #46086: docu fix scheme example
Comment 5 Daniel Tröder univentionstaff 2020-10-13 07:57:57 CEST
UCS@school 4.4 v7 has been released.

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

If this error occurs again, please clone this bug.