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

[SELC-3158] feat: send mail async with contract #38

Merged
merged 6 commits into from
Nov 10, 2023

Conversation

manuraf
Copy link
Contributor

@manuraf manuraf commented Nov 10, 2023

List of Changes

  • Added a new asynchronous step to the workflow.
  • Integrated functionality to trigger email delivery during onboarding.
  • Implemented the attachment of the organization's contract to the outgoing email.

Motivation and Context

This pull request introduces a enhancement by implementing a new asynchronous step in the workflow. Specifically, it enables the seamless initiation of an email dispatch during the onboarding of an organization from the frontend, along with the attachment of the corresponding contract.

How Has This Been Tested?

  1. Navigate to the organization onboarding section in the frontend.
  2. Complete the onboarding process for a test organization.
  3. Verify that the email notification is sent promptly.
  4. Check the email content and confirm the correct attachment of the organization's contract.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@manuraf manuraf requested a review from a team as a code owner November 10, 2023 09:45
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 1 Security Hotspot
Code Smell A 49 Code Smells

63.4% 63.4% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@manuraf manuraf merged commit fc334eb into develop Nov 10, 2023
4 of 6 checks passed
@manuraf manuraf deleted the feature/SELC-3158-send-mail-with-contract branch November 10, 2023 12:08
@@ -77,7 +94,8 @@ public File createContractPDF(String contractTemplatePath, Onboarding onboarding
log.debug("data Map for PDF: {}", data);
getPDFAsFile(files, contractTemplateText, data);

//return signContract(institution, request, files.toFile());
// Define the filename and path for storage.
/* return signContract(institution, request, files.toFile()); */
final String filename = String.format(PDF_FORMAT_FILENAME, onboarding.getOnboardingId());
Copy link
Contributor

@gunzip gunzip Nov 10, 2023

Choose a reason for hiding this comment

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

this will overwrite the file on azure storage for subsequent calls, is this right?

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.

3 participants