Skip to content

[Feature-8245][Alert] Add Alert Plugin Telegram#8246

Merged
zhongjiajie merged 16 commits into
apache:devfrom
pinkhello:telegram-plugin
Feb 7, 2022
Merged

[Feature-8245][Alert] Add Alert Plugin Telegram#8246
zhongjiajie merged 16 commits into
apache:devfrom
pinkhello:telegram-plugin

Conversation

@pinkhello
Copy link
Copy Markdown
Contributor

@pinkhello pinkhello commented Jan 28, 2022

Purpose of the pull request

This pull request add alert telegram plugin

Brief change log

  • Add dolphinscheduler-alert-telegram to root pom.xml
  • Add dolphinscheduler-alert-telegram to dolphinscheduler-alert/dolphinscheduler-alert-plugins/pom.xml
  • Add dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-telegram folder
  • Modify dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-slack/.../SlackAlertChannelFactory.java
  • Modify dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-slack/.../SlackParamsConstants.java
  • Modify dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-slack/.../SlackSender.java
  • Modify dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-slack/.../SlackSenderTest.java

Verify this pull request

Added dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-telegram/.../TelegramAlertChannelFactoryTest.java and dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-telegram/.../TelegramSenderTest.java to verify the change.

close #8245

@zhongjiajie
Copy link
Copy Markdown
Member

@pinkhello I approve and run CI. but please solved the conflict.

1 similar comment
@zhongjiajie
Copy link
Copy Markdown
Member

@pinkhello I approve and run CI. but please solved the conflict.

@zhongjiajie
Copy link
Copy Markdown
Member

Seem you missing the ASF license header

ERROR the following files don't have a valid license header: 
679
dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-telegram/README.MD
680
dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-telegram/src/main/java/org/apache/dolphinscheduler/plugin/alert/telegram/TelegramAlertChannel.java
681
dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-telegram/src/main/java/org/apache/dolphinscheduler/plugin/alert/telegram/TelegramAlertChannelFactory.java
682
dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-telegram/src/main/java/org/apache/dolphinscheduler/plugin/alert/telegram/TelegramAlertConstants.java
683
dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-telegram/src/main/java/org/apache/dolphinscheduler/plugin/alert/telegram/TelegramParamsConstants.java
684
dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-telegram/src/main/java/org/apache/dolphinscheduler/plugin/alert/telegram/TelegramSender.java 

@pinkhello
Copy link
Copy Markdown
Contributor Author

pinkhello commented Jan 29, 2022

@pinkhello I approve and run CI. but please solved the conflict.

@zhongjiajie
OK , DONE

@pinkhello pinkhello closed this Jan 29, 2022
@pinkhello pinkhello reopened this Jan 29, 2022
@pinkhello
Copy link
Copy Markdown
Contributor Author

Seem you missing the ASF license header

ERROR the following files don't have a valid license header: 
679
dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-telegram/README.MD
680
dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-telegram/src/main/java/org/apache/dolphinscheduler/plugin/alert/telegram/TelegramAlertChannel.java
681
dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-telegram/src/main/java/org/apache/dolphinscheduler/plugin/alert/telegram/TelegramAlertChannelFactory.java
682
dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-telegram/src/main/java/org/apache/dolphinscheduler/plugin/alert/telegram/TelegramAlertConstants.java
683
dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-telegram/src/main/java/org/apache/dolphinscheduler/plugin/alert/telegram/TelegramParamsConstants.java
684
dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-telegram/src/main/java/org/apache/dolphinscheduler/plugin/alert/telegram/TelegramSender.java 

done

@pinkhello
Copy link
Copy Markdown
Contributor Author

@pinkhello I approve and run CI. but please solved the conflict.

@zhongjiajie resolved

@zhongjiajie
Copy link
Copy Markdown
Member

Just approve to run the CI right now

@pinkhello
Copy link
Copy Markdown
Contributor Author

Just approve to run the CI right now

done

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jan 29, 2022

Codecov Report

Merging #8246 (ecc21d1) into dev (c160bfb) will increase coverage by 0.15%.
The diff coverage is 69.56%.

Impacted file tree graph

@@             Coverage Diff              @@
##                dev    #8246      +/-   ##
============================================
+ Coverage     45.16%   45.32%   +0.15%     
- Complexity     3983     3999      +16     
============================================
  Files           678      683       +5     
  Lines         26343    26502     +159     
  Branches       2836     2845       +9     
============================================
+ Hits          11899    12013     +114     
- Misses        13321    13362      +41     
- Partials       1123     1127       +4     
Impacted Files Coverage Δ
...duler/plugin/alert/slack/SlackParamsConstants.java 33.33% <ø> (ø)
.../plugin/alert/telegram/TelegramAlertConstants.java 0.00% <0.00%> (ø)
...plugin/alert/telegram/TelegramParamsConstants.java 0.00% <0.00%> (ø)
...er/plugin/alert/telegram/TelegramAlertChannel.java 16.66% <16.66%> (ø)
...cheduler/plugin/alert/telegram/TelegramSender.java 54.54% <54.54%> (ø)
...r/plugin/alert/slack/SlackAlertChannelFactory.java 100.00% <100.00%> (ø)
...lphinscheduler/plugin/alert/slack/SlackSender.java 25.00% <100.00%> (ø)
...in/alert/telegram/TelegramAlertChannelFactory.java 100.00% <100.00%> (ø)
...org/apache/dolphinscheduler/remote/utils/Host.java 37.77% <0.00%> (-2.23%) ⬇️
...inscheduler/common/task/sqoop/SqoopParameters.java 74.00% <0.00%> (-2.00%) ⬇️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c160bfb...ecc21d1. Read the comment docs.

Copy link
Copy Markdown
Contributor

@yimaixinchen yimaixinchen left a comment

Choose a reason for hiding this comment

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

errorCode might be standard.can replace error_code for errorCode

@sonarqubecloud
Copy link
Copy Markdown

SonarCloud Quality Gate failed.    Quality Gate failed

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

70.7% 70.7% Coverage
4.2% 4.2% Duplication

@pinkhello
Copy link
Copy Markdown
Contributor Author

PasswordParam class check error!

@pinkhello
Copy link
Copy Markdown
Contributor Author

errorCode might be standard.can replace error_code for errorCode
done! Sonar check error cause by PasswordParam

Copy link
Copy Markdown
Contributor

@caishunfeng caishunfeng left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Member

@zhongjiajie zhongjiajie left a comment

Choose a reason for hiding this comment

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

LGTM

@zhongjiajie zhongjiajie merged commit 84b004d into apache:dev Feb 7, 2022
@zhongjiajie zhongjiajie changed the title [Feature-8245][Alert] Support Alert Telegram Plugin [Feature-8245][Alert] Add Alert Plugin Telegram Feb 7, 2022
@zhongjiajie
Copy link
Copy Markdown
Member

Hi @pinkhello , thanks for your contribution and welcome to join the community 🎉 . If you want to contribute but could not find issues, maybe you could start in #5689 or just search our issue list https://github.com/apache/dolphinscheduler/issues. Looking forward to your next contribution

@zhongjiajie
Copy link
Copy Markdown
Member

BTW @pinkhello , we have WeChat groups to discuss dolphinscheduler’s feature and usage, and publish some tasks wanted some time. If you are interested in join WeChat group, please connect my WeChat id zhongjiajie955

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request feature new feature first time contributor First-time contributor plug-in

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature][Alert] Support Telegram Plugin

5 participants