Skip to content

fix: resolve stray marker in test and clean up model duplicates #1664

Open
Pratyush-Panda-2006 wants to merge 1 commit into
leonagoel:mainfrom
Pratyush-Panda-2006:fix/issue-1628
Open

fix: resolve stray marker in test and clean up model duplicates #1664
Pratyush-Panda-2006 wants to merge 1 commit into
leonagoel:mainfrom
Pratyush-Panda-2006:fix/issue-1628

Conversation

@Pratyush-Panda-2006

Copy link
Copy Markdown

fixes #1628

What Was Done
Upstream Synced: Checked out the main branch and pulled the latest changes from upstream/main.
Fixed Syntax & Indentation Errors:
Resolved an IndentationError in celery_app.py by removing an improperly indented and duplicate configuration line (app.conf.worker_max_tasks_per_child = 5).
Cleaned up src/model/hybrid_model.py which had a duplicated empty init constructor, duplicated set_weights/get_weights methods, and an IndentationError inside select_bandit_arm due to misplaced copy-paste chunks.
Resolved a NameError in backend/main.py where _clear_response_cache attempted to return an undefined result variable.
Fixed a NameError in /api/items where per_page was not defined. We added support for both limit and per_page parameters dynamically for full compatibility.
Integrated the paginated recommendation functionality cleanly into the main /api/recommend endpoint and removed the duplicate route definition (recommend_item).
Implemented caching headers (X-Cache: MISS) in /api/search on cache misses.
Fixed Unit Tests:
Updated the health check test in
tests/test_api.py
to mock get_supabase correctly on both the backend.main and src.data.db namespaces and assert the updated response fields.

@github-actions

Copy link
Copy Markdown

🎉 Welcome to Hybrid Recommender, @Pratyush-Panda-2006!

Thank you for your first pull request! Here's what happens next:

Step What Who
1 CI runs lint + smoke test 🤖 Automated
2 Code review 👤 @leonagoel
3 mentor:leonagoel label added 👤 Mentor
4 gssoc:approved label added 👤 Mentor
5 Auto-merge triggered 🤖 Automated
6 Points on leaderboard at 4 AM IST 🏆 GSSoC

⏱️ Please respond to any review comments within 48 hours.

📖 Resources:

Happy contributing! 🚀

@github-actions

Copy link
Copy Markdown

🎉 Welcome to Hybrid Recommender, @Pratyush-Panda-2006! This is your first contribution here!

Labels added: gssoc:approved | mentor:leonagoel | status:review-needed

PR Description Checklist:

NO - What changed section
NO - Why section
NO - How to test section
YES - Related issue linked

⚠️ Some required sections are missing. Please update your PR description.

What happens next:

  1. @leonagoel will review your changes
  2. CI checks must pass
  3. Once approved, this PR will be auto-merged

⏱️ Please respond to review comments within 48 hours.

@github-actions github-actions Bot requested a review from leonagoel June 14, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: SyntaxError: invalid syntax in tests/test_request_level_cache.py

1 participant