Skip to content

Refactor alert plugins and simplify its usage#6723

Merged
CalvinKirs merged 1 commit intoapache:devfrom
kezhenxu94:plugin-refactor/alert
Nov 9, 2021
Merged

Refactor alert plugins and simplify its usage#6723
CalvinKirs merged 1 commit intoapache:devfrom
kezhenxu94:plugin-refactor/alert

Conversation

@kezhenxu94
Copy link
Member

This follows up #6712 and should be merged after #6712

@CalvinKirs @dailidong @lenboo please take a look, this greatly simplifies how to develop a new plugin and how to use the plugins, and running locally.

@codecov-commenter
Copy link

codecov-commenter commented Nov 7, 2021

Codecov Report

Merging #6723 (e433e34) into dev (02350ea) will increase coverage by 0.06%.
The diff coverage is 64.24%.

❗ Current head e433e34 differs from pull request most recent head 6121bc5. Consider uploading reports for the commit 6121bc5 to get more accurate results
Impacted file tree graph

@@             Coverage Diff              @@
##                dev    #6723      +/-   ##
============================================
+ Coverage     41.35%   41.41%   +0.06%     
+ Complexity     3602     3595       -7     
============================================
  Files           638      625      -13     
  Lines         26176    26103      -73     
  Branches       2834     2847      +13     
============================================
- Hits          10824    10810      -14     
+ Misses        14370    14315      -55     
+ Partials        982      978       -4     
Impacted Files Coverage Δ
...plugin/alert/dingtalk/DingTalkParamsConstants.java 0.00% <0.00%> (ø)
...inscheduler/plugin/alert/email/EmailConstants.java 0.00% <0.00%> (ø)
...eduler/plugin/alert/email/MailParamsConstants.java 0.00% <0.00%> (ø)
...gin/alert/email/exception/AlertEmailException.java 50.00% <ø> (ø)
...ler/plugin/alert/email/template/AlertTemplate.java 0.00% <ø> (ø)
...ler/plugin/alert/feishu/FeiShuParamsConstants.java 0.00% <0.00%> (ø)
...scheduler/plugin/alert/feishu/HttpRequestUtil.java 0.00% <0.00%> (ø)
...cheduler/plugin/alert/http/HttpAlertConstants.java 0.00% <0.00%> (ø)
.../dolphinscheduler/plugin/alert/script/OSUtils.java 33.33% <0.00%> (ø)
...ler/plugin/alert/script/ScriptParamsConstants.java 0.00% <0.00%> (ø)
... and 44 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 02350ea...6121bc5. Read the comment docs.

@kezhenxu94
Copy link
Member Author

@CalvinKirs @dailidong @lenboo this can be reviewed now

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 9, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 3 Security Hotspots
Code Smell A 86 Code Smells

56.6% 56.6% Coverage
1.3% 1.3% Duplication

@kezhenxu94 kezhenxu94 requested a review from davidzollo November 9, 2021 09:26
@kezhenxu94
Copy link
Member Author

Hey @ruanwenjun , wanna take a look at this?

Copy link
Contributor

@davidzollo davidzollo left a comment

Choose a reason for hiding this comment

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

+1
great job

Copy link
Member

@CalvinKirs CalvinKirs left a comment

Choose a reason for hiding this comment

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

LGTM

@CalvinKirs CalvinKirs merged commit 05bae0b into apache:dev Nov 9, 2021
@kezhenxu94 kezhenxu94 deleted the plugin-refactor/alert branch November 9, 2021 12:22
@CalvinKirs CalvinKirs added this to the 2.0.0-release milestone Nov 10, 2021
lenboo pushed a commit that referenced this pull request Nov 30, 2021
* data source spi

* Fix datasource not work in tests and standalone server, and run all tests by default (#6743)

* Refactor alert plugins and simplify its usage (#6723)

* [Fix-6792] resolve API and alert port conflicts (#6792) (#6815)

* [Fix-6792]Multiple ApplicationRunners on classpath make SpringApplication.run only run one (#6792)

* [Feature][datasource] Change DataSource Connection Pool from Druid to HiKariCP (#6490) (#6828)

* [Feature][datasource] Change DataSource Connection Pool from Druid to HiKariCP (#6490)

* fix pom dep scope

* filter alert

* filter alert

* filter alert

* fix checkstyle

* remove hikaricp version

* update pom

* add properties

* add properties

* rename properties

* fix e2e fail

* rename properties

* [Fix-6792] resolve API and alert port conflicts (#6792) (#6815)

[Fix-6792]Multiple ApplicationRunners on classpath make SpringApplication.run only run one (#6792)

* fix ut fail

* fix license

* fix license

* update package

* update package

* remove unused license

Co-authored-by: mask <39329477+narcasserun@users.noreply.github.com>
Co-authored-by: kezhenxu94 <kezhenxu94@apache.org>
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