tine20
tine20 copied to clipboard
0007442: Export progress
Reported by AirMike on 17 Nov 2012 18:31
Consider implementing export progress. If user is exporting greater number of records, export can take a while, so it would be nice to show user export progress.
I implemented this on my version via temp file like this (progress bar is shown only if number or records for export is greater of some configured number of records):
- export token (GUID) is generated on client side and sent with export request
- before exporting temp file (Tinebase_Model_TempFile) is created with given GUID
- processIteration function is writing to temp file its status (processed + total)
- on client side AJAX request is sent in some intervals with export token and reads from temp file showing progress.
This is just for info.
Comment posted by pschuele on 19 Nov 2012 09:38
cool, we are thinking about some progress display in the last days. this could be really helpful when doing multiple updates or moving lots of records (messages), too.
could you please push your code to gerrit for review?
Comment posted by AirMike on 26 Nov 2012 07:18
I'll push what I've got as soon as I can.
@AirMike do you still have the code for this? maybe you would like to add it as a pull request here?
Hi, its been a while.
I have code for this but its been a while since it was implemented so I think it can be done better. I like idea to generalize this not only for export but for some other long running processes.
I will look into it when I find time but first I need to dockerize tine20 dev environment because I cannot run in windows anymore (some problem with webpack I posted).
ok, thanks for the update. you might check this for a dev docker environment with webpack -> https://github.com/tine20/docker