Mark comments as deleted instead of deleting them physically

Created on 9 September 2024, 2 months ago

Problem/Motivation

When a new comment gets created but not immediately synced, it may get deleted during next issue sync, since the comment exists locally but not (yet) remotely. This happens in \Drupal\helpdesk_integration\PluginBase::removeExistingLocalComments

Proposed resolution

Instead of deleting the comment at this point, let's mark them as deleted in a new field.

That then requires further action:

  • Do not do that over and over again, i.e. exclude such comments from the list of to be deleted comments
  • Don't display such comments to the end-user
  • Unmark the comment later on when it is available again
🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany jurgenhaas Gottmadingen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024