•  
      request #29620 Newly added file-diff comment disappears when we switch diff mode
    Infos
    #29620
    Thomas Gorka (tgorka)
    2022-11-23 16:36
    2022-11-23 10:38
    31217
    Details
    Newly added file-diff comment disappears when we switch diff mode

    How to reproduce:

    1. - In side-by-side or unidiff mode, add a new comment on a given line
    2. - Switch to the other diff mode

    --> The comment is not displayed

     

    The reason is that when the comment is created, it is added in a store of comments/replies, but it is never added in the list of root comments. When we switch modes, the root comments are retrieved from this store and displayed in the editor instead of being reloaded from REST. If the created comment is not added in this list, it therefore won't be displayed.

    Pull Request
    14.1
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gorka (tgorka)
    Closed
    2022-11-23
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Thomas Gorka (tgorka)2022-11-23 10:41

    gerrit #27285 is under review and should close this request


    • Status changed from Under implementation to Under review
    • Reported in version changed from 14.2 to 14.1