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

SetReview should return a ReviewResult #40

Merged
merged 3 commits into from
Sep 11, 2017

Conversation

opalmer
Copy link
Contributor

@opalmer opalmer commented Sep 10, 2017

The REST api for Gerrit states that:

As response a ReviewResult entity is returned that describes the
applied labels and any added reviewers (e.g. yourself, if you set
a label but weren’t previously a reviewer on this CL).

go-gerrit however was returning a ReviewInfo entity that was missing
the reviewers and ready fields.

The REST api for Gerrit states that:

  As response a ReviewResult entity is returned that describes the
  applied labels and any added reviewers (e.g. yourself, if you set
  a label but weren’t previously a reviewer on this CL).

go-gerrit however was returning a ReviewInfo entity that was missing
the reviewers and ready fields.
@opalmer opalmer self-assigned this Sep 10, 2017
@opalmer opalmer added this to the 0.5.0 milestone Sep 10, 2017
@codecov-io
Copy link

codecov-io commented Sep 10, 2017

Codecov Report

Merging #40 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #40   +/-   ##
=======================================
  Coverage   17.94%   17.94%           
=======================================
  Files          21       21           
  Lines        1750     1750           
=======================================
  Hits          314      314           
  Misses       1403     1403           
  Partials       33       33
Impacted Files Coverage Δ
changes.go 4.63% <ø> (ø) ⬆️
changes_reviewer.go 0% <ø> (ø) ⬆️
changes_revision.go 0% <0%> (ø) ⬆️

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 b63100d...139440f. Read the comment docs.

@opalmer
Copy link
Contributor Author

opalmer commented Sep 10, 2017

@andygrunwald this one should be pretty quick. Looks like there aren't any tests to cover this...found out about it while working on gerrittest.Change.

@andygrunwald andygrunwald merged commit a2e6113 into master Sep 11, 2017
@andygrunwald andygrunwald deleted the fix-SetReview-return-value branch September 11, 2017 06:32
@andygrunwald
Copy link
Owner

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants