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

Add complete status #145

Merged
merged 18 commits into from
Aug 3, 2024
Merged

Conversation

mayura-andrew
Copy link
Member

Purpose

The purpose of this PR is to fix #122

Goals

  • Enable admins to change the application status to 'COMPLETE'.
  • Notify mentees via email upon status change.
  • Generate a completion certificate for each mentee and attach it to the notification email.

Approach

Screenshots

Checklist

  • This PR doesn't commit any keys, passwords, tokens, usernames, or other secrets.
  • I have read and understood the development best practices guidelines ( http://bit.ly/sef-best-practices )
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation

Related PRs

#130

Test environment

Learning

mayura-andrew and others added 17 commits July 11, 2024 05:47
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]>
The code changes in `utils.ts` update the path for generating certificates. The previous path `./src/certificates/mentee/${uniqueId}_certificate.pdf` has been changed to `./certificates/${uniqueId}_certificate.pdf`. This change ensures that the certificates are generated in the correct directory.

Note: Please remove any meta information like issue references, tags, or author names from the commit message.
src/utils.ts Outdated
'./src/certificates/certificate_template.pdf',
`./src/certificates/mentee/${uniqueId}_certificate.pdf`
'./certificates/certificate_template.pdf',
`./certificates/${uniqueId}_certificate.pdf`
Copy link
Member

Choose a reason for hiding this comment

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

what if the certificates directory doesn't exist?

The code changes update the path for generating certificates in `utils.ts`. The previous path `./src/certificates/mentee/${uniqueId}_certificate.pdf` has been changed to `./certificates/${uniqueId}_certificate.pdf`. This change ensures that the certificates are generated in the correct directory.
Copy link
Member

@anjula-sack anjula-sack left a 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!

@anjula-sack anjula-sack merged commit dba439b into sef-global:main Aug 3, 2024
1 check passed
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.

Add "COMPLETE" state for applications.
2 participants