Problem/Motivation
Spun off from #2878119: Whether queued or not, update the media thumbnail and metadata before beginning the entity save database transaction.
Since it's a method of MediaSourceInterface, I guess that makes sense. But I think this could potentially backfire on us later, in circumstances where the === comparison we're doing is not going to be a sufficient determinant of whether the value has changed. For example, if the source field value is a formatted text field, then changing the format could constitute a significant enough change that an update is required, even if the primary value has not changed.
Having said that...maybe that's an edge case and I'm being overly paranoid. And even if someone does encounter it, it is workaround-able by ninjas. So for now, let's stick with what we have in this patch, and open a follow-up to talk more about whether we need a more robust way to determine if a change has occurred.
Comments
Comment #13
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #14
marcoscano+1 for closing.
Thanks for the cleanup 👍