Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[PM-15416] Change pull-to-refresh to not force a sync#1172

Merged
KatherineInCode merged 6 commits intomainfrom
pm-15412/pull-to-refresh
Dec 2, 2024
Merged

[PM-15416] Change pull-to-refresh to not force a sync#1172
KatherineInCode merged 6 commits intomainfrom
pm-15412/pull-to-refresh

Conversation

@KatherineInCode
Copy link
Contributor

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-15416

📔 Objective

This changes the behavior of pull-to-refresh to respect time gates and other business logic around when we should actually do a refresh. It does not change the behavior of other places we trigger a manual refresh.

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@codecov
Copy link

codecov bot commented Nov 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.39%. Comparing base (8293f41) to head (9f9a91a).
Report is 9 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1172   +/-   ##
=======================================
  Coverage   89.39%   89.39%           
=======================================
  Files         688      688           
  Lines       43798    43798           
=======================================
  Hits        39152    39152           
  Misses       4646     4646           

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

@KatherineInCode KatherineInCode marked this pull request as ready for review November 26, 2024 21:25
@github-actions
Copy link
Contributor

github-actions bot commented Nov 26, 2024

Logo
Checkmarx One – Scan Summary & Details5492aa01-46bc-4ac4-a71e-e0bc06ffcde4

No New Or Fixed Issues Found

Copy link
Member

@fedemkr fedemkr left a comment

Choose a reason for hiding this comment

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

❓Sorry but I don't know much about the context on this, could more details be provided as to why this change is necessary?

Copy link
Member

Choose a reason for hiding this comment

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

🤔 IMO we should change the name of the parameter isManualRefresh to something else as in this case would be contradictory given that the user is actually manually refreshing the vault. I would use forceSync as in the end is what internally is being treated as in the repositories.
Same applies to Send processor and Vault+Send repositories.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call.

@KatherineInCode KatherineInCode merged commit c621b02 into main Dec 2, 2024
@KatherineInCode KatherineInCode deleted the pm-15412/pull-to-refresh branch December 2, 2024 16:35
@Gerardv514
Copy link

What exactly is this PR doing? I have noticed on my ios app (2024.12) my vault is not syncing when I pull down gesture on the vault. If I go to settings/other and click Sync Now it syncs. I am running a self hosted and also have a BW cloud account, I can reproduce in both places.

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.

3 participants

Comments