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: Preserve not_synchronized_on on shared dirs #4150

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

taratatach
Copy link
Member

When a member of a sharing modifies a directory within this sharing
then the io.cozy.files doc on the other members' Cozy will lose
their not_synchronized_on attribute.

This means the directory will get synchronized with their Desktop
client again while they haven't modified the configuration themselves.

This is because we forgot to keep the existing attribute when updating
the document in the sharing indexer.

@taratatach taratatach self-assigned this Oct 6, 2023
@taratatach taratatach requested a review from a team as a code owner October 6, 2023 10:25
Copy link
Member

@nono nono left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch

  When a member of a sharing modifies a directory within this sharing
  then the `io.cozy.files` doc on the other members' Cozy will lose
  their `not_synchronized_on` attribute.

  This means the directory will get synchronized with their Desktop
  client again while they haven't modified the configuration themselves.

  This is because we forgot to keep the existing attribute when updating
  the document in the sharing indexer.
@taratatach taratatach force-pushed the fix/keep-sync-exclusions-on-modified-shared-dirs branch from 1361377 to 099dc2d Compare October 10, 2023 07:46
@taratatach taratatach merged commit 1eb60a7 into master Oct 10, 2023
6 checks passed
@taratatach taratatach deleted the fix/keep-sync-exclusions-on-modified-shared-dirs branch October 10, 2023 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants