8000 [BWA-155] Copy reduced APIService and EnvironmentService into AuthenticatorShared by KatherineInCode · Pull Request #1504 · bitwarden/ios · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[BWA-155] Copy reduced APIService and EnvironmentService into AuthenticatorShared #1504

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
merged 8 commits into from
Apr 16, 2025

Conversation

KatherineInCode
Copy link
Contributor

🎟️ Tracking

https://bitwarden.atlassian.net/browse/BWA-155

📔 Objective

To continue the process of moving the ConfigService into BitwardenKit, this brings slimmed-down versions of APIService and EnvironmentService into AuthenticatorShared. These slimmed-down versions don't have a concept of an account, shortcutting bringing account-aware things such as TokenService into BitwardenKit. Protocols, however, now live in BitwardenKit.

At some point in the future more work can be done to unify these and bring them more firmly into BitwardenKit, but that will probably require bringing a lot of account-related infrastructure into BitwardenKit, which would imply that BWA would also become account-aware.

⏰ 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

Copy link
codecov bot commented Apr 16, 2025

Codecov Report

Attention: Patch coverage is 91.17647% with 6 lines in your changes missing coverage. Please review.

Project coverage is 85.86%. Comparing base (dc16714) to head (aec75a0).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...ed/Core/Platform/Services/EnvironmentService.swift 88.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1504      +/-   ##
==========================================
- Coverage   89.66%   85.86%   -3.80%     
==========================================
  Files         781      991     +210     
  Lines       48815    58987   +10172     
==========================================
+ Hits        43768    50648    +6880     
- Misses       5047     8339    +3292     

☔ 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.

@KatherineInCode KatherineInCode marked this pull request as ready for review April 16, 2025 15:16
@KatherineInCode KatherineInCode requested review from matt-livefront and a team as code owners April 16, 2025 15:16
Copy link
Contributor
github-actions bot commented Apr 16, 2025

Logo
Checkmarx One – Scan Summary & Details7a48d365-1d55-4f7c-b4fd-59996b36b11b

Great job, no security vulnerabilities found in this Pull Request

vvolkgang
vvolkgang previously approved these changes Apr 16, 2025
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.

Looks good, just a comment for future improvement.

Comment on lines +40 to +45
defaultHeadersRequestHandler = DefaultHeadersRequestHandler(
appName: "Bitwarden_Authenticator_Mobile",
appVersion: Bundle.main.appVersion,
buildNumber: Bundle.main.buildNumber,
systemDevice: UIDevice.current
)
Copy link
Member

Choose a reason for hiding this comment

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

♻️ I think we should refactor this at some point (perhaps when moving it to the Kit) to be able to test the values we're padding to the default headers request handler. Because right now if we change any of this all the tests will pass just fine. But we can definitely do it in another PR so it updates also the PM side one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

100% agree

@KatherineInCode KatherineInCode merged commit d5a9b29 into main Apr 16, 2025
11 checks passed
@KatherineInCode KatherineInCode deleted the bwa-155/bwa-api-service branch April 16, 2025 16:55
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
0