peerreview icon indicating copy to clipboard operation
peerreview copied to clipboard

[BUG] Paper Comments Show when Created not when Committed on the Timeline

Open danielBingham opened this issue 10 months ago • 0 comments

Describe the bug

Describe the bug you encountered. What happened? What did you expect to happen?

Paper comemnts will show up on the timeline when they were created, not when they were committed. This is due to the event_date being set at creation, not when the status is changed to committed. However, because of the way we're polling for and appending events, if we fix the issues by simply updating the event_date at the time of the status change, we'll end up with duplicate events on the timeline. A comment will show in the timeline when it was created and when it was committed.

We need a way to filter out events from the timeline that have been updated.

To Reproduce

Please describe the exact steps required to reproduce the bug.

  1. Create a comment by focusing on the comment text area. (You can confirm the comment is created because the visibility will be whatever the journal/submission/preprint would set, rather than none.)
  2. Do anything that will create a timeline event entry.
    1. Create a review and submit it so that it shows on the timeline.
    2. OR change the status of the submission so that the status change shows on the timeline.
    3. Etc
  3. Submit the commit. Confirm the comment shows before the events you created after you created the comment.

danielBingham avatar Oct 22 '23 21:10 danielBingham