Markdown OKF-Schema Studio

Use case StRS-MDOKFSTUDIO-REVIEW-008

Review threads follow edits and renames of the document

As a reviewer, I find a discussion on its text after the author edited the document around it, and I keep my comments when the author renames the document.

Use case diagram

How it is split

This use case (StRS) is reached by 2 paths, one per coloured line. A path goes from one situation (circle) to the next; each step (pill) is a behaviour (SwRS) with its own tests.

path 1: Keep a thread on its text while the document changes path 2: Rename a document other outcomeone dot = one scenario checked: nominal boundary refusal
SwRS-MDOKFSTUDIO-REVIEW-094: Edits move the stored lines of a thread in memory and write nothing to its fileSwRS-MDOKFSTUDIO-REVIEW-0942 testslines inserted or removed above athread move its stored lines inmemorySwRS-MDOKFSTUDIO-REVIEW-119: Moved thread lines are written with the document save onlySwRS-MDOKFSTUDIO-REVIEW-1193 teststhe document save writes the movedlines to the comments fileSwRS-MDOKFSTUDIO-REVIEW-125: A renamed document takes its review comments file alongSwRS-MDOKFSTUDIO-REVIEW-1252 testsits comments file is renamed tothe new nameSwRS-MDOKFSTUDIO-REVIEW-100: A thread follows its quote in the plain text, narrowed by its context, or is orphaned and keeps its linesSwRS-MDOKFSTUDIO-REVIEW-1001 testa quote found at one otherplace is followed by itsthreadSwRS-MDOKFSTUDIO-REVIEW-107: A slightly changed quote is followed by a bounded fuzzy searchSwRS-MDOKFSTUDIO-REVIEW-1071 testa slightly changed quote isfollowed by a bounded fuzzysearchSwRS-MDOKFSTUDIO-REVIEW-100: A thread follows its quote in the plain text, narrowed by its context, or is orphaned and keeps its linesSwRS-MDOKFSTUDIO-REVIEW-1001 testa deleted quote orphans thethread and it keeps its linesSwRS-MDOKFSTUDIO-REVIEW-119: Moved thread lines are written with the document save onlySwRS-MDOKFSTUDIO-REVIEW-1193 teststyping alone writes nothingSwRS-MDOKFSTUDIO-REVIEW-125: A renamed document takes its review comments file alongSwRS-MDOKFSTUDIO-REVIEW-1252 testsa rename never overwrites a comments fileThe text of a document with review threads changesThe text of a documentwith review threadschangesThe stored lines of the thread have movedThe stored lines of thethread have movedThe comments file holds the new linesThe comments file holdsthe new linesA document is renamed or movedA document is renamed ormovedThe comments file follows the documentThe comments filefollows the document

This map has 94 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 5 behaviours on the map are tested one by one, with 42 scenarios.

Behaviours of this use case

SwRS-MDOKFSTUDIO-REVIEW-094Edits move the stored lines of a thread in memory and write nothing to its file 2 testsSwRS-MDOKFSTUDIO-REVIEW-100A thread follows its quote in the plain text, narrowed by its context, or is orphaned and keeps its lines 1 testSwRS-MDOKFSTUDIO-REVIEW-107A slightly changed quote is followed by a bounded fuzzy search 1 testSwRS-MDOKFSTUDIO-REVIEW-119Moved thread lines are written with the document save only 3 testsSwRS-MDOKFSTUDIO-REVIEW-125A renamed document takes its review comments file along 2 testsSwRS-MDOKFSTUDIO-REVIEW-219An orphaned thread whose quote returns is placed again not on the map3 tests
SwRS-MDOKFSTUDIO-REVIEW-101A thread whose quote is gone or ambiguous is orphaned and keeps its lines superseded superseded by SwRS-MDOKFSTUDIO-REVIEW-100 Markdown file