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: compatible with integration-tx-api module and spring module #6342

Merged
merged 7 commits into from
Feb 16, 2024

Conversation

xingfudeshi
Copy link
Member

@xingfudeshi xingfudeshi commented Feb 7, 2024

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

Ⅱ. Does this pull request fix one issue?

fixes #6334
fixes #6335

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

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@xingfudeshi xingfudeshi changed the title optimize:compatible with integration-tx-api module optimize:compatible with integration-tx-api module and spring module Feb 7, 2024
Copy link
Member

@slievrly slievrly left a comment

Choose a reason for hiding this comment

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

some checkstyle failed.
image

@xingfudeshi
Copy link
Member Author

some checkstyle failed.

image

ok

@codecov-commenter
Copy link

codecov-commenter commented Feb 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (486f582) 51.94% compared to head (c6f171c) 51.92%.
Report is 3 commits behind head on 2.x.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##                2.x    #6342      +/-   ##
============================================
- Coverage     51.94%   51.92%   -0.03%     
+ Complexity     5186     5183       -3     
============================================
  Files           921      921              
  Lines         32166    32166              
  Branches       3874     3874              
============================================
- Hits          16709    16702       -7     
- Misses        13821    13829       +8     
+ Partials       1636     1635       -1     
Files Coverage Δ
...egration/tx/api/interceptor/ActionContextUtil.java 34.40% <ø> (ø)
...handler/GlobalTransactionalInterceptorHandler.java 33.72% <100.00%> (ø)
...r/parser/GlobalTransactionalInterceptorParser.java 28.57% <100.00%> (ø)

... and 5 files with indirect coverage changes

@xingfudeshi
Copy link
Member Author

Ok.I got the point.Thank you!

@slievrly slievrly mentioned this pull request Feb 15, 2024
1 task
@xingfudeshi
Copy link
Member Author

Done. @slievrly

Copy link
Member

@slievrly slievrly left a comment

Choose a reason for hiding this comment

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

LGTM

@slievrly slievrly changed the title optimize:compatible with integration-tx-api module and spring module optimize: compatible with integration-tx-api module and spring module Feb 16, 2024
@slievrly slievrly merged commit 65610d0 into apache:2.x Feb 16, 2024
6 checks passed
@slievrly slievrly added this to the 2.1.0 milestone Feb 16, 2024

import java.lang.reflect.Method;

public class GlobalTransactionalInterceptorParser extends org.apache.seata.integration.tx.api.interceptor.parser.GlobalTransactionalInterceptorParser {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why didn't I find the spi file for org.apache.seata.integration.tx.api.interceptor.parser?
为什么我没找到org.apache.seata.integration.tx.api.interceptor.parser的spi文件?

Copy link
Contributor

Choose a reason for hiding this comment

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

meta-inf/service/org.apache.seata.integration.tx.api.interceptor.parser.InterfaceParser

}

GlobalLock lockAnnoOld = method.getAnnotation(GlobalLock.class);
org.apache.seata.spring.annotation.GlobalLock lockAnnoNew = method.getAnnotation(org.apache.seata.spring.annotation.GlobalLock.class);
Copy link
Contributor

Choose a reason for hiding this comment

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

ibid

funky-eyes added a commit to funky-eyes/seata that referenced this pull request Feb 20, 2024
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.

Compatible with spring module Compatible with integration-tx-api module
4 participants