Skip to content

Fix hidden and expired items in recommendation results#1192

Open
eyupcanakman wants to merge 2 commits intogorse-io:masterfrom
eyupcanakman:fix/764-hidden-items-recommendations
Open

Fix hidden and expired items in recommendation results#1192
eyupcanakman wants to merge 2 commits intogorse-io:masterfrom
eyupcanakman:fix/764-hidden-items-recommendations

Conversation

@eyupcanakman
Copy link

@eyupcanakman eyupcanakman commented Mar 9, 2026

Fixes #764

Summary

Recommendation results could still include hidden items and items older than item_ttl.

Filter cached and fallback recommendation results against current item metadata, and keep scanning past filtered entries so valid items still fill the response. Keep cache-only IDs without item rows unchanged.

Testing

  • go test ./logics ./server ./worker -count=1
  • go test ./... -run '^$' -count=1

@codecov
Copy link

codecov bot commented Mar 10, 2026

Codecov Report

❌ Patch coverage is 79.31034% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.74%. Comparing base (b507ecb) to head (6bcce5e).
⚠️ Report is 9 commits behind head on master.

Files with missing lines Patch % Lines
logics/recommend.go 79.31% 9 Missing and 9 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1192      +/-   ##
==========================================
+ Coverage   72.72%   72.74%   +0.01%     
==========================================
  Files          88       88              
  Lines       16258    16333      +75     
==========================================
+ Hits        11824    11881      +57     
- Misses       3233     3242       +9     
- Partials     1201     1210       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

item_ttl and IsHidden not working

2 participants