Univention Bugzilla – Bug 31915
Improve performance of App Center frontend: App Detail dialog can open instantly
Last modified: 2014-07-02 11:29:07 CEST
When clicking on an app icon in the App Center a new request is sent to the server to get all information about the app. But nearly everything was already sent when getting the whole list. Only README_UPDATE and LICENSE_AGREEMENT are missing. I suggest sending those in the first place. It may slightely reduce performance until the list shows up (not because of computations but because of more bits being transferred - so I think it is *very slightely*). But if this is done in the beginning, the opening of the app details can be instant without asking the server.
Created attachment 5307 [details] Simply remove the tools.umcpCommand('appcenter/get', {'application': app.id}) Patch looks huge, but it is just indentation.
Patch has one drawback: Apps will not know that a new UUID license has been installed. One would still have to reload the app if (!app.allows_using)
With the new App Center, where the "Install" button is always visible and the tests are run _after_ pressing it, this bug is relatively easy again. But the patch will not work. In some cases one can instantly open the dialog (in 3.2 it is more a full page), e.g. when clicking on an app from the App Center GalleryPane, in some cases one has to load the app from the server, e.g. when opening an "Installed App" module
Fixed in univention-management-console-module-appcenter 3.0.51-16.250.201406031613 App is fetched from the host if only the id is given (happens in "Installed Apps" module or when clicking on "This app cannot be installed due to dependencies. Click here to install "$app" first"). But if the full app is known (AppGallery) this is not done anymore.
In my tests it seems that ConflictedSystemPackages is not evaluated. Can you confirm this?
(In reply to Alexander Kläser from comment #5) > In my tests it seems that ConflictedSystemPackages is not evaluated. Can you > confirm this? That was my mistake!
Behaviour is fine, AFAIS: * open installed app from overview → details are loaded, app is displayed fine * open app within App Center → app is displayed immediately without loading data * open app within App Center → open required/conflicted app → details are loaded, app is displayed fine * open app within App Center → install app → cancel reload → app details are updated correctly (In reply to Dirk Wiesenthal from comment #0) > ... > I suggest sending those in the first place. It may slightely reduce > performance until the list shows up (not because of computations but because > of more bits being transferred - so I think it is *very slightely*). > But if this is done in the beginning, the opening of the app details can be > instant without asking the server. There is no real difference 126KB vs 127KB. YAML file → OK → VERIFIED
http://errata.univention.de/ucs/3.2/133.html