ArchiveBox/archivebox/misc
Claude 6a8062090b
Slim DB helpers and address PR review feedback
Helper reduction:
- Move the Django DATABASES/SQLITE_CONNECTION_OPTIONS assembly into
  core/settings.py, dropping get_database_settings() and
  get_sqlite_connection_options() from misc/db.py.
- Inline the single-use migration_table_columns() into its one migration.

Review fixes:
- search: match only scalar JSON *values* on postgres (jsonb_path_query
  over '$.**' scalar leaves), mirroring SQLite json_tree.atom so config
  keys no longer match.
- CharField clamp now also runs in SnapshotQuerySet.bulk_create (bulk paths
  bypass the pre_save signal); truncate_overlong_charfields is dual-use.
- Restore reverse-migration parity on postgres: crawls/machine/api initial
  migrations drop their rebuilt tables on reverse via drop_models_on_postgres.
- docs: give DATABASE_NAME its own section so the anchor resolves correctly.
- CI: only install postgres binaries on the shard that runs the postgres test.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019YHSjZM6TstSAMN2PhgfUg
2026-07-24 07:57:09 +00:00
..
__init__.py wip 2026-03-23 03:58:32 -07:00
checks.py Exercise ArchiveBox through unified runtime lifecycles 2026-07-21 19:26:42 -07:00
db.py Slim DB helpers and address PR review feedback 2026-07-24 07:57:09 +00:00
hashing.py release: archivebox 0.9.33rc50 2026-05-30 22:27:28 -07:00
jsonl.py Expand add flow runtime handling 2026-06-08 23:27:08 -07:00
logging_util.py Add native PostgreSQL support alongside SQLite 2026-07-23 17:08:47 +00:00
logging.py release: archivebox 0.9.33rc50 2026-05-30 22:27:28 -07:00
monkey_patches.py Exercise ArchiveBox through unified runtime lifecycles 2026-07-21 19:26:42 -07:00
paginators.py release: archivebox 0.9.34rc67 2026-06-07 04:06:45 -07:00
serve_static.py release: archivebox 0.9.34rc61 2026-06-06 23:09:44 -07:00
shell_welcome_message.py release: archivebox 0.9.33rc9 2026-05-28 05:50:28 -07:00
system.py Exercise ArchiveBox through unified runtime lifecycles 2026-07-21 19:26:42 -07:00
toml_util.py Exercise ArchiveBox through unified runtime lifecycles 2026-07-21 19:26:42 -07:00
util.py release: archivebox 0.9.35rc27 2026-06-13 23:12:36 -07:00