Skip to content
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(api-service): translation groups causing long response time in v2 create/update workflow #7450

Merged

Conversation

LetItRock
Copy link
Contributor

What changed? Why was the change needed?

The Translation Groups (TranslationService) are causing slow response time. The translations code is not relevant in v2.

Screenshots

Expand for optional sections

Related enterprise PR

Special notes for your reviewer

Copy link

linear bot commented Jan 7, 2025

Copy link

netlify bot commented Jan 7, 2025

Deploy Preview for dashboard-v2-novu-staging ready!

Name Link
🔨 Latest commit 8781f78
🔍 Latest deploy log https://app.netlify.com/sites/dashboard-v2-novu-staging/deploys/677d52245f06c50007292297
😎 Deploy Preview https://deploy-preview-7450.dashboard-v2.novu-staging.co
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 7, 2025

Deploy Preview for dev-web-novu ready!

Name Link
🔨 Latest commit 8781f78
🔍 Latest deploy log https://app.netlify.com/sites/dev-web-novu/deploys/677d5224fcdeee0008eedd47
😎 Deploy Preview https://deploy-preview-7450.dashboard.novu-staging.co
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Comment on lines +119 to +121
(process.env.NOVU_ENTERPRISE === 'true' ||
process.env.CI_EE_TEST === 'true') &&
storedWorkflow.origin === WorkflowOriginEnum.NOVU_CLOUD_V1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only run the translation analytics code in v1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally, we should not load the translations during the message sent in the SendMessageBase usecase, but I haven't added any logic there because there is no workflow information at that stage, like the NotificationStepEntity is missing the workflow info and particularly the origin field.
To do that, it might require more work.

@LetItRock LetItRock merged commit 73b8466 into next Jan 7, 2025
35 of 36 checks passed
@LetItRock LetItRock deleted the nv-5145-translation-groups-causing-long-response-time branch January 7, 2025 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants