unepwcmc/SAPI — pull request #177 by deciob (2014-01-22 17:09:51+00:00)
Title: Sandbox edits

This fixes the performance problems with very big annual report uploads.

Now, after loading a new file, the application still transitions to the newly created annual_report_upload page, but only the validation errors are now loaded and displayed, not the shipments.

Clicking on a validation error link, will now transition the application to an annual_report_upload.sandbox_shipments nested route that will display all the shipments, filtered by error and paginated.

Although the shipments are now paginated, the batch update still updates all shipments related to an error.

To test the code you first need to run a migration.