File_usage is not kept in sync

Created on 2 May 2025, 2 months ago

Problem/Motivation

The file usage service isn't being called when the file is replaced, and this results in file_usage counts to get out of sync.
If we save the parent media entity on file replace, the service is called and the count remains in sync. We could call the service directly and forgo the media save, but I think it's easier / safer to save the parent entity.

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States EthanT Sarasota, Florida

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024