Univention Bugzilla – Bug 42801
Implement backend routines for saving app changes
Last modified: 2016-11-25 10:01:08 CET
On the backend side, we need a corresponding saving method which will update the App INI file, its images and README files. JavaScript will send to the server process a JSON dict containing all fields that have been changed by the user. All images (SVG logos and PNG/JPEG screenshots) are base64 encoded.
The app page already sends a save request to 'appcenter-selfservice/save' with all changes being made [r73918].
First implementation in r74143. save works. Some utility functions may be broken, but they will be fixed with another patch. Opening, saving, cloning should work (did not test cloning). Not sure how translations, sizing works yet.
We need a backend functionality to read/write just the meta file of an app.
(In reply to Alexander Kläser from comment #3) > We need a backend functionality to read/write just the meta file of an app. This would be for Bug 42800.
In the App page, settings are only saved when clicking 'Save'. This behaviour does not work for uploaded files, these are stored directly into the component, i.e., the user has no possibility to undo his changes. Therefore we need to store uploaded Debian files in a temporary folder (e.g. prefixed with the username + component_id) first. In the save action, uploaded files need then to be considered and moved to their final destination. Temporary files should be removed (e.g., via a cronjob or at-jobs) after some interval.
(In reply to Alexander Kläser from comment #5) > In the App page, settings are only saved when clicking 'Save'. This > behaviour does not work for uploaded files, these are stored directly into > the component, i.e., the user has no possibility to undo his changes. > Therefore we need to store uploaded Debian files in a temporary folder (e.g. > prefixed with the username + component_id) first. In the save action, > uploaded files need then to be considered and moved to their final > destination. Temporary files should be removed (e.g., via a cronjob or > at-jobs) after some interval. This is Bug#42943
The new version of the App Provider Portal has been released and this bug will thus be closed.