-
Notifications
You must be signed in to change notification settings - Fork 737
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
added fields in GHPullRequestReviewComment which were missing #1469
added fields in GHPullRequestReviewComment which were missing #1469
Conversation
I think this is gonna be a problem. We need to be able to regenerate the mocked data and still have the tests passing. You should probably create a test project in the test org, and add a review there that allows to test this thing. |
1 similar comment
I think this is gonna be a problem. We need to be able to regenerate the mocked data and still have the tests passing. You should probably create a test project in the test org, and add a review there that allows to test this thing. |
Cool! I'll check how to create a project in the test org and how to update the mock data. |
Hi @gsmet I've run the tests against the https://github.com/hub4j-test-org/github-api twice:
And I have some questions:
Waiting for your feedback 🙂 |
af42287
to
f43de91
Compare
Hi @gsmet, Let me know if it is fine or if I should take the snapshot as a MEMBER (if yes, how can I join the test org). |
@kisaga |
* @author Vasilis Gakias | ||
* @see <a href="https://docs.github.com/en/rest/pulls/comments#get-a-review-comment-for-a-pull-request">API | ||
* documentation</a> | ||
* @see GHPullRequestReviewComment | ||
*/ | ||
public class GHPullRequestReviewCommentReactions { |
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.
I am not seeing the reactions
field listed in the doc link mentioned here.
This page talks about reactions API:
https://docs.github.com/en/rest/reactions#list-reactions-for-a-pull-request-review-comment
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.
Apologies. Updated with the "get comments for a pull request" link
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.
Please double check that the reactions
field is actually part of the supported API and not deprecated and soon to be removed.
Codecov ReportBase: 79.56% // Head: 79.63% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1469 +/- ##
============================================
+ Coverage 79.56% 79.63% +0.07%
- Complexity 2166 2187 +21
============================================
Files 207 208 +1
Lines 6616 6655 +39
Branches 364 364
============================================
+ Hits 5264 5300 +36
- Misses 1140 1141 +1
- Partials 212 214 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
modified test, took snapshot and modified manually the author_association from NONE to MEMBER
f43de91
to
8494720
Compare
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.
Avoiding reactions
field deprecation
I've checked here and I couldn't see any deprecation notice regarding the reactions
field.
I've also queried twitter for any reaction related changes but I didn't find anything related except for this which is not related to these changes.
Data snapshot as a member
I've also updated the snapshot with a membership and the files are fine now.
Pending
Let me know if we want to change the pull_request_review_id
from Long
to long
with the side effect of having 0 default value instead of -1 if the value the response is null. I've found this but I couldn't apply it and also could not find similar in this project
* @author Vasilis Gakias | ||
* @see <a href="https://docs.github.com/en/rest/pulls/comments#get-a-review-comment-for-a-pull-request">API | ||
* documentation</a> | ||
* @see GHPullRequestReviewComment | ||
*/ | ||
public class GHPullRequestReviewCommentReactions { |
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.
Apologies. Updated with the "get comments for a pull request" link
💢 So, the That page gives me no indication of the right path forward. :( Not your fault. I'm concerned because the "Reaction API" paged don't talk about this field. Is it because it is new and they haven't documented it, or because it is old and will eventually be replaced? I do not know. https://docs.github.com/en/rest/pulls/comments#get-a-review-comment-for-a-pull-request
|
HI @bitwiseman I've asked a question here.
|
Please exclude it until we have an answer. It might make sense to start a new PR for the other changes, since they shouldn't even require new test data, just some additional asserts. |
@kisaga Please make the change requested above so we can merge the rest of this PR. |
Description
added new fields in GHPullRequestReviewComment that were missing.
Assuming that the changes are minor the mocked data snapshot has not been updated.
The response and its JSON Schema can be found here
fixes #1463
Before submitting a PR:
mvn -D enable-ci clean install site
locally. If this command doesn't succeed, your change will not pass CI.main
. You will create your PR from that branch.When creating a PR: