The build_inspection_import function in the datastore is currently tailored to an outdated format of the fertilizer label analysis. However, a new format for the fertilizer label analysis has been introduced, requiring an update to ensure proper data handling and compliance with the new structure. The goal is to update the function to handle this new JSON format.
Acceptance Criteria
Update the build_inspection_import function to parse the new fertilizer label analysis JSON format.
Ensure backward compatibility, so old data formats are still processed correctly if necessary.
Test cases are provided or updated to reflect the changes in the function and ensure both old and new formats are handled accurately.
Description
The
build_inspection_import
function in the datastore is currently tailored to an outdated format of the fertilizer label analysis. However, a new format for the fertilizer label analysis has been introduced, requiring an update to ensure proper data handling and compliance with the new structure. The goal is to update the function to handle this new JSON format.Acceptance Criteria
build_inspection_import
function to parse the new fertilizer label analysis JSON format.Additional Information