Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TODO for tour exercise #108

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions tour/exercise-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,15 @@ u:http://oldnews.com/a23 uri hash a6c4d1f
## Part 2 : Computing word counts.

Now that you have data loading, create an observer that watches the reference
status column. This observer should increment word counts when new content is
referenced and decrement word counts when content is dereferenced. The
observer should also delete the content when its dereferenced.
status column (*doc:refs*). This observer should take the following actions
based on the values of the columns *doc:refs* and *doc:processed*.

| doc:refs | doc:processed | Action
| ------------ | ------------------- | ----------
| referenced | false | Increment word counts and set *doc:processed* to *true*
| referenced | true | None
| unreferenced | false | Delete content
| unreferenced | true | Delete content and decrement word counts

Make sure you handle the following scenario correctly.

Expand Down