Idea: Merge / de-duplicate


(Andrew Harris) #1

I'm sure I'm not the first person to ask about this, but wouldn't it be cool if we could nominate two root nodes to merge/compare/de-duplicate.

The result could be a combined asset, with duplicates identified by selected attributes and handled gracefully (remove, rename, etc.), or to retain the structure, just identify and remove duplicates.

 

Complex and nasty, but the problem we're trying to resolve is historic, and messy user accounts, which is also complex and nasty.

I'd see such a tool being incredibly useful for removing redundant assets in document and image management.

 

Just daydreaming ;-)


(Peter McLeod) #2

Hi

If you're handy with javascript you could probably acheive this using the JS API (https://manuals.matrix.squizsuite.net/web-services/chapters/javascript-api).

 

The methods below would probably be particularly useful:

 
getChildren
setStatus/trashAsset/removeLink
setMetadataAllFields
setMultipleAttributes
 
Eg a script that does something like:
 
get children of each asset
iterate through from one parent comparing on what ever data you need to on children in the set
depending on you logic update the asset data or delete etc using the relevant JS API functions
 
Thanks
Peter