When a resource is processed that doesn't have a format (for whatever
reason) then this will set the resource format to whatever was
discovered during QA.
This does mean that the package will re-run the
background tasks (archiver, packagezip etc) but the second time around
the resource will not be modified (because we already set it). Once we
have set the format on all of the resources it will go back to current behaviour
until harvesting happens - as this is the primary source of resources without
defined formats.
When a resource is processed that doesn't have a format (for whatever reason) then this will set the resource format to whatever was discovered during QA.
This does mean that the package will re-run the background tasks (archiver, packagezip etc) but the second time around the resource will not be modified (because we already set it). Once we have set the format on all of the resources it will go back to current behaviour until harvesting happens - as this is the primary source of resources without defined formats.
Should fix https://github.com/datagovuk/ckanext-dgu/issues/260