unlcms / project-herbie

Drupal 10 implementation at the University of Nebraska–Lincoln
https://cms.unl.edu
GNU General Public License v2.0
6 stars 6 forks source link

Update media library table view #552 #774

Closed sarongebre closed 3 weeks ago

sarongebre commented 1 month ago

Closes #552

image

Issues fixed:

Issues that still exist:

The Entity Usage module currently has a behavior where every time a node or block is saved, it creates a new instance of tracking for the media item, even if no changes were made. The issue can be found in the entity_usage/src/EntityUsageTrackBase.php file. image We can modify the function to change this behavior if desired. We can change the code to avoid relying on revision IDs, given that each edit action and a default "Save" button click will result in a new revision ID.

When a component containing a media item is created, the media view does not immediately reflect the change. This also occurs when the component is deleted. A cache clear or a cron job needs to be run for the changes to appear. We can try disabling the view's cache using views_post_update if that is the preferred approach.