-
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
feat(analytics): add & deprecate pre-defined analytics events #3385
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3385 +/- ##
==========================================
- Coverage 62.89% 56.52% -6.37%
==========================================
Files 113 108 -5
Lines 3705 3433 -272
Branches 192 0 -192
==========================================
- Hits 2330 1940 -390
- Misses 1328 1493 +165
+ Partials 47 0 -47 |
…-native-firebase into @russell/analytics-types
/** | ||
* Purchase currency in 3 letter [ISO_4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. E.g. `USD`. | ||
*/ | ||
//TODO if value is a param, so must currency: https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.Event#public-static-final-string-add_to_wishlist |
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.
TODO here
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.
I'm not actually sure about this. If currency
is a property on the object then value
must also be present.
I think we will have to update the event types to have something like this: https://stackoverflow.com/a/51507473 what do you think?
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.
Some additional points:
- Can we move the JS only tests to Jest: https://github.com/invertase/react-native-firebase/blob/master/packages/analytics/__tests__/analytics.test.ts @dackers86 can assist with this if needed
- Can we have a change log in the PR description of all the changes, like you did for the Remote Config PR
- Can you add eslint ignore comment lines on each of the
console.warn
lines of the deprecations, like on the Remote Config PR - Can
types-test.ts
be updated to call the new apis to make sure types are functioning correctly
Ta
…-native-firebase into @russell/analytics-types
Co-authored-by: Mike Diarmid <[email protected]>
I've had to temporarily stop the |
…-native-firebase into @russell/analytics-types
…-native-firebase into @russell/analytics-types
…ase#3385) * updating analytics types * further type updates * update log events for analytics * update validation * feat(analytics): update events & tests * tests(analytics): update * build(analytics): types & type tests * chore(analytics): update to revised api * feat(analytics): further updates for package * Apply suggestions from code review Co-authored-by: Mike Diarmid <[email protected]> * tests(analytics): update tests * tests(ml-vision): stop testing ml-vision * chore(*): spelling * chore(*): spelling * chore(analytics): update ts docs Co-authored-by: Mike Diarmid <[email protected]> [publish]
…ase#3385) * updating analytics types * further type updates * update log events for analytics * update validation * feat(analytics): update events & tests * tests(analytics): update * build(analytics): types & type tests * chore(analytics): update to revised api * feat(analytics): further updates for package * Apply suggestions from code review Co-authored-by: Mike Diarmid <[email protected]> * tests(analytics): update tests * tests(ml-vision): stop testing ml-vision * chore(*): spelling * chore(*): spelling * chore(analytics): update ts docs Co-authored-by: Mike Diarmid <[email protected]> [publish]
fixes #3512
New API
New event methods added.
Removed API
API that now fires a
console.warn()
when called.Unchanged or slight modifications
Following API may have changed in minor ways
currency
&value
properties which require the compound property check to ensure both are present if one is present.Notes
analytics.test.ts
.