# Feature COMMS-217 - Clearly indicate when and by whom a comment has been edited after publication

Project: Stream Communicator
Status: in specification
URL: https://community.openproject.org/work_packages/COMMS-217

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Wish List |
| Sprint |  |
| Backlog bucket |  |
| Votes | 6 |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | Yes |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer | Parimal Satyal |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**As** a project member  
**I want to** know when a previously published comment has been edited  
**so that** I can be assured that such edits are displayed and that the integrity of unedited comments does not need to be questioned

**Context**

Split from <mention class="mention" data-id="39174" data-type="work_package" data-text="##39174">##39174</mention>. The 6 user votes for that feature were moved to this one.

**Acceptance criteria**

  - Comments can be edited within the allowed time window defined in the admin settings
    
      - \[open\] to be discussed

  - For comments that are edited after that initial window, there is an indication of that edit at the bottom of the comment:
    
      - Text with a corresponding icon: "Edited by {user} on {date} {time}"
        
          - Context: The username is important since it's possible in OpenProject for certain roles to have moderation rights and thus the ability to edit other users' comment"

  - If a comment is edited to remove all content, the text is changed to:
    
      - "Removed by {user} on {date} {time}"

  - Edits do not change the order of the comments; they remain in the order of publication.

  - \[open\] Should edits be disallowed after a certain time window (eg. an hour)?

  - ~~\[open\] Do we show a diff of the modifications? This could be done with a simple "View difference" link at the end of the edit note.~~

**Technical notes**

  - *tbd*

**Permissions and Visibility considerations**

  - Any user able to see a comment should also see the edit note

  - For restricted visibility comments, only those who have the permission to view the comments will be able to see the notes concerning any subsequent edits (<mention class="mention" data-id="31163" data-type="work_package" data-text="##31163">##31163</mention>)

**Out of scope**

  - Deleting past comments
