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

Avoid unnecessary syncs in push-only syncmode #818

Merged
merged 1 commit into from
May 23, 2024
Merged

Conversation

chacha912
Copy link
Contributor

@chacha912 chacha912 commented May 23, 2024

What this PR does / why we need it?

When syncmode is set to pushonly and there are no local changes, sync requests should not be triggered by remote changes.

Any background context you want to provide?

What are the relevant tickets?

Addresses #816

Checklist

  • Added relevant tests or not required
  • Didn't break anything

@chacha912 chacha912 requested a review from hackerwins May 23, 2024 04:27
Copy link

codecov bot commented May 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.77%. Comparing base (9c7accd) to head (493d8e4).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #818   +/-   ##
=======================================
  Coverage   80.76%   80.77%           
=======================================
  Files          59       59           
  Lines        4534     4536    +2     
  Branches      916      917    +1     
=======================================
+ Hits         3662     3664    +2     
  Misses        608      608           
  Partials      264      264           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@hackerwins hackerwins left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution.

@hackerwins hackerwins merged commit 73ce56f into main May 23, 2024
3 checks passed
@hackerwins hackerwins deleted the pushonly-sync branch May 23, 2024 05:03
hackerwins pushed a commit that referenced this pull request May 23, 2024
When syncmode is set to pushonly and there are no local changes, sync
requests should not be triggered by remote changes.
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