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

[stable27] fix: Preserve lock data in file info model #201

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Dec 19, 2023

When we obtain the model trough getModelForFile which reads the
properties from the table row element, which does not preserve already
fetched lock information otherwise.

This fixes disappearing lock information after leaving a document editor like Collabora where we update the file model based on the result of fileList.getModelForFile to indicate the last saved modification date update.

Note this is not a nice approach but the bug is solved by the clean API that the files app and files_lock use with 28 anyways.

Steps to reproduce:

  • Lock a file manually
  • Open the file with Collabora
  • Do some changes and save
  • Close the document

before:

  • The file was no longer displayed as locked

After:

  • The file is still displayed as locked

@juliusknorr juliusknorr changed the title fix: Preserve lock data in file info modelbtain fix: Preserve lock data in file info model Dec 19, 2023
@juliusknorr juliusknorr added bug Something isn't working 3. to review labels Dec 19, 2023
@juliusknorr juliusknorr changed the title fix: Preserve lock data in file info model [stable27] fix: Preserve lock data in file info model Dec 19, 2023
When we obtain the model trough getModelForFile which reads the
properties from the table row element, which does not preserve already
fetched lock information otherwise.

Signed-off-by: Julius Härtl <[email protected]>
@juliusknorr juliusknorr force-pushed the bugfix/noid/preserve-lock-data branch from 8b53f0b to 3150236 Compare December 19, 2023 16:52
@juliusknorr juliusknorr merged commit 8471c9b into stable27 Dec 19, 2023
22 checks passed
@juliusknorr juliusknorr deleted the bugfix/noid/preserve-lock-data branch December 19, 2023 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants