-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 preview rendering for sharees #39203
Conversation
In the combinations that I tried, it seems that the sharer needs to login and have the file displayed, and then the preview gets updated for everyone. |
@phil-davis, we was always logged with the sharer, so yes could be an issue :/ |
This happens because the preview of the file owner gets deleted when a sharee edits a file. Therefore we don't have a checksum to compare. @phil-davis Please have a look again, should work now. |
Works now. I tried combinations of:
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - it should be easy to add a few unit tests to cover the new block of code???
💥 Acceptance tests pipeline webUIComments-chrome-mariadb10.2-php7.4 failed. The build has been cancelled. |
Kudos, SonarCloud Quality Gate passed! |
Note: I created issue #39211 to add some acceptance tests. It should not be too hard to keep a record of some simple previews in the acceptance test fixtures, and compare them to the actual generated previews as files are changed. |
Description
Previous to this fix, the previews of updated shared files did not change for sharees. Those previews now get re-generated if the content of the files changed.
Related Issue
How Has This Been Tested?
See steps in #39202
Types of changes
Checklist: