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

Attachment Deleted Not Included In Edit Log #24196

Open
kdumontnu opened this issue Apr 18, 2023 · 5 comments
Open

Attachment Deleted Not Included In Edit Log #24196

kdumontnu opened this issue Apr 18, 2023 · 5 comments
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

@kdumontnu
Copy link
Contributor

kdumontnu commented Apr 18, 2023

Feature Description

This is somewhere between a bug and a feature, but currently attachment added, deleted is not included in the edit log in comments.

In fact, the history log just gets an entry with no diff.

Screenshots

image

Related to: #23290 and #24195

@kdumontnu kdumontnu added type/proposal The new feature has not been accepted yet but needs to be discussed first. type/feature Completely new functionality. Can only be merged if feature freeze is not active. labels Apr 18, 2023
@wxiaoguang
Copy link
Contributor

wxiaoguang commented Apr 19, 2023

The "Edit Log" (history), only includes "submitted contents"


If you do:

  • Open a comment editor
  • Upload attachments 1 2 3
  • Remove attachment 2
  • Submit

There won't be log for "adding 1 2 3 / removing 2"


But if you do:

  • Open a comment editor
  • Upload attachments 1 2 3
  • Submit
  • Remove attachment 2
  • Submit

Then you can see a diff log.


That's by design IMO

@kdumontnu
Copy link
Contributor Author

That makes sense. From my initial testing I didn't think it logged attachment deletions at all (even your second scenario). I’ll check on try.gitea. If that’s the case, we can close this.

@wxiaoguang
Copy link
Contributor

Actually, there is no "attachment deletion" log. The only "log" is the content diff.

If you delete the attachment link from content and save, then there will be a diff log, the attachment itself could be still there if you don't remove it from the "dropzone" component.

If you delete the attachment from the "dropzone" component, but do not delete it from content, then there is no content history diff.

@kdumontnu
Copy link
Contributor Author

kdumontnu commented Apr 19, 2023

Okay, that aligns with what I’ve seen. We’ve had users trying to figure out why their links are breaking, and as long as deleting an attachment is still an option in the UI, I think it is expected to go in the log as well.

(that being said, if we remove the option to delete attachments in the UI, as has been suggested elsewhere, this is no longer an issue)

@wxiaoguang
Copy link
Contributor

If we can implement this, then it could be much better than before:

  • If a user clicks the "remove" in dropzone, then also delete the link from content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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

No branches or pull requests

2 participants