- πΊπΈUnited States bluegeek9
The message could have changed since it was queued. What data are you storing on the Message entity? Would it not be better to store that data in a field?
In MessageSubscribe::processItem (the QueueWorker), we have the following code:
$message = $data['message'];
$entity = $data['entity'];
...
// Reload message and entity.
$message = $message->load($message->id());
$entity = $entity->load($entity->id());
Why should we reload those entities?
I set it as a bug because, in my use case, I store some extra properties in those objects (attached documents) and they are lost due to this reloading. The message system is working very well without this reloading
Postponed: needs info
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
The message could have changed since it was queued. What data are you storing on the Message entity? Would it not be better to store that data in a field?