Skip to content

How to perform the Legal Services data upload

tim_south edited this page Jun 9, 2020 · 4 revisions

Before starting this process, both redis and sidekiq need to be running and can be done so by running the following commands:

redis-server

bundle exec sidekiq

You will also need to create storage/supply_teachers/current_data/output folder

Place the following files in the storage/legal_services/current_data/input folder, with these names:

  • Suppliers.xlsx
  • lot1.xlsx
  • lot2.xlsx
  • lot3.xlsx
  • lot4.xlsx
  • rate_cards.xlsx

Run the following command:

rake ls:data

Once completed, that will produce a file named data.json in the storage/legal_services/current_data/output folder.

Go to /legal-services/admin/uploads on the site you're trying to upload the data on

Click on Create a new data upload

Attach the data.json file

Within a few minutes the status on the upload should change from In progress to Uploaded at which point the supplier data should now be uploaded and ready to use.