-
Notifications
You must be signed in to change notification settings - Fork 49
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-6262] Add basic feature flags support to enable cipher key encryption #638
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #638 +/- ##
==========================================
+ Coverage 59.50% 60.53% +1.03%
==========================================
Files 171 172 +1
Lines 10416 10527 +111
==========================================
+ Hits 6198 6373 +175
+ Misses 4218 4154 -64 ☔ View full report in Codecov by Sentry. |
Fixed Issues
|
let map = map | ||
.into_iter() | ||
.map(|(k, v)| (k, serde_json::Value::Bool(v))) | ||
.collect(); | ||
serde_json::from_value(serde_json::Value::Object(map)).expect("Valid map") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Serde 😢, we could write a proc macro for this but unsure if it's worth the hassle.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could even do a small declarative macro that just does:
this_flag = map.get("this_flag").unwrap_or(false);
that_flag = map.get("that_flag").unwrap_or(false);
another_flag = map.get("another_flag").unwrap_or(false);
That said I think we can deal with that when we have more flags to handle.
Type of change
Objective
Implement support for some basic feature flagging for the mobile clients, the only flag supported is
enableCipherKeyEncryption