-
Notifications
You must be signed in to change notification settings - Fork 66
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
Feature alerting mail support html format #586 #614
Feature alerting mail support html format #586 #614
Conversation
e10c4f1
to
e2a4e4f
Compare
Signed-off-by: Chenyang Ji <[email protected]> Signed-off-by: Chenyang Ji <[email protected]> Co-authored-by: Chenyang Ji <[email protected]> Signed-off-by: danielkyalo599 <[email protected]>
…stom webhook to select message Signed-off-by: danielkyalo599 <[email protected]>
…stom webhook to select message Signed-off-by: danielkyalo599 <[email protected]>
Signed-off-by: danielkyalo599 <[email protected]>
d1f59a9
to
893e378
Compare
@@ -153,7 +153,7 @@ jobs: | |||
uses: actions/cache@v2 | |||
with: | |||
path: ${{ matrix.cypress_cache_folder }} | |||
key: cypress-cache-v2-${{ runner.os }}-${{ hashFiles('**/package.json') }} | |||
key: cypress-cache-v2-${{ runner.os }}-${{ hashFiles('OpenSearch-Dashboards/plugins/dashboards-notifications/package.json') }} |
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.
why is this needed?
@@ -8,5 +8,5 @@ package org.opensearch.notifications.spi.model.destination | |||
* Supported notification destinations | |||
*/ | |||
enum class DestinationType { | |||
CHIME, SLACK, CUSTOM_WEBHOOK, SMTP, SES, SNS | |||
CHIME, SLACK, CUSTOM_WEBHOOK, SMTP, SES, SNS, TELEGRAM |
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.
remove telegram from this PR as its part of another pr
Please provide screen shots of the html support working. |
Repeated PR, close this. |
Description
Feature alerting mail support html format #586
Issues Resolved
To make the MessageContent class support HTML format for email notifications,I modified the buildMessageWithTitle method to take into account the htmlDescription property.
With this change, the method will return the htmlDescription property if it is not null, otherwise it will return the concatenation of the title and text description as before.
Furthermore , I modified the init block to check if the htmlDescription property is not null, since it's no longer required.
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.