-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
fix(analytics): added missing price parameter to the Item structure #5232
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/invertase/react-native-firebase/EBZBqBk9UrxMRBzwfxFoeY7Tdzgy |
Thanks for this! I think this will be a popular addition! Have you tested it to make sure the analytics dashboard looks the way you expect from both platforms? There were number formatting issues with quantity if I recall |
@mikehardy I have tested it, and I confirm an issue with the price on Firebase Dashboard (It's added six zeros at the end to any price). But as described here #4578 (comment) it is not an issue with React Native Firebase |
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.
This looks great to me - not a huge code fix but since you have the need and are already set up to test it, it means we can get this done today vs...who knows when otherwise :-). I added a note about price display and link to the discussion in order to help future developers, and when CI goes green I'll merge this and release it
Thanks again!
Codecov Report
@@ Coverage Diff @@
## master #5232 +/- ##
=======================================
Coverage 88.86% 88.86%
=======================================
Files 109 109
Lines 3743 3743
Branches 360 360
=======================================
Hits 3326 3326
Misses 370 370
Partials 47 47 |
Test failure was a known flaky test and unrelated to this PR, but unfortunately the analytics E2E tests were after the flaky test, so re-running and waiting... |
Release 11.4.1 just went out with the change related to this among other fixes + features. Enjoy! 🚀 |
Description
This pull request addresses the problem of not being able to pass the price parameter when trying to log
view_item_list
But as described in the official documentation it must be possible.
Checklist
Android
iOS
e2e
tests added or updated inpackages/\*\*/e2e
jest
tests added or updated inpackages/\*\*/__tests__
🔥