OpenMetadata/openmetadata-spec
Siddhant d17d13cee8
Email template provider (#17015)
* Implemented TemplateProvider.

* validating templatePlaceholders.

* Refactor: Update query to fetch documents for EmailTemplate type. Implemented a function that retrieves documents from doc_store for documents of type "EmailTemplate". This function returns the email template content.

* revert commit.

* revert commit.

* revert commit.

* implemented templateProvider.

* Added placeholders definition (emailTemplatePlaceholder.json) for each emailTemplates.

* implemented resetSeedApi.
implemented schema for emailTemplate and emailTemplatePlaceholder.
implemented util functions for fetching placeHolders.

* Fix Issue in Template Provider

* Updated EmailUtil to use getTemplate from DocStore.
Updated ResetEmailTemplate API to only reset EmailTemplate type documents.
Cleaned up the previous method for retrieving the template from the path.

* fixes.

* added email validation test.

* Remove ftls

* Update code to better structure

* Fix Failing Tests

* Add Custom Exception and error on null entity

* Update Default Template Provier

* Fix Condition

* Correct Message

* added dataInsightReport.json

* fix dataInsightReport.json

* Fix Failing Test

---------

Co-authored-by: mohitdeuex <mohit.y@deuexsolutions.com>
2024-07-25 12:03:34 +05:30
..
2024-07-25 12:03:34 +05:30