ucsdeventhub / EventHub

4 stars 0 forks source link

use case: favoriting/unfavoriting subjects #12

Open ear7h opened 4 years ago

ear7h commented 4 years ago

Description

The student favorites or unfavorites a subject they want to follow.

User Goal

The student is interested or not interested anymore in a certain type of event.

Actor

Student

Dependent Use Cases

Pre-Conditions

The student must be logged in and be viewing a list of events filtered by type.

Post-Conditions

The system shall display or stop displaying events of that type at the top of the list for future event listings.

Trigger

The student wants to or doesn't want to see a certain type of event across many orgs.

Workflow

  1. The student shall view a list of events filtered by a specified type.
  2. The system shall display a button next to the specified type.
  3. The student shall click the button.
  4. The system shall prioritize events of the specified type in future queries.

    Alternative Workflow

  5. The student shall view a list of events filtered by a specified type.
  6. The system shall display a button next to the specified type.
  7. The student shall click the button.
  8. The system shall not prioritize events of the specified type in future queries.

    Dependent Design Use cases

    • 8

    • 13

      Design Workflow

  9. The frontend shall display the "favorite_type" button under the search bar.
  10. The student shall click the "favorite_type" button.
  11. The frontend shall request the user's information from the React controller.
  12. The React controller shall query the SQL database to save the subject under the user's information.

Design Alternative Workflow

  1. The frontend shall display the "unfavorite_type" button under the search bar.
  2. The student shall click the "unfavorite_type" button.
  3. The frontend shall request the user's information from the React controller.
  4. The React controller shall query the SQL database to delete the subject under the user's information.