You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/13/en/part13c.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -503,9 +503,9 @@ The current code for the application is in its entirety on [GitHub](https://gith
503
503
504
504
<div class="tasks">
505
505
506
-
### Tasks13.17-13.18.
506
+
### Exercises13.17-13.18.
507
507
508
-
#### Task13.17.
508
+
#### Exercise13.17.
509
509
510
510
Delete all tables from your application's database.
511
511
@@ -515,7 +515,7 @@ Make a migration that initializes the database. Add <i>created\_at</i> and <i>up
515
515
516
516
**NOTE2:** if you have to delete tables from the command line (i.e. you don't do the deletion by undoing the migration), you will have to delete the contents of the <i>migrations</i> table if you want your program to perform the migrations again.
517
517
518
-
#### Task13.18.
518
+
#### Exercise13.18.
519
519
520
520
Expand your application (by migration) so that the blogs have a year written attribute, i.e. a field <i>year</i> which is an integer at least equal to 1991 but not greater than the current year. Make sure the application gives an appropriate error message if an incorrect value is attempted to be given for a year written.
521
521
@@ -1057,9 +1057,9 @@ The current code for the application is in its entirety on [GitHub](https://gith
1057
1057
1058
1058
<div class="tasks">
1059
1059
1060
-
### Tasks 13.19.-13.23.
1060
+
### Exercises 13.19.-13.23.
1061
1061
1062
-
#### Task 13.19.
1062
+
#### Exercise 13.19.
1063
1063
1064
1064
Give users the ability to add blogs on the system to a <i>reading list</i>. When added to the reading list, the blog should be in the <i>unread</i> state. The blog can later be marked as <i>read</i>. Implement the reading list using a connection table. Make database changes using migrations.
1065
1065
@@ -1107,7 +1107,7 @@ Also modify the individual user route _GET /api/users/:id_ to return not only th
1107
1107
1108
1108
At this point, information about whether the blog is read or not does not need to be available.
1109
1109
1110
-
#### Task 13.21.
1110
+
#### Exercise 13.21.
1111
1111
1112
1112
Expand the single-user route so that each blog in the reading list shows also whether the blog has been read<i>and</i> the id of the corresponding join table row.
1113
1113
@@ -1482,9 +1482,9 @@ From the command line, you can also run rollbacks, i.e. undo migrations. The com
1482
1482
1483
1483
<div class="tasks">
1484
1484
1485
-
### Task 13.24.
1485
+
### Exercise 13.24.
1486
1486
1487
-
#### Task 13.24.
1487
+
#### Exercise 13.24.
1488
1488
1489
1489
Grand finale: [towards the end of part 4](/en/part4/token_authentication#problems-of-token-based-authentication) there was mention of a token-criticality problem: if a user's access to the system is decided to be revoked, the user may still use the token in possession to use the system.
0 commit comments