department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
283 stars 204 forks source link

GIDS: Research and document feasibility of uploading excel file to GIDS #11095

Closed dneel-bah closed 4 years ago

dneel-bah commented 4 years ago

As a developer, I need to research the feasibility of uploading an excel file to GIDS so that it can be determined if the Accreditation file upload process can be streamlined.

Assumptions:

  1. N/A

Acceptance Criteria

  1. Documentation outlining the steps needed to upload SA2 to GIDS and an LOE OR documentation outlining why uploading excel to GIDS is not feasible is attached to this story.

Supporting Artifacts:

  1. Data file source: https://ope.ed.gov/dapip/#/download-data-files
  2. AccreditationData.xlsx
devin-mccurdy commented 4 years ago

GIDS Excel File Import Support

Suggested Solution

It should be possible to allow uploading of 'xls' and 'xlsx' files into GIDS using the following Ruby gems.

The Roo documentation says that it supports

LOE

The work should be possible for one developer to complete in one sprint.

Implementation Notes

Most of the upload functionality is handled in lib/csv_helper/loader.rb but there will also have to be changes made to app/views/uploads/_form.html.erb to allow the upload of XLS and XLSX files.

All column value converters (NumberConverter, InstitutionConverter, etc.) will need to be supported.

Tests should be written to verify that data imported from a CSV and Excel file with the same contents are identical.

Assumptions