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

Add team support for review request #12039

Merged
merged 39 commits into from
Oct 12, 2020

Conversation

a1012112796
Copy link
Member

@a1012112796 a1012112796 commented Jun 24, 2020

As title.
Block #11355

@lafriks lafriks added the type/feature Completely new functionality. Can only be merged if feature freeze is not active. label Jun 25, 2020
@lafriks lafriks added this to the 1.13.0 milestone Jun 25, 2020
@igalic
Copy link

igalic commented Jul 25, 2020

will this allow me to request changes to a review i opened, but that I'm actually coöperating with other people?

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jul 25, 2020
@6543
Copy link
Member

6543 commented Aug 24, 2020

Pleace dont do too mouch in one pull - split them up and it's easyer to maintain

@a1012112796
Copy link
Member Author

Pleace dont do too mouch in one pull - split them up and it's easyer to maintain

I haven't did other thing ... 🤔

@6543
Copy link
Member

6543 commented Aug 24, 2020

@a1012112796 : I'd like to wait #12039 to do more things. on #11355 (comment)

models/repo.go Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Sep 13, 2020

Codecov Report

Merging #12039 into master will decrease coverage by 0.01%.
The diff coverage is 22.70%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #12039      +/-   ##
==========================================
- Coverage   42.52%   42.50%   -0.02%     
==========================================
  Files         672      673       +1     
  Lines       73785    74126     +341     
==========================================
+ Hits        31374    31506     +132     
- Misses      37340    37508     +168     
- Partials     5071     5112      +41     
Impacted Files Coverage Δ
models/migrations/migrations.go 2.46% <ø> (ø)
models/migrations/v153.go 0.00% <0.00%> (ø)
services/issue/assignee.go 21.15% <0.00%> (-12.18%) ⬇️
models/issue_comment.go 52.93% <7.14%> (+6.53%) ⬆️
models/review.go 35.23% <14.74%> (-10.86%) ⬇️
routers/repo/issue.go 36.07% <30.11%> (-0.79%) ⬇️
models/repo.go 55.21% <63.15%> (+0.05%) ⬆️
services/pull/check.go 48.46% <0.00%> (-4.62%) ⬇️
services/pull/temp_repo.go 26.59% <0.00%> (-3.20%) ⬇️
services/pull/patch.go 66.37% <0.00%> (-2.59%) ⬇️
... and 17 more

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 df4bbcd...7d75af0. Read the comment docs.

Copy link
Member

@lafriks lafriks left a comment

Choose a reason for hiding this comment

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

Imho it would be better to add new column AssigneeTeamID than reuse same field with negative values. If we later finally implement foreign keys in database this will backfire

@lafriks
Copy link
Member

lafriks commented Sep 27, 2020

Please resolve conflicts

models/migrations/v153.go Outdated Show resolved Hide resolved
Co-authored-by: Lauris BH <lauris@nix.lv>
models/repo.go Outdated Show resolved Hide resolved
templates/repo/issue/view_content/sidebar.tmpl Outdated Show resolved Hide resolved
models/repo.go Outdated Show resolved Hide resolved
@zeripath
Copy link
Contributor

OK I just need to test this.

@zeripath
Copy link
Contributor

Hmm... just tried to remove a request for administrator to review and got the following error:

2020/10/12 10:52:27 ...outers/repo/issue.go:1891:UpdatePullReviewRequest() [W] UpdatePullReviewRequest: refusing to add invalid review request for 1:administrator to 44:adminOrg/ToFork#1: Error: sql: expected 13 destination arguments in Scan, not 1

@a1012112796
Copy link
Member Author

Hmm... just tried to remove a request for administrator to review and got the following error:

2020/10/12 10:52:27 ...outers/repo/issue.go:1891:UpdatePullReviewRequest() [W] UpdatePullReviewRequest: refusing to add invalid review request for 1:administrator to 44:adminOrg/ToFork#1: Error: sql: expected 13 destination arguments in Scan, not 1

@zeripath fixed

@6543
Copy link
Member

6543 commented Oct 12, 2020

this pull is now also a bugfix 😆, if fix #12878

@6543 6543 added the type/bug label Oct 12, 2020
models/review.go Outdated Show resolved Hide resolved
Copy link
Member

@6543 6543 left a comment

Choose a reason for hiding this comment

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

code looks nice, it fix a bug and works

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Oct 12, 2020
@6543
Copy link
Member

6543 commented Oct 12, 2020

I think it still should get @zeripath review :)

Copy link
Contributor

@zeripath zeripath left a comment

Choose a reason for hiding this comment

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

I also think it would look a bit better with a team icon shown

templates/repo/issue/view_content/sidebar.tmpl Outdated Show resolved Hide resolved
templates/repo/issue/view_content/sidebar.tmpl Outdated Show resolved Hide resolved
templates/repo/issue/view_content/sidebar.tmpl Outdated Show resolved Hide resolved
Signed-off-by: Andrew Thornton <art27@cantab.net>
Copy link
Contributor

@zeripath zeripath left a comment

Choose a reason for hiding this comment

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

I don't know what happened. I managed to somehow end up with reviewers being disabled but I don't know how and I can't replicate it now. So I'm approving.

Copy link
Member

@6543 6543 left a comment

Choose a reason for hiding this comment

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

call it team work - for team review 👍

@6543
Copy link
Member

6543 commented Oct 12, 2020

🚀

@lafriks
Copy link
Member

lafriks commented Oct 12, 2020

🚀

@zeripath zeripath changed the title [Enhancement] Add team support for review request Add team support for review request Oct 12, 2020
@zeripath zeripath merged commit 8be3e43 into go-gitea:master Oct 12, 2020
@6543 6543 mentioned this pull request Oct 12, 2020
7 tasks
a1012112796 added a commit to a1012112796/gitea that referenced this pull request Oct 13, 2020
follow go-gitea#12039, show original author's reviews by other way.
fix go-gitea#11705.

Signed-off-by: a1012112796 <1012112796@qq.com>
@a1012112796 a1012112796 deleted the team_review_request branch October 13, 2020 10:48
zeripath pushed a commit that referenced this pull request Oct 14, 2020
follow #12039, show original author's reviews by other way.
fix #11705.

Signed-off-by: a1012112796 <1012112796@qq.com>
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug type/feature Completely new functionality. Can only be merged if feature freeze is not active.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants