-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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(core): Prevent calling internal hook email event if emailing is disabled #8462
fix(core): Prevent calling internal hook email event if emailing is disabled #8462
Conversation
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.
couple of more comments
…ernal-hook-event-if-email-not-sent
private readonly urlService: UrlService, | ||
private readonly internalHooks: InternalHooks, |
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 can't do this yet. there is still an annoying circular dependency that'll prevent the app from actually starting up.
Container.get(UserService).setMailer(mailer); | ||
Container.get(InvitationController).setExternalHooks(externalHooks); |
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'd prefer not start using this format. All dependencies should be injected, and never modified after that.
To fix this test, we need to move all calls to mockInstance
to be before setupTestServer
, and that should do the trick.
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.
Thank you, I had a feeling this was not the way but could not find the answer in a short time.
3 flaky tests on run #3947 ↗︎
Details:
5-ndv.cy.ts • 1 flaky test
24-ndv-paired-item.cy.ts • 1 flaky test
28-debug.cy.ts • 1 flaky test
Review all test suite changes for PR #8462 ↗︎ |
✅ All Cypress E2E specs passed |
…error-states * master: fix(editor): Send template id as a number in telemetry events (#8484) refactor(core): Replace promisify-d node calls with native promises (no-changelog) (#8464) fix(core): Fix stopping and retrying failed executions (#8480) feat: Add model parameter to OpenAI embeddings (#8481) fix(editor): Disable expression editor modal opening on readonly field (#8457) fix(core): Prevent calling internal hook email event if emailing is disabled (#8462)
Got released with |
Ensure we do not call telemetry event
Instance sent transactional email to user
If emailing is disabled when resource is shared.Follow-up to: #8408