Story #72 Export Active Member Vehicle Data | User and Technical Documentation - cseseniordesign/reservations GitHub Wiki

End User Documentation

Dev Testing Instructions

  1. Make sure you are on the most recent version of the dev-export-vehicle-data branch.
  2. Start your dev environment and log in with development2 so you have all permissions.
  3. Navigate to the Admin -> Users page
  4. Click the "Show Toolbox" button to open the toolbox with the "Download Vehicle Data" button.
  5. In the toolbox make sure there is a button to download the vehicle data.
  6. Click "Download Vehicle Data".
  7. Ensure that a CSV file has now been downloaded to your computer with a list of the vehicles in the database.
  8. Ensure there are no errors in the console throughout your testing and that the page is responsive on all screen sizes.

Production Testing Instructions

  1. Go to https://innovationstudio-manager.unl.edu/login/ and log in with an account that has elevated permissions to view the Admin -> Events page.
  2. Follow steps 3 and up from the dev testing instructions above.

Technical Documentation

routes/admin/users.rb

  • Added logic to pull the vehicles from the database
  • Added a check to make sure it only pulls vehicles from current active members
  • Exports the data to a CSV

views/admin/users.erb

  • Added a button to click for an admin to export the vehicle data