Skip to content

Refactor: improve overall consistency#10

Merged
frozenhelium merged 2 commits into
developfrom
fix/consistency-improvements
Jul 9, 2026
Merged

Refactor: improve overall consistency#10
frozenhelium merged 2 commits into
developfrom
fix/consistency-improvements

Conversation

@frozenhelium

Copy link
Copy Markdown
Member

No description provided.

- readyz always reports ready; servable state is exposed as `ready` on /status
- imports fully replace cached strings in one transaction
- normalize lang query param to lowercase
- fail fast on invalid or missing configuration
- enable WAL; set pragmas via Exec so both sqlite drivers behave the same
- add ETag/If-None-Match caching on /strings; expose ETag via CORS
- inject build version via ldflags into openapi and /status
- record last_pull on unchanged pulls too
- drop BaseContext so shutdown drains in-flight requests
- derive healthcheck URL safely from LISTEN_ADDR
- reject non-positive durations in config
- align INITIAL_PULL_DEADLINE default with docs (45s)
- document 304 response in openapi schema; 500 where applicable
- fix log-before-error in pull; remove dead code and nil-guards
- add table-driven tests for parser, db, handlers, config, sync
- add go test step to CI; pass VERSION build-arg to docker
@frozenhelium frozenhelium force-pushed the fix/consistency-improvements branch from 88af300 to a5de165 Compare July 9, 2026 03:48
@frozenhelium frozenhelium merged commit 883b525 into develop Jul 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant