-
Notifications
You must be signed in to change notification settings - Fork 247
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
Rest data info id list #15
Conversation
update version 5.2.1-SNAPSHOT
Fix temporary push bug
Codecov Report
@@ Coverage Diff @@
## master #15 +/- ##
============================================
+ Coverage 58.98% 59.02% +0.03%
Complexity 44 44
============================================
Files 376 376
Lines 13059 13066 +7
Branches 1283 1283
============================================
+ Hits 7703 7712 +9
+ Misses 4479 4476 -3
- Partials 877 878 +1
Continue to review full report at Codecov.
|
return sessionInterests.getInterestDataInfoIds(); | ||
} | ||
|
||
@GET | ||
@Path("checkSumDataInfoIdList") | ||
@Produces(MediaType.APPLICATION_JSON) | ||
public int checkSumDataInfoIdList() { | ||
return sessionInterests.getInterestDataInfoIds().hashCode(); | ||
return sessionInterests.getInterestDataInfoIds().hashCode() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以基于上面的方法,返回 getDataInfoIdList().hashcode()即可
@@ -146,14 +146,18 @@ public String getSessionDataCount() { | |||
@Path("getDataInfoIdList") | |||
@Produces(MediaType.APPLICATION_JSON) | |||
public Collection<String> getDataInfoIdList() { | |||
Collection<String> ret = new ArrayList<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里建议使用HashSet去重
* fix temp push * update version 5.2.1-SNAPSHOT * fix test case * add rest api,getDataInfoIdList,checkSumDataInfoIdList * add publisher dataInfoList return
Motivation:
Explain the context, and why you're making that change.
To make others understand what is the problem you're trying to solve.
Modification:
provide RESTful api for get session node all dataInfoId list. The api for check all dataInfoId list change and refresh at a particular time.
Result:
Fixes #14
If there is no issue then describe the changes introduced by this PR.