Manystead

Worked case · Waking up elsewhere

Catching up after an edition was withdrawn

What should your view show after an author withdraws an edition you had already read?

The situation

You had read as far as position 2 and could see A and B. While you were away, A's author withdrew it at position 3, and a new edition, C, arrived at 4.

  1. restartsaved position 2
  2. 3 · Awithdrawn
  3. 4 · Cedition
  4. view: B, Cposition 4
An edition disappears from the hosted viewBefore the answerWith the answer
The changes

Replay these in your head or in your own code, starting from the saved position. They are synthetic. There is nothing to install and nothing to send.

{
  "initial": {
    "read_bookmark": 2,
    "visible": [
      "A",
      "B"
    ],
    "withdrawn": [],
    "logical_writes": 0
  },
  "steps": [
    {
      "delivery": "restart",
      "saved_read_bookmark": 2
    },
    {
      "delivery": "changes",
      "events": [
        {
          "seq": 3,
          "kind": "withdrawn",
          "id": "A"
        },
        {
          "seq": 4,
          "kind": "edition",
          "id": "C"
        }
      ],
      "continuation": 4
    }
  ]
}
Expected view

Work it out before you look.

Reveal the expected viewHide the expected view

Show B and C, and record A as withdrawn. The hosted view stops serving A from position 3 onward. A copy of A that you were permitted to keep earlier is still yours.

{
  "read_bookmark": 4,
  "visible": [
    "B",
    "C"
  ],
  "withdrawn": [
    "A"
  ],
  "logical_writes": 0
}