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

feat: resend invitation #203

Merged
merged 11 commits into from
Jan 16, 2024
Merged

feat: resend invitation #203

merged 11 commits into from
Jan 16, 2024

Conversation

andrii-uhryn-absa
Copy link
Collaborator

@andrii-uhryn-absa andrii-uhryn-absa commented Jan 10, 2024

Screen.Recording.2024-01-11.at.11.47.59.mov

Copy link
Collaborator

@jakubkoci jakubkoci left a comment

Choose a reason for hiding this comment

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

We shouldn't put responsibility for sending an e-mail to the submission service. I also added a few cosmetic suggestions, otherwise, looks quite nice 👍

Right now, we can just move the sendInvitationEmail into emailClient. Eventually, we can create an emailService if the emailClient grows too much.

Copy link
Collaborator

@jakubkoci jakubkoci left a comment

Choose a reason for hiding this comment

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

It seems we'll have to introduce an email service where we can put the logic that's currently duplicated in emailClientStub. At the same time, we should reconsider how do we work with the stub in the tests, when to init or remove all messages so that each test has same original conditions and they don't influence each other.

packages/backend/src/email/client-stub.ts Show resolved Hide resolved
packages/backend/src/server.test.ts Show resolved Hide resolved
@jakubkoci jakubkoci merged commit 1a61f05 into main Jan 16, 2024
5 checks passed
@jakubkoci jakubkoci deleted the feat/resend-invitation branch January 16, 2024 15:07
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