wrolpi/modules/repos
Roland 5c80ad7ba4
repos: search Repos by name and README
repository_fts (FTS5, external content) indexes each Repo's search_name
(name and owner) and readme_text; a name match outranks a README
mention.  The downloader stores the README as plain text (markdown
syntax removed so snippets read well), writing it only when it changed.

* POST /api/repos/search: by search and/or Tag, with README headlines.
* /api/search_other_estimates takes an optional search_str and returns
  repo_count, so Repos count toward the global search's Other tab.
* /api/search_suggestions suggests Repos by name.

The repository FTS DDL is installed only once the repository table
exists: the baseline migration also runs install_raw_ddl, before that
table is created.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 16:56:09 -06:00
..
test repos: search Repos by name and README 2026-10-06 16:56:09 -06:00
__init__.py Add a Repos module that mirrors git repositories (backend) 2026-10-06 16:56:09 -06:00
api.py repos: search Repos by name and README 2026-10-06 16:56:09 -06:00
conftest.py Add a Repos module that mirrors git repositories (backend) 2026-10-06 16:56:09 -06:00
downloader.py repos: search Repos by name and README 2026-10-06 16:56:09 -06:00
errors.py Add a Repos module that mirrors git repositories (backend) 2026-10-06 16:56:09 -06:00
lib.py repos: search Repos by name and README 2026-10-06 16:56:09 -06:00
models.py repos: search Repos by name and README 2026-10-06 16:56:09 -06:00
schema.py repos: search Repos by name and README 2026-10-06 16:56:09 -06:00