Improve email support and skosmos behaviour#292
Conversation
- prevented using reverse proxy and custom url slugs
- Send mail is only triggered when mail is configered
Fix hardcoded urls
Fix error when mail not configured
Dependabot upgrades
WalkthroughThis pull request introduces email configuration gating, standardizes URL reversals in templates using Django template tags, updates a vocabulary configuration property, and refines documentation wording. The changes primarily affect configuration, conditional email sending, and template URL handling. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Possibly related PRs
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
evoks/evoks/views.py (1)
106-116: Conditional success message is an optional but worthwhile improvement.The review comment is accurate. The Profile model includes a
verifiedfield (defaultFalse), and new accounts require admin verification via theverify()method. WhenEMAIL_CONFIGUREDisFalse, admins receive no notification of pending sign-ups, creating an operational blind spot where unverified accounts sit indefinitely and users receive a misleading message.The suggested conditional message appropriately addresses this UX gap. Developers may also consider implementing a fallback admin notification mechanism or a periodic admin digest for unverified users when email is disabled.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (7)
README.md(1 hunks)evoks/Skosmos/skosmos.py(1 hunks)evoks/evoks/settings.py(1 hunks)evoks/evoks/views.py(2 hunks)evoks/theme/templates/login.html(1 hunks)evoks/theme/templates/reset_password_complete.html(1 hunks)evoks/theme/templates/teams.html(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: test-all
🔇 Additional comments (7)
evoks/Skosmos/skosmos.py (1)
64-65: LGTM! Skosmos top concepts configuration added correctly.The new RDF triple correctly enables the display of top concepts for vocabularies, aligning with the PR objective. The implementation follows the established pattern used for other vocabulary properties.
evoks/theme/templates/teams.html (1)
70-70: LGTM! URL reversing improves maintainability.Using Django's
{% url %}template tag instead of hardcoded paths is a best practice that makes URL configuration more maintainable.evoks/theme/templates/login.html (1)
28-28: LGTM! Consistent URL reversing applied.The signup link now uses Django's URL reversing, consistent with the other template updates in this PR.
evoks/theme/templates/reset_password_complete.html (1)
25-25: LGTM! URL reversing applied consistently.The login link follows the same URL reversing pattern as the other template updates.
README.md (1)
93-93: LGTM! Documentation wording improved.Changing "Fill out" to "Add" provides clearer instruction for adding environment variables, especially now that email configuration is optional.
evoks/evoks/views.py (1)
15-15: LGTM! Import added for email configuration check.The
EMAIL_CONFIGUREDflag is correctly imported to gate email functionality.evoks/evoks/settings.py (1)
97-97: LGTM! Email configuration flag correctly implemented.The
EMAIL_CONFIGUREDflag properly evaluates toTrueonly when both email credentials are provided, correctly implementing the optional email server feature from the PR objectives.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #292 +/- ##
=======================================
Coverage 92.31% 92.31%
=======================================
Files 50 50
Lines 1847 1848 +1
=======================================
+ Hits 1705 1706 +1
Misses 142 142 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary by CodeRabbit
Release Notes
Bug Fixes
Improvements
Documentation