Bug 33147 - hook mechanism module loading in app.js
Summary: hook mechanism module loading in app.js
Status: RESOLVED DUPLICATE of bug 35654
Alias: None
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
Version: UCS 3.2
Hardware: Other Linux
: P5 enhancement
Target Milestone: UCS 3.x
Assignee: UMC maintainers
QA Contact:
URL:
Keywords:
: 35043 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-11-06 12:24 CET by Florian Best
Modified: 2014-11-03 20:13 CET (History)
3 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): Further conceptual development
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2013-11-06 12:24:28 CET
Currently we have code like:

if getModule(updater):
   if updater.updates_available:
      showWarning(updates_available)

These checks are currently done for:
checkLicense(); → UDM module
checkUpdateAvailable(); → updater module
checkRebootRequired(); → reboot module
checkJoinStatus(); → join module
checkCertificateValidity();
checkBrowser();
checkForUserRoot();
checkShowStartupDialog();

There could be a hook function for each of this module:
module.onAppStrartup();
Comment 1 Alexander Kläser univentionstaff 2014-06-05 12:11:13 CEST
*** Bug 35043 has been marked as a duplicate of this bug. ***
Comment 2 Florian Best univentionstaff 2014-11-03 20:13:00 CET
fixed during UCS 4 development.

These methods have been outsourced into the specific modules.
A trigger is now tools.registerOnStartup(my_callback);

*** This bug has been marked as a duplicate of bug 35654 ***