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

Feature alerting mail support html format #586 #614

Conversation

dankyalo599
Copy link
Contributor

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

  • [X ] Commits are signed per the DCO using --signoff

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.

@dankyalo599 dankyalo599 requested a review from a team February 13, 2023 06:20
@dankyalo599 dankyalo599 force-pushed the _FEATURE_Alerting_mail_support_html_format_#586 branch from e10c4f1 to e2a4e4f Compare February 13, 2023 06:21
ansjcy and others added 4 commits February 13, 2023 09:36
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]>
@dankyalo599 dankyalo599 force-pushed the _FEATURE_Alerting_mail_support_html_format_#586 branch from d1f59a9 to 893e378 Compare February 13, 2023 06:37
@@ -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') }}
Copy link
Member

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
Copy link
Member

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

@lezzago
Copy link
Member

lezzago commented Feb 16, 2023

Please provide screen shots of the html support working.

@gaobinlong
Copy link
Collaborator

Repeated PR, close this.

@gaobinlong gaobinlong closed this Jun 1, 2023
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.

4 participants