ucsdeventhub / EventHub

4 stars 0 forks source link

use case: favoriting/unfavoriting student orgs #11

Open ear7h opened 4 years ago

ear7h commented 4 years ago

Description

The student favorites or unfavorites an org they want to follow.

User Goal

The student wants to be informed or stop getting informed about a specific org.

Actor

Student

Dependent Use Cases

Requirements

The system shall allow the user to favorite or unfavorite a specific organization.

Pre-Conditions

The student must be logged in or using the app locally and be viewing an org profile page.

Post-Conditions

The Settings page shall be populated with the favorited org.

Trigger

The student wants to access info about events from this org easily.

Workflow

  1. The system shall display an org page.
  2. The student shall click the favorite button.
  3. The system shall notify the student that they have favorited the org by changing the button to unfavorite.
  4. The system shall add the favorited org to the user settings.

Alternative Workflow

  1. The system shall display an org page.
  2. The student shall click the unfavorite button.
  3. The system shall notify the student that they have unfavorited the org by changing the button to favorite.
  4. The system shall remove the specific org from the user favorites and settings.

Dependent Design Use cases

Design Workflow

  1. The student shall click the favorite button on the org page.
  2. The front end shall request the user's information from the React controller.
  3. The React controller shall use the model to query the SQL database to save the org under the user's information.

Design Alternative Workflow

  1. The student shall click the unfavorite button on the org page.
  2. The front end shall request the user's information from the React controller.
  3. The React controller shall use the model to query the SQL database to remove the org under the user's information.