TPS 16
- Due Oct 22, 2020 by 9am
- Points 1
- Submitting a file upload
- Available after Oct 21, 2020 at 9am
Think
Insert a new row just below the header in the table in your TPS Google Doc. Fill in the first two columns. Add your response to the problem below in the "Think"column.
In the video about adding authorization to VidQuiz, we saw a new data model that consisted of the following tables:
Right now the API supports getting all the VidQuizzes in the database. Suppose we want to make a new view that lists VidQuizzes that a user has created. We can alter the API to fetch a list of VidQuizzes owned by the signed in user like this:
getMyVidQuizzes():
return all from VidQuizzes where creatorId = signed in user ID
Now suppose that we want to add another view that shows all of the videos the user has watched (a "history" view). What will the getMyViewedVidQuizzes() function look like (in pseudo code)?
Pair
If you are joining the class live (in person or over Zoom), pair up with someone when asked to do so—please use Discord or your preferred means of interacting with someone to share your answers (please see the announcement with details about Discord). Settle on an answer between to two or three of you and put that answer down in your "Pair" column.
Share
Regardless of whether or not you are attending live, one person from your pair group should add your answer to the "TPS class share Links to an external site." document (make sure you're logged into your Endicott gmail account).
Submit
Finally, submit your personal TPS Google doc to this assignment.
Rubric
Criteria | Ratings | ||
---|---|---|---|
You uploaded your copy of the TPS Google doc
|
|
||
You made a reasonable attempt at the "thinking" portion and this was clearly marked on your document
|
|
||
You made a reasonable attempt at the "sharing" portion and this was clearly marked on your document
|
|
||
|