-
Notifications
You must be signed in to change notification settings - Fork 39
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
Implement Application Completion Workflow with Certificate Generation and Email Notification #130
Implement Application Completion Workflow with Certificate Generation and Email Notification #130
Conversation
src/utils.ts
Outdated
const pdfFileName = await generateCertificate( | ||
name, | ||
'./src/certificates/certificate_template.pdf', | ||
`./src/certificates/${name}_certificate.pdf` |
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.
Shall we use a unique id here? There might be a chance of having the same name. Also you need to update the certificate_id field of the mentee with file path as well.
`./src/certificates/${name}_certificate.pdf` | |
`./src/certificates/${name}_certificate.pdf` |
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.
okay sure
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.
@@ -12,7 +12,8 @@ export enum EmailStatusTypes { | |||
export enum ApplicationStatus { |
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.
Shall we rename this to MenteeStatus
and create separate one form Mentors? Cuz mentors don't need a completed state.
export enum ApplicationStatus { | |
export enum MenteeStatus { |
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.
For now, could we avoid changing this? There is a lot of refactoring involved.
This commit updates the Mentee entity to use the UUID data type for the `certificate_id` column instead of the `bigint` data type. This change ensures compatibility with the UUID data type in the database and improves data integrity. Co-authored-by: Dileepa Mabulage <[email protected]>
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.
Can you resolve the conflicts? @mayura-andrew
|
package.json
Outdated
"passport-linkedin-oauth2": "github:auth0/passport-linkedin-oauth2#v3.0.0", | ||
"pg": "^8.10.0", | ||
"reflect-metadata": "^0.1.13", | ||
"ts-node": "^10.9.1", | ||
"typeorm": "^0.3.16" | ||
"typeorm": "^0.3.16", | ||
"uuid": "^10.0.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.
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! @mayura-andrew
Purpose
The purpose of this PR is to fix #122
Goals
Approach
To achieve the above goals, the following steps were taken:
Screenshots
Checklist
Related PRs
Test environment
Learning
During the development of this feature, I explored several resources to understand how to effectively use the pdf-lib library for PDF manipulation and how to attach files to emails programmatically. This included reviewing documentation, blog posts, and tutorials related to pdf-lib and email handling in Node.js applications.