8000 🍒 PM-17634 - Update When The App Checks If Authenticator Sync is Enabled by phil-livefront · Pull Request #1455 · bitwarden/ios · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

🍒 PM-17634 - Update When The App Checks If Authenticator Sync is Enabled #1455

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

Merged

Conversation

phil-livefront
Copy link
Collaborator
@phil-livefront phil-livefront commented Mar 25, 2025

🎟️ Tracking

PM-17634

📔 Objective

Cherry pick of https://github.com/bitwarden/ios/pull/1448 into the release branch

Previously, when launching the app on a fresh install, we checked the feature flags for bitwarden.com before attempting to start the AuthenticatorSyncService. If the feature flag was initially disabled, the sync service would never start. This led to an issue where users logging into a self-hosted server—which has the feature flag enabled (enable-pm-bwa-sync)—would not see sync events during that session, even if logging into a server that has the flag on. This caused the service to only start syncing after a full app restart which then had a fresh value for the feature flag.

Added the check to be inside of determineSyncForUserId(userId:) which is called from both Tasks within the start function. This change ensures that the sync service always starts but dynamically guards data emission based on the feature flag’s state. This allows the service to respond immediately when the flag is enabled, without requiring an app restart.

⏰ 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

@phil-livefront phil-livefront changed the base branch from main to release/2025.03-rc7 March 25, 2025 14:26
Copy link
Contributor

Logo
Checkmarx One – Scan Summary & Details613712a5-823f-4c29-82ea-94599a8486c7

Great job, no security vulnerabilities found in this Pull Request

Copy link
codecov bot commented Mar 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.58%. Comparing base (54f6c86) to head (cc9485d).
Report is 1 commits behind head on release/2025.03-rc7.

Additional details and impacted files
@@                 Coverage Diff                  @@
##           release/2025.03-rc7    #1455   +/-   ##
====================================================
  Coverage                89.58%   89.58%           
====================================================
  Files                      767      767           
  Lines                    48196    48198    +2     
====================================================
+ Hits                     43177    43179    +2     
  Misses                    5019     5019           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@phil-livefront phil-livefront merged commit 9690bb1 into release/2025.03-rc7 Mar 25, 2025
10 checks passed
@phil-livefront phil-livefront deleted the phil/PM-17634-cherry-pick-into-rc branch March 25, 2025 16:43
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
0