-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[PM-24243] Load config service feature flag into SDK client #15855
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
[PM-24243] Load config service feature flag into SDK client #15855
Conversation
|
Great job! No new security vulnerabilities introduced in this pull request |
## 🎟️ Tracking [PM-24243](https://bitwarden.atlassian.net/browse/PM-24243) ## 📔 Objective Add `load_flags` method to the wasm `PlatformClient` to match parity with the uniffi `PlatformClient` so that the TS clients can set the SDK flags dynamically. Related Clients PR: bitwarden/clients#15855 ~Added a `FlagsInput` struct that mimics the internal `Flags` struct but with tsify bindings.~ ~Another potential option is to make the internal `Flags` struct public with wasm bindings to avoid duplicating the struct.~ ## ⏰ 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 <!-- Suggested interactions but feel free to use (or not) as you desire! --> - 👍 (`:+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 [PM-24243]: https://bitwarden.atlassian.net/browse/PM-24243?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15855 +/- ##
==========================================
- Coverage 37.31% 37.31% -0.01%
==========================================
Files 3348 3348
Lines 95120 95130 +10
Branches 14384 14385 +1
==========================================
- Hits 35495 35493 -2
- Misses 58055 58066 +11
- Partials 1570 1571 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
@addisonbeck Sorry to ping again, had to resolve a merge conflict |
|
Changes in this PR impact the Autofill experience of the browser clientBIT has tested the core experience with these changes and all feature flags disabled. ✅ Fortunately, these BIT tests have passed! 🎉 |
Changes in this PR impact the Autofill experience of the browser clientBIT has tested the core experience with these changes and the feature flag configuration used by ✅ Fortunately, these BIT tests have passed! 🎉 |
…n#15855) * [PM-24243] Load config service feature flag into SDK client during initialization * [PM-24243] Bump sdk version * [PM-24243] Update load_flags to use generic Map instead of strongly typed object * [PM-24243] Pass entire feature states object into SDK * [PM-24243] Bump SDK version * [PM-24243] Fix failing test




🎟️ Tracking
PM-24243
📔 Objective
When creating an SDK client, use a new
load_flagsmethod on the platform client to initialize the SDK client flags. Necessary so that the SDK will only use cipher key encryption when the LD feature flag is enabled.Requires bitwarden/sdk-internal#369 - Merged!Previous SDK PR was reverted in favor of bitwarden/sdk-internal#378 which updates the load_flags method to accept a map instead of strongly typed enum/record.
⏰ Reminders before review
🦮 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