Skip to content

Commit

Permalink
Merge pull request #67 from gcivil-nyu-org/#3#26-UML-YX
Browse files Browse the repository at this point in the history
#3 and #26 UML added
  • Loading branch information
yalexublue committed Oct 4, 2022
2 parents 6903498 + 5bac4cb commit 3fb0451
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
Binary file added docs/design/#26-Admin-as-Superuser.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions docs/design/#26-Admin-as-Superuser.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
title #26 Admin as Superuser

actor Admin
participant Frontend
participant Backend

activate Frontend
Admin->Frontend:Check forum contents
note over Admin, Frontend: Chat violates regulations?
activate Backend
Frontend->Backend:Request to increment violation counts
deactivate Frontend
alt Violation count > 2?
Backend-->Backend:Suspend user account
else else
Backend-->Backend:Increment violation count
end
deactivate Backend
activate Frontend
Admin->Frontend:Request to recover user account
activate Backend
Frontend->Backend:Confirm account recovery
Backend-->Frontend:Account recovered feedback
deactivate Backend
Frontend-->Admin:Notify about account recovery
deactivate Frontend
activate Frontend
Admin->Frontend:Modify user data
activate Backend
Frontend->Backend:Confirm data change and store
Backend-->Frontend:Data change been made
deactivate Backend
Frontend-->Admin:Display updated data
deactivate Frontend
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
title #3-View-Personalized-Recommendations-of-High-Schools

actor User
participant UI (Browser)
participant API
participant Data Store

activate UI (Browser)
User->UI (Browser): Set Preferences
activate API
UI (Browser) -> API: Send Preferences
activate Data Store
API -> Data Store: Store Preferences
API -> API: Choose Random School IDs (based on location?)
API -> Data Store: Request Simple data for schools
Data Store -> API: Send Schools' Simplified Data
API --> UI (Browser): Send Selections (Simple View Dataset)
UI (Browser) --> User: Render Simple View
Data Store -> API: Confirm Stored Preferences
API --> API: Compute first matches
API --> Data Store: Store match set
note over User,UI (Browser): User chooses Detailed View?
User->UI (Browser): Request Detailed View
UI (Browser)-> API: Request Detailed Data for School
API --> API: Check Cache
API -> Data Store: Request School Detail Data
Data Store --> API: Send School's Detail Data
API --> UI (Browser): Send School Detail Data
deactivate Data Store
UI (Browser) --> User: Render Detailed View
API -> API: Cache School's Detailed Data
note over User,UI (Browser): User discards/categorizes school?
User -> UI (Browser): TO CATEGORIZE EPIC

0 comments on commit 3fb0451

Please sign in to comment.