Review queue filtering, CSV export and batch segment assignment; production security hardening and dependency/docs update#7
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (9)
📝 WalkthroughWalkthroughRelease 0.9.4 update includes security hardening of Django settings (enforcing non-default secret key and ALLOWED_HOSTS in production), updated dependency constraints for Django, Granian, Argon2, psycopg, and redis, refactored review queue filtering logic to consolidate multi-criterion filtering, and updated documentation version references. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
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. Comment |
💡 Codex ReviewPyBehaviorLog/tracker/views.py Lines 4925 to 4929 in 79ab988 The status validation only runs when PyBehaviorLog/tracker/views.py Line 4853 in 79ab988 The review page falls back to ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Motivation
DJANGO_SECRET_KEYand at least oneALLOWED_HOSTSwhenDJANGO_DEBUG=0and by adding optional TLS/HSTS toggles.Description
_filter_review_segmentsand exposed project choices via_review_queue_project_choices, then wired these intoreview_queueview and template filters.review_queue_export_segment_analytics_csvand corresponding URL, template export button, and CSV payload generation that honor the same filters as the UI.segment_batch_assignview, URL, form UI insession_player.html, audit logging, validation of assignee/reviewer/status, and checkbox-driven apply flags.config/settings.pyby requiring a non-defaultDJANGO_SECRET_KEYand non-emptyALLOWED_HOSTSwhenDJANGO_DEBUGis false, and addedSECURE_SSL_REDIRECTand HSTS settings; addedImproperlyConfiguredimport.0.9.4, refreshedREADME.md,CHANGELOG.md,docs/and updated dependency pins inrequirements.txtandrequirements-dev.txt(Granian, argon2, psycopg, redis, Ruff).Testing
test_segment_batch_assign_and_review_queue_filters_and_exporttotracker/tests/test_views.pywhich exercises batch assignment, filtered queue results, and the CSV export, and it passed under the repository test suite.python manage.py testandcoverage run manage.py testas part of development validation and the tests completed successfully.Codex Task
Summary by CodeRabbit
Release Notes: Version 0.9.4
Security
Enhancements
Chores