Skip to content

feat: redis caching initial endpoints#430

Open
zaydaanjahangir wants to merge 6 commits intomainfrom
feat/redis-caching-initial-endpoints
Open

feat: redis caching initial endpoints#430
zaydaanjahangir wants to merge 6 commits intomainfrom
feat/redis-caching-initial-endpoints

Conversation

@zaydaanjahangir
Copy link
Copy Markdown
Contributor

@zaydaanjahangir zaydaanjahangir commented Apr 17, 2026

Description

Caches endpoints:

  • GET /api/v1/users/:id
  • GET /api/v1/hotels/:id
  • GET /api/v1/guests/:id
  • GET /api/v1/guests/stays/:id
  • GET /api/v1/guest_bookings/group_sizes

The write operations that invalidate cached entries are:

  • Users:
    • CreateUser
    • UpdateUser
    • UpdateProfilePicture
    • DeleteProfilePicture
    • AddEmployeeDepartment
    • RemoveEmployeeDepartment
    • CompleteOnboarding
  • Guests:
    • CreateGuest
    • UpdateGuest
Screenshot 2026-04-17 at 5 05 05 AM Screenshot 2026-04-17 at 5 07 29 AM Screenshot 2026-04-17 at 5 07 33 AM

@zaydaanjahangir zaydaanjahangir changed the title Feat/redis caching initial endpoints feat: redis caching initial endpoints Apr 17, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 17, 2026

Codecov Report

❌ Patch coverage is 0% with 301 lines in your changes missing coverage. Please review.
✅ Project coverage is 12.88%. Comparing base (9d13a82) to head (e3b4c58).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
backend/internal/cache/domain/users.go 0.00% 69 Missing ⚠️
backend/internal/cache/domain/guests.go 0.00% 52 Missing ⚠️
backend/internal/service/server.go 0.00% 35 Missing ⚠️
backend/internal/cache/object/cache.go 0.00% 33 Missing ⚠️
backend/internal/cache/domain/hotels.go 0.00% 27 Missing ⚠️
backend/internal/cache/store/redis_store.go 0.00% 24 Missing ⚠️
backend/internal/cache/domain/guest_bookings.go 0.00% 19 Missing ⚠️
backend/internal/service/cached_repos.go 0.00% 16 Missing ⚠️
backend/internal/storage/redis/client.go 0.00% 14 Missing ⚠️
backend/internal/cache/domain/keys.go 0.00% 10 Missing ⚠️
... and 1 more

❗ There is a different number of reports uploaded between BASE (9d13a82) and HEAD (e3b4c58). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (9d13a82) HEAD (e3b4c58)
mobile 1 0
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             main     #430       +/-   ##
===========================================
- Coverage   97.29%   12.88%   -84.42%     
===========================================
  Files           1       69       +68     
  Lines          37     3750     +3713     
  Branches        9        0        -9     
===========================================
+ Hits           36      483      +447     
- Misses          1     3244     +3243     
- Partials        0       23       +23     
Flag Coverage Δ
backend 12.88% <0.00%> (?)
mobile ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
backend/cmd/server/main.go 0.00% <0.00%> (ø)
backend/internal/cache/domain/keys.go 0.00% <0.00%> (ø)
backend/internal/storage/redis/client.go 0.00% <0.00%> (ø)
backend/internal/service/cached_repos.go 0.00% <0.00%> (ø)
backend/internal/cache/domain/guest_bookings.go 0.00% <0.00%> (ø)
backend/internal/cache/store/redis_store.go 0.00% <0.00%> (ø)
backend/internal/cache/domain/hotels.go 0.00% <0.00%> (ø)
backend/internal/cache/object/cache.go 0.00% <0.00%> (ø)
backend/internal/service/server.go 0.00% <0.00%> (ø)
backend/internal/cache/domain/guests.go 0.00% <0.00%> (ø)
... and 1 more

... and 59 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@zaydaanjahangir zaydaanjahangir marked this pull request as ready for review April 17, 2026 09:21
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