Skip to content

release: 2.8.0 - #80

Merged
aidil-coder-bot merged 10 commits into
mainfrom
release/2.8.0
Mar 30, 2026
Merged

aidil-coder-bot merged 10 commits into
mainfrom
release/2.8.0

Conversation

@ryanaidilp

Copy link
Copy Markdown
Contributor

release 2.8.0

This PR contains the changes for version 2.8.0.

Checklist

  • All tests passing
  • FCT completed
  • Ready for release

🤖 This PR was automatically created by the release workflow.

aidil-coder-bot and others added 10 commits March 26, 2026 00:33
chore: bump version to v2.8.0 for next development cycle
- Add pkg/cache: thread-safe Cache with Set/Get/Delete/DeletePrefix/Clear/StartCleanup
- Add full unit tests for cache package (TTL, concurrency, prefix deletion)
- Add cachedCovidService wrapping CovidService with 15m/1h/24h TTL strategy
- Add cachedRegencyService wrapping RegencyServiceInterface
- Add CacheInvalidator interface for cache clearing
- Add POST /admin/cache/clear endpoint protected by X-Admin-Key header
- Wire cache in cmd/main.go: 1h default TTL, 5m cleanup interval
- RegencyService field in Services struct now uses interface for flexibility
- Add comprehensive tests for cachedCovidService (cache hit/miss + error paths)
- Add comprehensive tests for cachedRegencyService (cache hit/miss + error paths)
- Add tests for AdminHandler ClearCache (success, wrong key, no key, empty env)
- Coverage improved from 70.8% to 85.2% (threshold: 80%)

Closes #78
Assign all error return values from cache-hit verification calls
to satisfy golangci-lint errcheck rules.
- Add pkg/cache/redis.go with RedisCache and RedisAwareCache
- RedisAwareCache: in-memory (fast reads) + Redis (distributed persistence/invalidation)
- cmd/main.go: opt-in via REDIS_ADDR env var, graceful fallback to in-memory
- docker-compose: added shared-infra network + REDIS_ADDR=redis:6379
- All existing tests still pass (go test ./pkg/cache/...)
feat(cache): add in-memory caching layer with TTL and admin invalidation
@github-actions

Copy link
Copy Markdown
Contributor

📊 Go Coverage Report

Metric Value
Coverage 85.7% ✅

Threshold: 80%

Details

Run go tool cover -func=coverage.out locally to see detailed coverage.

@aidil-coder-bot aidil-coder-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅ All CI checks passed. Release 2.8.0 ready.

@aidil-coder-bot
aidil-coder-bot merged commit 448e788 into main Mar 30, 2026
12 checks passed
@github-actions
github-actions Bot deleted the release/2.8.0 branch March 30, 2026 12:51
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.

2 participants