Bug 54172 - Make username/email generation code (UsernameHandler) available outside of import
Make username/email generation code (UsernameHandler) available outside of im...
Status: NEW
Product: UCS@school
Classification: Unclassified
Component: General
UCS@school 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2021-11-29 13:11 CET by Daniel Tröder
Modified: 2021-12-10 14:34 CET (History)
1 user (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 Daniel Tröder univentionstaff 2021-11-29 13:11:42 CET
The module ucsschool.importer.utils.username_handler contains classes for generating unique emails and usernames from schemas. The code is useful in scripts and hooks, but difficult to use, as it requires an initialized import.

Refactor the module so that it becomes a part of the ucs-school-lib, having as few dependencies as possible, and replace it in the import with a backwards compatible wrapper.
Comment 4 Oliver Friedrich univentionstaff 2021-12-10 14:34:25 CET
plan.io-Ticket: https://univention.plan.io/issues/32849