Workaround to clean up old reviews on creating a new one#28554
Conversation
|
I think this fix is placed at the wrong position. |
|
That PR contains the same code at the same place. |
|
yes as I' working on more but I'll wait until the bugfix did get in as it will conflict a lot. anyway just look at the rest of models/issues/review.go it is not the best. |
|
😆 I that it should move an module higher up but should i start refactoring here or not ?!? |
|
CreateReview is also called when creating a pending review. In that case the review requests should not yet be deleted. But I'm also not entirely convinced that the review requests should be deleted. If I request a review from person A. Then person A does a review, and then person A's review gets dismissed (for example by the "dismiss stale approvals" branch protection setting). Don't we want the PR to revert to the state where a review is requested from person A? |
you are right pending reviews should not clear requests, will address that
no you wont do that as it is done now (that'S exactly how we get in a corrupt state for example). and in any case you can manually re-request in this case |
|
did rename the title to make it clear that this is not the final solution |
) close go-gitea#28542 blocks go-gitea#28544 --- *Sponsored by Kithara Software GmbH*
|
-> #29264 |
) close go-gitea#28542 blocks go-gitea#28544 --- *Sponsored by Kithara Software GmbH*
* giteaofficial/main: (32 commits) [skip ci] Updated translations via Crowdin Prevent double use of `git cat-file` session. (go-gitea#29298) Revert go-gitea#28753 because UI broken. (go-gitea#29293) Fix error display when merging PRs (go-gitea#29288) Refactor markup rendering to accept general "protocol:" prefix (go-gitea#29276) Remove jQuery from the installation page (go-gitea#29284) Always write proc-receive hook for all git versions (go-gitea#29287) Do not use `ctx.Doer` when reset password (go-gitea#29289) Update Discord logo (go-gitea#29285) [skip ci] Updated translations via Crowdin Remove jQuery .map() and enable eslint rules for it (go-gitea#29272) Explained where create issue/PR template (go-gitea#29035) (go-gitea#29266) Remove jQuery from repo wiki creation page (go-gitea#29271) Do not show delete button when time tracker is disabled (go-gitea#29257) Left align the input labels for the link account page (go-gitea#29255) [skip ci] Updated translations via Crowdin Remove jQuery from the repo migration form (go-gitea#29229) Fix content size does not match error when uploading lfs file (go-gitea#29259) Workaround to clean up old reviews on creating a new one (go-gitea#28554) Deduplicate translations for contributors graph (go-gitea#29256) ...
|
Automatically locked because of our CONTRIBUTING guidelines |
close #28542
blocks #28544
Sponsored by Kithara Software GmbH