-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fragment methods do not scope to parent
Fix a few bugs in the `Fragment#*_fragment` methods. These bugs manifested themselves in the `Link` header of the `/documents` endpoints. * Do not include `parent: parent` in the `where` clauses; the last fragment should be the last one in the entire text not in the book/chapter/etc. * Use `> rank` and `< rank` instead of `rank: rank + 1` and `rank: rank - 1`; sometimes the next or previous fragment is separated by a distance greater than `1`. * Add missing method tests in `Fragment`.
- Loading branch information
Showing
2 changed files
with
216 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters