Skip to content

Comments

fix: display saved views in the sidebar on all pages#57

Merged
PascalRepond merged 1 commit intomainfrom
rep-fix-saved-views
Jan 21, 2026
Merged

fix: display saved views in the sidebar on all pages#57
PascalRepond merged 1 commit intomainfrom
rep-fix-saved-views

Conversation

@PascalRepond
Copy link
Owner

No description provided.

@coderabbitai
Copy link

coderabbitai bot commented Jan 21, 2026

📝 Walkthrough

Walkthrough

This change refactors how saved views are provided to templates. The saved_views context is relocated from the build_media_context() function in queries.py to a dedicated Django context processor, while being registered in settings to make it available globally across all template contexts.

Changes

Cohort / File(s) Summary
Context Processor Refactoring
src/config/settings.py
Added core.context_processors.saved_views to Django TEMPLATES context_processors list to register the new context processor.
Context Processor Refactoring
src/core/context_processors.py
New saved_views(request) context processor introduced. Returns authenticated user's saved views or an empty queryset for anonymous users.
Context Processor Refactoring
src/core/queries.py
Removed SavedView import and removed saved_views from the context dictionary returned by build_media_context().

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Description check ❓ Inconclusive No description was provided by the author, making it impossible to evaluate whether it relates to the changeset. Add a pull request description explaining the changes made, the motivation for the refactor, and how saved views are now provided to templates.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main change: enabling saved views display in the sidebar across all pages by refactoring how saved views are provided to templates.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@PascalRepond PascalRepond merged commit a6dcbb1 into main Jan 21, 2026
3 checks passed
@PascalRepond PascalRepond deleted the rep-fix-saved-views branch January 21, 2026 19:37
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