-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
chore(analytics): track in-app groups with groups metrics #2678
chore(analytics): track in-app groups with groups metrics #2678
Conversation
b718b72
to
2e48f90
Compare
dst: { baseUrn: appURN }, | ||
}, | ||
}) | ||
if (ownershipEdges.length === 0) { |
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 already have this structure in context from the ownsAppsMiddleware. You should be able to use the data without the additional edges call 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.
Hmm, this relates to finding out the actual owner URN of the app, which could be the current Identity URN (for own apps) or a Group URN of which the current Identity URN is part of (for all apps). We need to find the owner in order to assess if it's a personal or a group app and set the group analytics entry if it's the latter.
What we don't have in the data is this concept of ownership, I think we only have a list of app urns that are owned either by current Identity URN or a Group URN of which the current Identity URN is part of.
dst: { baseUrn: appURN }, | ||
}, | ||
}) | ||
if (ownershipEdges.length === 0) { |
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.
Same comment as for publishApp
2e48f90
to
c95b1aa
Compare
Putting it back on draft as there are some strange things with events posthog side that I need to further investigate. |
c95b1aa
to
3a65461
Compare
) | ||
} | ||
|
||
ctx.waitUntil?.(buildAnalyticsEvent()) |
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.
Combine this ctx.waitUntil
with the one above. There shouldn't be two here, now that we have an async function that can encapsulate all of the analytics logic.
3a65461
to
09eb086
Compare
Description
Related Issues
Testing
Checklist