Closed (fixed)
Project:
Metadata Sanitizer
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
29 Jan 2026 at 16:22 UTC
Updated:
21 Feb 2026 at 19:51 UTC
Jump to comment: Most recent
I did some improvements to the Drush command that should improve performance when using with a lot of files:
mb_strtolower to extensions passed as argument$this->fileSystem->basename($path)field option is passed instead of only the first oneexiftool call failsStart within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
dieterholvoet commentedComment #4
dieterholvoet commentedComment #5
zarabatana commentedThanks a lot for working on this — the improvements here are really nice (normalizing options once, chunked loading, preserve_dates support, better error output, and continuing after a single failure).
I spotted one small but important detail in the --field filtering: FileUsageInterface::listUsage() returns entity IDs as array keys (values are counts). Right now we chunk $entity_ids directly, which can end up chunking the counts and make loadMultiple() load the wrong entities, so the field filter might not match.
Would you mind adjusting it like this?
Once that’s in (and CI is green), I’m happy to mark it RTBC / merge.
Comment #6
dieterholvoet commentedComment #7
zarabatana commentedMR !9 is now merged, and CI is green. This resolves the Drush command improvements described here (chunked loading, preserve_dates handling, option normalization, better error output, and correct-- field filtering). Marking the issue fixed/closed.
Comment #8
zarabatana commentedComment #10
zarabatana commented