peerreview
peerreview copied to clipboard
[BUG] Paper Comments Show when Created not when Committed on the Timeline
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.
- 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 thannone
.) - Do anything that will create a timeline event entry.
- Create a review and submit it so that it shows on the timeline.
- OR change the status of the submission so that the status change shows on the timeline.
- Etc
- Submit the commit. Confirm the comment shows before the events you created after you created the comment.