wrolpi/modules/docs/test
lrnselfreliance f1d344d8a2
Search results sort as the filter dialog says (#959)
* Search results sort as the filter dialog says

Docs sorted ascending orders backwards and fell back to id order for every
descending order (`-size`, `-published_datetime`); it now takes the same `-`
prefixed orders as the other searches and rejects unknown ones with a 400.

Archives and Docs searches without an order now put the most relevant results
first, as Videos does and as the dialog shows.

Rank has no direction in the dialog: choosing it sends `rank` (most relevant
first) instead of inheriting a descending `-rank` (least relevant first).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* An old -rank link becomes rank when the filter dialog closes

The dialog shows Rank without a direction, but it seeded its draft from the URL
unchanged, so Done left a saved `-rank` (least relevant first) in place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 19:42:23 -07:00
..
__init__.py Add Docs module for searching and organizing PDFs and EPUBs 2026-03-20 14:17:06 -06:00
test_api.py Search results sort as the filter dialog says (#959) 2026-11-11 19:42:23 -07:00
test_doc_modeler.py Hiding a Calibre book's cover and metadata uses the modeler's session (#936) 2026-11-02 11:04:28 -07:00
test_extractors.py API startup no longer imports pymupdf (#946) 2026-11-03 15:01:45 -07:00
test_lib.py Search results sort as the filter dialog says (#959) 2026-11-11 19:42:23 -07:00
test_models.py Add Docs module for searching and organizing PDFs and EPUBs 2026-03-20 14:17:06 -06:00