-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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(api-service): Usage insights email #7346
base: next
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for dev-web-novu ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for dashboard-v2-novu-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
LaunchDarkly flag references🔍 1 flag added or modified
|
@@ -24,7 +24,7 @@ export const getBridgeUrl = async (): Promise<string> => { | |||
|
|||
// Local environments | |||
try { | |||
if (process.env.NODE_ENV === 'development') { | |||
if (process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'local') { |
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.
Allow passing the well known also for the local environment not only dev
@novu/client
@novu/headless
@novu/framework
@novu/node
@novu/notification-center
novu
@novu/providers
@novu/shared
commit: |
} from '../types/usage-insights.types'; | ||
|
||
@Injectable() | ||
export class MetricsCalculatorService { |
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 service is normalizing the mixpanel data structure to our own dto
import { join } from 'path'; | ||
import { IMixpanelInboxResponse, IMixpanelTriggerResponse } from '../types/usage-insights.types'; | ||
|
||
const USE_INSIGHTS_CACHE = process.env.USE_INSIGHTS_CACHE === 'true'; |
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.
Caching is used locally for development to avoid rate limits
@@ -0,0 +1,117 @@ | |||
import { ChannelTypeEnum } from '@novu/shared'; | |||
|
|||
export enum MixpanelTriggerEventNameEnum { |
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.
Types for mixpanel API response
What changed? Why was the change needed?
Rollout plan
Screenshots
Expand for optional sections
Related enterprise PR
Special notes for your reviewer