Feature #12070

Develop a task to check for common data corruption issues in AtoM

Added by Dan Gillean almost 4 years ago. Updated almost 4 years ago.

Status:NewStart date:03/27/2018
Priority:MediumDue date:
Assignee:-% Done:

0%

Category:-Estimated time:8.00 hours
Target version:-
Sponsored:No Tested version:

Description

Data corruption in AtoM can be a thorny issue to troubleshoot. We've recently added some guidance to our documentation, here:

Recently an Artefactual developer also prepared several scripts that would check for descriptions missing a parentID connecting them to the root IO - see #11991.

It would be very useful to the AtoM commmunity to compile these and other related checks into a task - something "like propel:data-check" This ticket is to track possibilities for such a task, and progress on it.

count-null-parent-ids.php Magnifier - Return a count of information objects with no parent ID (729 Bytes) Dan Gillean, 03/27/2018 02:50 PM

count-null-parent-ids-w-duped-identifiers.php Magnifier - Count information objects missing parent IDs that have a non-unique identifier (1.27 KB) Dan Gillean, 03/27/2018 02:50 PM

count-null-parent-ids-w-children.php Magnifier - Count information objects missing parent IDs that have descendant records (597 Bytes) Dan Gillean, 03/27/2018 02:50 PM

History

#1 Updated by Dan Gillean almost 4 years ago

Attaching the scripts that were shared on this support issue so others can use them if needed. Basic usage:

  • Download the script(s)
  • Place them in your root AtoM directory - generally /usr/share/nginx/atom
  • Use the following to execute the script:
    php symfony tools:run script-name.php
    

where "script-name" is replaced with the name of the script :)

Also available in: Atom PDF