Skip to content
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

fix: Always request current content when triggering a menu entry #1313

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Aug 1, 2024

We need to make sure we work with an up-to-date version of the current content, e.g. if a file was removed or added, so reload the current content on click.

The using app (esp. files) should have cached version so no requests are needed. (for files this is already the case).

When releasing this update and merging in server I will provide a cached "getContent" function (load from store if already known) to mitigate performance issues.
edit here it is: nextcloud/server#46966

@susnux susnux added bug Something isn't working 3. to review Waiting for reviews labels Aug 1, 2024
@susnux susnux requested review from skjnldsv and elzody August 1, 2024 19:16
Copy link

codecov bot commented Aug 1, 2024

Bundle Report

Changes will increase total bundle size by 8.32kB ⬆️

Bundle name Size Change
@nextcloud/upload-esm 328.54kB 4.16kB ⬆️
@nextcloud/upload-esm-cjs 331.33kB 4.16kB ⬆️

@susnux
Copy link
Contributor Author

susnux commented Aug 1, 2024

Fixed version on server looks like this then:

Bildschirmaufnahme_20240801_211128.webm

We need to make sure we work with an up-to-date version of the current content,
e.g. if a file was removed or added, so reload the current content on click.

The using app (esp. files) should have cached version so no requests are needed.
(for files this is already the case).

Signed-off-by: Ferdinand Thiessen <[email protected]>
@susnux susnux force-pushed the fix/new-menu-current-content branch from 4d7f9cb to 9768088 Compare August 2, 2024 00:56
@susnux susnux merged commit 6e82ad3 into main Aug 2, 2024
17 checks passed
@susnux susnux deleted the fix/new-menu-current-content branch August 2, 2024 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Template picker does not handle file name conflicts
2 participants