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

Compatible old ReportUtil usage and supply test cases #14

Merged
merged 18 commits into from
Jun 5, 2018

Conversation

guanchao-yang
Copy link
Member

@guanchao-yang guanchao-yang commented Jun 4, 2018

Motivation

Before some alipay users use ReportUtil with the full package com.alipay.sofa.common.log.ReportUtil but in this version ReportUtil has been moved to com.alipay.sofa.common.utils.ReportUtil. Consider many users has used, so we should be compatible with it

Modification

com.alipay.sofa.common.log.ReportUtil extends com.alipay.sofa.common.utils.ReportUtil for compatible

Result

Fixes

#14

#16 only litte cases and after should provide more test cases

@coveralls
Copy link

coveralls commented Jun 4, 2018

Pull Request Test Coverage Report for Build 52

  • 0 of 1 (0.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 16.317%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/main/java/com/alipay/sofa/common/log/ReportUtil.java 0 1 0.0%
Totals Coverage Status
Change from base Build 51: 0.2%
Covered Lines: 638
Relevant Lines: 3910

💛 - Coveralls

Copy link
Member

@khotyn khotyn left a comment

Choose a reason for hiding this comment

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

Please change all the Chinese to English.

@khotyn
Copy link
Member

khotyn commented Jun 4, 2018

Please attach this PR to a milestone, and the PR description should be have more detail like this

@guanchao-yang guanchao-yang added this to the v1.0.13 milestone Jun 4, 2018
@guanchao-yang guanchao-yang added the enhancement New feature or request label Jun 4, 2018

### Environment

- SOFA Lookout version:
Copy link
Member

Choose a reason for hiding this comment

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

DO NOT JUST COPY FROM OTHER PROJECT!

@@ -0,0 +1,40 @@
package com.alipay.sofa.common.utils;
Copy link
Member

Choose a reason for hiding this comment

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

What is the purpose of this test case? It seems that it is not related to this issue.

Copy link
Member Author

@guanchao-yang guanchao-yang Jun 4, 2018

Choose a reason for hiding this comment

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

#16 only litte cases and should provide more test cases after 。 PR additional remarks

Copy link
Member

Choose a reason for hiding this comment

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

Please only do one thing in on PR next time.

Copy link
Member Author

Choose a reason for hiding this comment

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

ok

@guanchao-yang guanchao-yang changed the title Compatible old ReportUtil usage Compatible old ReportUtil usage and supply test cases Jun 4, 2018
* <p>
* Created by yangguanchao on 18/06/04.
*/
public class ReportUtil extends com.alipay.sofa.common.utils.ReportUtil{
Copy link
Member

Choose a reason for hiding this comment

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

Add a Deprecated annotation here cause it is only for the compatible problem.

@guanchao-yang
Copy link
Member Author

@khotyn

@khotyn khotyn merged commit 8bb9f92 into sofastack:master Jun 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants