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: remove unused method #1766

Merged
merged 3 commits into from
Oct 17, 2019

Conversation

l81893521
Copy link
Contributor

Ⅰ. Describe what this PR did

remove unused method getCreateTableSQL in TableMeta

Ⅱ. Does this pull request fix one issue?

#1714

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

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@l81893521
Copy link
Contributor Author

I will add some unit test to increase code coverage later.

@codecov-io
Copy link

codecov-io commented Oct 14, 2019

Codecov Report

Merging #1766 into develop will decrease coverage by 0.1%.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #1766      +/-   ##
=============================================
- Coverage      50.53%   50.43%   -0.11%     
+ Complexity      2165     2154      -11     
=============================================
  Files            414      414              
  Lines          14195    14152      -43     
  Branches        1709     1700       -9     
=============================================
- Hits            7174     7137      -37     
+ Misses          6330     6328       -2     
+ Partials         691      687       -4
Impacted Files Coverage Δ Complexity Δ
...a/io/seata/rm/datasource/sql/struct/TableMeta.java 100% <ø> (+2.85%) 30 <0> (-12) ⬇️
...java/io/seata/server/lock/memory/MemoryLocker.java 87.2% <0%> (-0.3%) 20% <0%> (-1%)
...va/io/seata/rm/datasource/exec/DeleteExecutor.java 0% <0%> (ø) 0% <0%> (ø) ⬇️
...server/store/file/FileTransactionStoreManager.java 53.61% <0%> (+0.98%) 27% <0%> (ø) ⬇️
.../java/io/seata/server/lock/DefaultLockManager.java 47.91% <0%> (+3.47%) 12% <0%> (+2%) ⬆️

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 1e74fac...3de13ed. Read the comment docs.

Copy link
Member

@xingfudeshi xingfudeshi 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 changed the title optimize: remove unused method getCreateTableSQL and increase code coverage optimize: remove unused method to increase code coverage Oct 15, 2019
@slievrly
Copy link
Member

@l81893521 Is there a better description of the pr title?

@xingfudeshi
Copy link
Member

@l81893521 Is there a better description of the pr title?

remove unused methods?

@l81893521 l81893521 changed the title optimize: remove unused method to increase code coverage optimize: remove unused method Oct 15, 2019
@l81893521
Copy link
Contributor Author

@l81893521 Is there a better description of the pr title?

is this ok?

@l81893521
Copy link
Contributor Author

the unit test will be add in #1674

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

Copy link
Member

@xingfudeshi xingfudeshi 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 2ded19c into apache:develop Oct 17, 2019
dangquocbang pushed a commit to dangquocbang/seata that referenced this pull request Oct 22, 2019
* 'develop' of https://github.com/seata/seata:
  feature:support gRpc (apache#1492)
  bugfix:fix auto proxy for multiple-datasource does not work (apache#1793)
  optimize: increase rm code coverage by db mock (apache#1674)
  bugfix: mysql can not get primary key value (apache#1788)
  bugfix: jdk 11 remoteAddress is null (apache#1764)
  test: verify that the analysis of the cause of issue 1702 is correct (apache#1710)
  optimize: seata server register eureka instance id (apache#1790)
  optimize: put message to logQueue (apache#1760)
  optimize:optimize rpc remoting log(apache#1787)
  optimize: simplify code (apache#1786)
  version: change version to 1.0.0-SNAPSHOT (apache#1785)
  bugfix: clean up resources in time to avoid mutual influence between unit tests (apache#1778)
  optimize:remove unused method (apache#1766)
  bugfix: DeleteExecutor. buildBeforeImageSQL keyword checker by db type (apache#1777)
  optimize: string splice and release lock (apache#1770)
  release 0.9.0 (apache#1771)
  bugfix: oracle rollback failed when the table has null Blob Clob value (apache#1761)
  bugfix: service method not support interface type parameter (apache#1759)
  optimize: abstract table meta cache (apache#1750)
  optimize: improve the efficiency of the batch log (apache#1743)
@l81893521 l81893521 deleted the remove_method_getCreateTableSQL branch November 2, 2019 05:28
@slievrly slievrly added this to the 1.0 milestone Dec 2, 2019
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.

5 participants