Bug 41470 - Hook mechanism tied to class method
Hook mechanism tied to class method
Status: CLOSED DUPLICATE of bug 41469
Product: UCS@school
Classification: Unclassified
Component: Import scripts
UCS@school 4.1 R2
Other Linux
: P5 normal (vote)
: UCS@school 4.1 R2
Assigned To: Daniel Tröder
Sönke Schwardt-Krummrich
:
Depends on: 41239
Blocks:
  Show dependency treegraph
 
Reported: 2016-06-06 11:47 CEST by Jan Christoph Ebersbach
Modified: 2016-06-28 18:24 CEST (History)
2 users (show)

See Also:
What kind of report is it?: ---
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 Jan Christoph Ebersbach univentionstaff 2016-06-06 11:47:24 CEST
The import hook mechanism of ucs@school-import-tool is tied to the implementation of a single class method.  This leaves error handling and execution order up to the customer.  Furthermore, reusability is highly reduced because the class method can't be integrated in other classes.

I'd find it optimal if there were a mechanism that would allow customers to register arbitrary functions as hooks.  Through a well defined interface these methods are automatically called once a hook point is reached.  These functions could be shipped with UCS@school or shared between customers.  The integration/activation is done at the liking of a specific customer.  The old hook mechanism that made use of run-parts was very much like the mechanism described here except that the new mechanism solely relies on Python code.
Comment 1 Daniel Tröder univentionstaff 2016-06-06 15:30:27 CEST

*** This bug has been marked as a duplicate of bug 41469 ***
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2016-06-15 17:54:34 CEST
Yes, a duplicate
Comment 3 Florian Best univentionstaff 2016-06-28 18:24:56 CEST
UCS@school 4.1 R2 has been released:
http://docs.software-univention.de/release-notes-ucsschool-4.1R2v1-de.pdf

If this error occurs again, please use "Clone This Bug".