Skip to content

feat: add configurable email templates - #1173

Merged
gnyiri merged 139 commits into
developfrom
add-configurable-email-templates
Mar 16, 2026
Merged

feat: add configurable email templates#1173
gnyiri merged 139 commits into
developfrom
add-configurable-email-templates

Conversation

@gnyiri

@gnyiri gnyiri commented Sep 8, 2025

Copy link
Copy Markdown
Collaborator

Description

Configure email templates from UI. The PR introduces a new table for storing email templates (name, description, subject, body). The logic of assigning email templates to status actions will be the same as before: the user selects the template name from the list of available templates (populated from DB).

Important notes:

  • email handler classes will still be able to use the original approach (file based templates). If the email template of the given name don't exist in the DB the email service will try to look for a template file with the given name and use it as a template
  • the migration will only be partial and a one-time manual step will be needed from STFC after deployment: the body/subject of the email templates have to be manually copied from the physical files so that the email templates will be stored in the DB (since I only have the template names and not the content).

Motivation and Context

At ELI we frequently change the email templates and found it uncomfortable to write physical files on the host of the backend.

How Has This Been Tested

Manual tests + backend test.

Fixes

N/A

Changes

See above

Depends on

N/A

Tests included/Docs Updated?

Yes

  • [ x] I have added tests to cover my changes.
  • All relevant doc has been updated

@gnyiri gnyiri changed the title Add configurable email templates feat: add configurable email templates Sep 8, 2025
@gnyiri
gnyiri requested a review from yoganandaness March 2, 2026 09:29
@gnyiri
gnyiri merged commit 5fc6fae into develop Mar 16, 2026
22 checks passed
@gnyiri
gnyiri deleted the add-configurable-email-templates branch March 16, 2026 09:51
@jekabs-karklins

Copy link
Copy Markdown
Contributor

❤️

@yoganandaness
yoganandaness restored the add-configurable-email-templates branch March 17, 2026 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants