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

optimize:optimize the auto-configuration processing of starter #3441

Merged
merged 11 commits into from
Jan 19, 2021
Merged

optimize:optimize the auto-configuration processing of starter #3441

merged 11 commits into from
Jan 19, 2021

Conversation

xingfudeshi
Copy link
Member

Ⅰ. Describe what this PR did

The current implementation of seata auto-confuguration does not seem good.The PR does a optimization of it.

Ⅱ. Does this pull request fix one issue?

fixes #3440

Ⅲ. Why don't you add test cases (unit test/integration test)?

I have tested it with spring-boot-mybatis

Ⅳ. Describe how to verify it

Please test it with seata-samples(spring-boot-mybatis).

Ⅴ. Special notes for reviews

@xingfudeshi xingfudeshi added this to the 1.5.0 milestone Jan 6, 2021
@codecov-io
Copy link

codecov-io commented Jan 6, 2021

Codecov Report

Merging #3441 (83bd036) into develop (e9ff5f9) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #3441      +/-   ##
=============================================
- Coverage      51.57%   51.56%   -0.01%     
+ Complexity      3376     3374       -2     
=============================================
  Files            617      619       +2     
  Lines          20467    20468       +1     
  Branches        2564     2564              
=============================================
- Hits           10555    10554       -1     
  Misses          8852     8852              
- Partials        1060     1062       +2     
Impacted Files Coverage Δ Complexity Δ
...ing/boot/autoconfigure/SeataAutoConfiguration.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...utoconfigure/SeataDataSourceAutoConfiguration.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...utoconfigure/SeataPropertiesAutoConfiguration.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...n/src/main/java/io/seata/common/util/IdWorker.java 77.08% <0.00%> (-6.25%) 11.00% <0.00%> (-1.00%)
...o/seata/server/coordinator/DefaultCoordinator.java 53.92% <0.00%> (-0.50%) 28.00% <0.00%> (-1.00%)
...in/java/io/seata/server/session/GlobalSession.java 83.63% <0.00%> (-0.46%) 71.00% <0.00%> (-1.00%)
...torage/file/store/FileTransactionStoreManager.java 57.41% <0.00%> (+0.64%) 29.00% <0.00%> (+1.00%)
...c/main/java/io/seata/config/FileConfiguration.java 44.25% <0.00%> (+1.14%) 12.00% <0.00%> (ø%)

…e_auto_configuration

� Conflicts:
�	changes/1.5.0.md
�	changes/en-us/1.5.0.md
�	seata-spring-boot-starter/src/main/java/io/seata/spring/boot/autoconfigure/SeataAutoConfiguration.java
Copy link
Contributor

@funky-eyes funky-eyes left a comment

Choose a reason for hiding this comment

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

LGTM

…e_auto_configuration

� Conflicts:
�	changes/1.5.0.md
�	changes/en-us/1.5.0.md
Copy link
Contributor

@wangliang181230 wangliang181230 left a comment

Choose a reason for hiding this comment

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

LGTM

@xingfudeshi xingfudeshi merged commit 23751d6 into apache:develop Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The auto-configuration of seata starter should be optimized
5 participants