-
Notifications
You must be signed in to change notification settings - Fork 230
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
Add stringHelper to NimbusMessageHelper. #4831
Add stringHelper to NimbusMessageHelper. #4831
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4831 +/- ##
==========================================
- Coverage 81.51% 81.28% -0.24%
==========================================
Files 57 58 +1
Lines 5665 5743 +78
==========================================
+ Hits 4618 4668 +50
- Misses 1047 1075 +28
Continue to review full report at Codecov.
|
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.
Looks good for the most part 🕺 🚀 - I have a slight concern about supporting unicode, but haven't looked too hard into it
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.
Address review comments/questions.
) -> Result<Arc<NimbusStringHelper>> { | ||
let context = self.merge_additional_context(additional_context)?; | ||
let helper = NimbusStringHelper::new(context.as_object().unwrap().to_owned()); | ||
Ok(Arc::new(helper)) |
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.
Deliberately trying to keep string helper and targeting helper separate, because I don't know how the Glean targeting helper is going to play out.
15b527f
to
f96203a
Compare
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.
🚢 🚢
Fixes EXP-2159.
This PR adds a string interpolation method to the MessageHelper.
This might better be done in Kotlin and Swift, but there is some fiddly logic which needs to be the same in both places, so we did it in Rust.
The fiddly logic was:
Pull Request checklist
[ci full]
to the PR title.