Skip to content

Feed Page

Andrew Lester edited this page Jul 28, 2021 · 7 revisions

User Interface

  • The feed page displays recent actions to a user's subscribed sections. These actions may include homework assignments that were added, updated, or deleted, or a new lecture posted on Wednesday at 8:00am.

Client

  • Client sends request to server for data it needs (sections + courses)
  • Data is received and the client applies to to the feed page + calendar and any other place needed.
  • Client also opens web socket connection with the server to await updates to requested data. Any updates replace data that is currently in the app

Server

  • The server awaits client requests for specific realms (sections, courses, etc.)
  • Upon receiving a request, if the realms requested aren't cached, the server will get the data it needs from the API(s) and caches it temporarily (cache age must be discussed more)
  • The server can use this cache for further requests for the same data
  • When the server detects NEW data (after the cache expires), it can update clients through their websocket connection if they have requested such, now expired, data in the past.

Permissions

  • Verified users (CA, Professors) should be able to add homeworks/update sections and courses, creating items to display on the user's feed
Clone this wiki locally