-
Notifications
You must be signed in to change notification settings - Fork 138
Refresh files list after exporting a file in a different format #5059
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
62afe5f to
340677b
Compare
|
I think there is probably a better way to handle this, like via post message. Clicking on the Save As or Export As buttons in Collabora sends the My idea was to use this to then trigger a rebuild of the files list (probably via some event bus message), but we only get the This doesn't make sense to me because if it's following the same flow under the hood, 1) why have two separate buttons for it and 2) why does doing this via the Export As button not also notify us when the operation is complete I will clarify this behavior with them before we proceed |
|
Yes, I think we should rather rely on existing files app methods to add the new file or update it through events. Reload was possible and used in the past but had quite some performance impact to always refetch the full file list. |
|
Collabora has confirmed that the Export As button not sending back an |
|
CollaboraOnline/online#13309 as upstream fix to be tested with |
|
@elzody I rememeber you wanted to give the collabora fix a try? Could you give an update on that part? |
|
@juliusknorr @silverkszlo Indeed, the fix on Collabora's side works. It seems to send the correct PostMessage now, so we should be able to proceed with our fix. I am happy to help any way that I can |
340677b to
64cf8ef
Compare
Ok so I couldn't just use
This works for both SaveAs and ExportAs now. |
Signed-off-by: silver <[email protected]>
Signed-off-by: silver <[email protected]>
64cf8ef to
7700b4b
Compare
|
Backports? |
|
/backport to stable32 please |
|
/backport to stable31 please |
|
/backport to stable30 please |
Resolves
Before
When the user exports a document as PDF or EPUB from Collabora Online OR uses "save as" to save the file with a different format or a new name, the new file did not appear automatically in their files list. Only after a manual page reload was the file displayed.
Now
The new file appears in the files' list without needing a reload of the page.
The "Save As" and "Export As" events are being handled by tracking the requested filename when the user initiates the operation. When Collabora confirms the save/export is complete, the app fetches the new file's metadata via WebDAV and emits a
files:node:createdevent, causing the Files app to display the new file in the file list immediately without requiring a page reload.Checklist