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 option to show outdated review comments #24913

Closed
sebastian-sauer opened this issue May 24, 2023 · 5 comments · Fixed by #24936
Closed

Add option to show outdated review comments #24913

sebastian-sauer opened this issue May 24, 2023 · 5 comments · Fixed by #24936
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@sebastian-sauer
Copy link
Contributor

Feature Description

Review comments get invalidated when for example the commit sha of the line they were created on changes.
This may happen due to the code author adding some lines at the beginning of the file.

Now all invalidated / outdated code comments are not shown in "Files changed" tab.
In order to check those comments i'll have to switch between "Files changed" tab and the conversation tab.

A new option to show outdated comments in "Files changed" tab would allow me to at least view all comments for a file in "Files changed" tab.

Even better would be to try to find the new line number for a comment - but the option to show outdated comments would already improve reviewing code with gitea (at least in my opinion) a lot.

Screenshots

No response

@sebastian-sauer sebastian-sauer added type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first. labels May 24, 2023
@lunny
Copy link
Member

lunny commented May 25, 2023

But some comments needs the context and the context may be changed.
Finding the new line number of course is a better solution if the comment line hasn't been changed.

@sebastian-sauer
Copy link
Contributor Author

Upsource for example shows a warning on top of a comment like "Discussion is pointing to a modified code fragment" and a link to the original snippet. We could allow/add this (the old snippet is available).

@sebastian-sauer
Copy link
Contributor Author

I've proposed a PR with screenshots of a possible solution - #24936

Happy to make changes based on your feedback.

@lunny
Copy link
Member

lunny commented May 30, 2023

At least, we need an option to disable it for those who don't want to see the outdated comment which will only make confusing.

@sebastian-sauer
Copy link
Contributor Author

At least, we need an option to disable it for those who don't want to see the outdated comment which will only make confusing.

The latest changes added an option to show outdated comments (will be stored in user settings if logged in) - so if you don't "enable" the feature by turning the option on, nothing should change and confuse.

silverwind added a commit that referenced this issue Jun 21, 2023
If enabled show a clickable label in the comment. A click on the label
opens the Conversation tab with the comment focussed - there you're able
to view the old diff (or original diff the comment was created on).

**Screenshots**


![image](https://github.com/go-gitea/gitea/assets/1135157/63ab9571-a9ee-4900-9f02-94ab0095f9e7)

![image](https://github.com/go-gitea/gitea/assets/1135157/78f7c225-8d76-46f5-acfd-9b8aab988a6c)



When resolved and outdated:

![image](https://github.com/go-gitea/gitea/assets/1135157/6ece9ebd-c792-4aa5-9c35-628694e9d093)

Option to enable/disable this (stored in user settings - default is
disabled):

![image](https://github.com/go-gitea/gitea/assets/1135157/ed99dfe4-76dc-4c12-bd96-e7e62da50ab5)

![image](https://github.com/go-gitea/gitea/assets/1135157/e837a052-e92e-4a28-906d-9db5bacf93a6)



fixes #24913

---------

Co-authored-by: silverwind <me@silverwind.io>
sebastian-sauer added a commit to sebastian-sauer/gitea that referenced this issue Jun 21, 2023
Backport go-gitea#24936

If enabled show a clickable label in the comment. A click on the label
opens the Conversation tab with the comment focussed - there you're able
to view the old diff (or original diff the comment was created on).

**Screenshots**

![image](https://github.com/go-gitea/gitea/assets/1135157/63ab9571-a9ee-4900-9f02-94ab0095f9e7)

![image](https://github.com/go-gitea/gitea/assets/1135157/78f7c225-8d76-46f5-acfd-9b8aab988a6c)

When resolved and outdated:

![image](https://github.com/go-gitea/gitea/assets/1135157/6ece9ebd-c792-4aa5-9c35-628694e9d093)

Option to enable/disable this (stored in user settings - default is
disabled):

![image](https://github.com/go-gitea/gitea/assets/1135157/ed99dfe4-76dc-4c12-bd96-e7e62da50ab5)

![image](https://github.com/go-gitea/gitea/assets/1135157/e837a052-e92e-4a28-906d-9db5bacf93a6)

fixes go-gitea#24913

---------

Co-authored-by: silverwind <me@silverwind.io>
sebastian-sauer added a commit to sebastian-sauer/gitea that referenced this issue Jun 21, 2023
Backport go-gitea#24936

If enabled show a clickable label in the comment. A click on the label
opens the Conversation tab with the comment focussed - there you're able
to view the old diff (or original diff the comment was created on).

**Screenshots**

![image](https://github.com/go-gitea/gitea/assets/1135157/63ab9571-a9ee-4900-9f02-94ab0095f9e7)

![image](https://github.com/go-gitea/gitea/assets/1135157/78f7c225-8d76-46f5-acfd-9b8aab988a6c)

When resolved and outdated:

![image](https://github.com/go-gitea/gitea/assets/1135157/6ece9ebd-c792-4aa5-9c35-628694e9d093)

Option to enable/disable this (stored in user settings - default is
disabled):

![image](https://github.com/go-gitea/gitea/assets/1135157/ed99dfe4-76dc-4c12-bd96-e7e62da50ab5)

![image](https://github.com/go-gitea/gitea/assets/1135157/e837a052-e92e-4a28-906d-9db5bacf93a6)

fixes go-gitea#24913

---------

Co-authored-by: silverwind <me@silverwind.io>
6543 pushed a commit that referenced this issue Jun 22, 2023
Backport #24936

If enabled show a clickable label in the comment. A click on the label
opens the Conversation tab with the comment focussed - there you're able
to view the old diff (or original diff the comment was created on).

**Screenshots**


![image](https://github.com/go-gitea/gitea/assets/1135157/63ab9571-a9ee-4900-9f02-94ab0095f9e7)


![image](https://github.com/go-gitea/gitea/assets/1135157/78f7c225-8d76-46f5-acfd-9b8aab988a6c)

When resolved and outdated:


![image](https://github.com/go-gitea/gitea/assets/1135157/6ece9ebd-c792-4aa5-9c35-628694e9d093)

Option to enable/disable this (stored in user settings - default is
disabled):


![image](https://github.com/go-gitea/gitea/assets/1135157/ed99dfe4-76dc-4c12-bd96-e7e62da50ab5)


![image](https://github.com/go-gitea/gitea/assets/1135157/e837a052-e92e-4a28-906d-9db5bacf93a6)

fixes #24913

Co-authored-by: silverwind <me@silverwind.io>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants