Story #104: Create new event type "Scheduling" - cseseniordesign/reservations GitHub Wiki

End User Documentation

Dev Testing Instructions

  1. Make sure you are on the most recent version of the dev-new-event-scheduling branch.
  2. Start your dev environment.
  3. Log in to a super user account.
  4. Navigate to the new event page and check the box to create a private event.
  5. Verify that the event appears correctly on the events table and on the calendar.
  6. Log out of the super user account.
  7. Log into a non-super user account.
  8. Verify that the event does not appear on the events table or on the calendar.

Production Testing Instructions

  1. Go to https://innovationstudio-manager.unl.edu/home/
  2. Follow steps 3 and up from the dev testing instructions above.

Technical Documentation

models/event.rb

  • Updated model to reflect the additional is_private column in the events table.

new_schema.sql

  • Added a script to add a new column is_private to the events column, a boolean value true or false, indicating if an event is private or not.

views/admin/events.erb

  • Added a conditional statement to only show private events to super users and not normal users.

views/admin/new_event.erb

  • Added a checkbox to the new events page indicating if an event is private or not.

views/calendar.erb

  • Added a conditional statement to only show private events to super users and not normal users.

views/event_listing_table.erb

  • Added a conditional statement to show a message that there are no scheduled events if every event is private and the user does not have access to see private events
  • Added a conditional statement to only show private events to super users and not normal users.