Tags and organisation
Outcome: an entry tagged, archived, and starred — with each state change proved twice, once through the API and once in the database.
Tags
A tag is a short label on an entry:
gardening, community. An entry can
carry several; a tag can sit on many
entries. Tags are the flexible organising
tool — the lists in chapter 5 are the
fixed ones. You add tags from the reading
view, from list actions, or through the
API, and browse them under /tag/list.
The lab tagged its newsletter entry through
the API (driver
wallabag-lab/drivers/lab-tags-archive-star.py,
transcript
wallabag-lab/transcripts/t05-tags-archive-star.txt):
PATCH /api/entries/3 tags=gardening,community archive=1 starred=1 -> 200
returned: archived=1 starred=1 tags=['gardening', 'community']
GET /api/entries/3 (proof) -> 200: archived=1 starred=1
tags=['gardening', 'community'] reading_time=1
GET /api/tags -> 200:
[{"id":2,"label":"community",...,"nbEntries":1},
{"id":1,"label":"gardening",...,"nbEntries":1}]
And the database agreed, which is the proof that matters:
3 archived=1 starred=1 The Elmwood Community Newsletter — Spring Plant Swap Returns
tag: community
tag: gardening
Archive and star, again
Chapter 5 introduced the states; this is where they earn their keep. A working pattern most readers settle into:
- Save freely. The Unread list is allowed to be a pile; that is its job.
- Star the few entries you know you will return to. A star is a promise to yourself, so keep it rare enough to mean something.
- Archive when read. The article stays searchable in your archive forever; the Unread list stays honest.
Deleting
Deleting an entry removes it and its stored text from your archive. There is no trash stage in what the lab exercised, so treat delete as final — and remember the rule: your stored copy may be the only clean copy you have. Export before a clear- out (chapter 11) if there is any doubt.
Check: tag one entry with two tags, archive and star it, then find it by tag, in Archive, and in Starred. If all three routes reach the same entry, organisation is working.