Syncing files on Tonic and RSAR was breaking when it was trying to duplicate rows. There's a bigger underlying issue here that requires investigation, but this stops the file sync from breaking when this happens.
How should this be manually tested?
Download the Tonic images and the live database and run:
What does this do?
Syncing files on Tonic and RSAR was breaking when it was trying to duplicate rows. There's a bigger underlying issue here that requires investigation, but this stops the file sync from breaking when this happens.
How should this be manually tested?
Download the Tonic images and the live database and run:
bin/cog task:run file_manager:sync_files --env=local-[your name]
Some rows will be duplicates, but the script will continue to run regardless and report the errors at the end
Related PRs / Issues / Resources?
Anything else to add? (Screenshots, background context, etc)