Skip to content

fix some bug about Request review #11040

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

Merged
merged 6 commits into from
Apr 11, 2020

Conversation

a1012112796
Copy link
Member

@a1012112796 a1012112796 commented Apr 10, 2020

  • fix CreateComment wrong using ,it will not work when use Sqlite
  • fix wrong js click event code , it will send wrong data when it has many choices
  • fix wrong conditions check in initIssueComments after Prettify Timeline #10972

* fix ``CreateComment`` wrong using ,it will not work when use Sqlite
* fix wrong js click event code , it will send wrong data when it has
many choices

Signed-off-by: a1012112796 <[email protected]>
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Apr 10, 2020
@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 Apr 10, 2020
@lafriks lafriks added this to the 1.12.0 milestone Apr 10, 2020
@6543
Copy link
Member

6543 commented Apr 10, 2020

@a1012112796 GetReviewerByIssueIDAndUserID also need a version witch can use sess !!

@6543
Copy link
Member

6543 commented Apr 10, 2020

for GetReviewerByIssueIDAndUserID: rename it to getReviewerByIssueIDAndUserID and create a second function caled GetReviewerByIssueIDAndUserID witch use getReviewerByIssueIDAndUserID

similar to what you can find here:

// GetCommentByID returns the comment by given ID.
func GetCommentByID(id int64) (*Comment, error) {
return getCommentByID(x, id)
}
func getCommentByID(e Engine, id int64) (*Comment, error) {

@6543
Copy link
Member

6543 commented Apr 10, 2020

then use getReviewerByIssueIDAndUserID in RemoveRewiewRequest - thanks!

@a1012112796
Copy link
Member Author

@6543 done your suggestion, please review . Thanks

@codecov-io
Copy link

Codecov Report

Merging #11040 into master will increase coverage by 0.02%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11040      +/-   ##
==========================================
+ Coverage   43.47%   43.49%   +0.02%     
==========================================
  Files         597      597              
  Lines       84704    84706       +2     
==========================================
+ Hits        36821    36841      +20     
+ Misses      43341    43327      -14     
+ Partials     4542     4538       -4     
Impacted Files Coverage Δ
models/review.go 32.20% <0.00%> (-0.17%) ⬇️
modules/avatar/avatar.go 48.00% <0.00%> (-6.00%) ⬇️
modules/queue/unique_queue_disk_channel.go 53.84% <0.00%> (-1.93%) ⬇️
modules/git/repo.go 48.11% <0.00%> (+0.83%) ⬆️
services/pull/check.go 52.43% <0.00%> (+1.21%) ⬆️
services/pull/temp_repo.go 31.62% <0.00%> (+2.56%) ⬆️
services/pull/patch.go 65.73% <0.00%> (+2.79%) ⬆️
modules/process/manager.go 78.31% <0.00%> (+3.61%) ⬆️
modules/git/utils.go 70.14% <0.00%> (+4.47%) ⬆️
modules/indexer/stats/db.go 59.37% <0.00%> (+18.75%) ⬆️
... and 1 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 0dadea1...b4df071. Read the comment docs.

@guillep2k guillep2k added the skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. label Apr 11, 2020
@guillep2k guillep2k merged commit cc07b9c into go-gitea:master Apr 11, 2020
@6543
Copy link
Member

6543 commented Apr 11, 2020

@a1012112796 thanks, it was exactly what I ment :)

ydelafollye pushed a commit to ydelafollye/gitea that referenced this pull request Jul 31, 2020
…-gitea#11040)

* fix some bug about Request review

* fix ``CreateComment`` wrong using ,it will not work when use Sqlite
* fix wrong js click event code , it will send wrong data when it has
many choices

Signed-off-by: a1012112796 <[email protected]>

* Apply suggestions from code review

Co-Authored-By: Lauris BH <[email protected]>

* add getReviewerByIssueIDAndUserID
fix wrong conditions check in initIssueComments after go-gitea#10972

* call CI again

Co-authored-by: Lauris BH <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
Co-authored-by: guillep2k <[email protected]>
@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. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants