1
0
Fork 1
mirror of https://github.com/git-pkgs/proxy.git synced 2026-06-02 08:38:17 -04:00
pkg-proxy/internal/database
Andrew Nesbitt c01f0a5c05
Fix metadata caching, 404 propagation, mirror progress, and registry stubs
- ProxyCached now stores upstream Last-Modified in the cache and uses it
  (along with ETag) for conditional request handling, returning 304 when
  client validators match. Adds Content-Length to cached responses.

- Handlers calling FetchOrCacheMetadata (pypi, composer, pub, nuget) now
  check for ErrUpstreamNotFound and return 404 instead of 502, matching
  the existing npm and cargo behavior.

- Mirror jobs report live progress via a periodic callback while running,
  so API polls return real counts instead of zeroed progress.

- Registry mirroring removed from CLI flags, API acceptance, README, and
  docs since every enumerator was a stub returning "not yet implemented".

- Added tests for the conditional metadata path (ETag/If-None-Match,
  Last-Modified/If-Modified-Since, 304 responses, header omission).
2026-04-13 09:01:05 +01:00
..
database.go Fix all golangci-lint issues across the codebase (#32) 2026-03-18 10:59:29 +00:00
database_test.go Track applied migrations to skip column checks on startup (#60) 2026-04-06 13:06:45 +01:00
metadata_cache_test.go Add mirror command and API for selective package mirroring 2026-04-13 09:01:04 +01:00
queries.go Fix metadata caching, 404 propagation, mirror progress, and registry stubs 2026-04-13 09:01:05 +01:00
queries_packages_list_test.go Fix all golangci-lint issues across the codebase (#32) 2026-03-18 10:59:29 +00:00
schema.go Fix metadata caching, 404 propagation, mirror progress, and registry stubs 2026-04-13 09:01:05 +01:00
types.go Fix metadata caching, 404 propagation, mirror progress, and registry stubs 2026-04-13 09:01:05 +01:00