Added DISCORD_INVITE_LINK #459
No reviewers
Labels
No labels
Kestra
bug
enhancement
someday
subtask
☁️ api
🎛️ infrastructure
🐞 sentry
📆 2025 Season
📝 pages
allpicks
📝 pages
picks
📝 pages
standings
🚀 performance
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
johnsturgeon/tgfp-web!459
Loading…
Reference in a new issue
No description provided.
Delete branch "move-discord-invite-url-to-config-454"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #454
This change is clean and well-scoped. Here's my review:
Review: PR #459 — Added DISCORD_INVITE_LINK
This replaces three hardcoded
https://discord.gg/f25zmnFlinks with aconfig.DISCORD_INVITE_LINKsetting sourced from 1Password, following the established config pattern. The wiring is correct: bothhomeroutes already passconfiginto the template context (app/main.py:164,app/main.py:184), the mailer injects the value into the email body dict (app/mailer.py:54,app/mailer.py:68), and no stalediscord.ggreferences remain. The change looks good.A few small observations, none blocking:
Nits
app/config/config.py:89—.rstrip("/")is defensive normalization copied fromSITE_BASE_URL(config.py:106), but unlikeSITE_BASE_URLthe invite link is only ever used bare — never as a base for path concatenation likef"{url}/picks". It's harmless, so keep it if you prefer consistency, but it isn't buying anything here.app/templates/home.j2:22— the file still ends without a trailing newline (\ No newline at end of file). Untouched by this PR, so purely optional to fix while you're in here.<font>→<span>swap onapp/templates/home.j2:5is a sensible modernization (<font>is a deprecated element) and preserves theclass/style, so behavior is unchanged. Just flagging that it's bundled in with the invite-link change.Notes (no action needed)
tests/conftest.py:126seeds env vars fromconfig/op.env, which this PR updates, soDISCORD_INVITE_LINKgets an auto-generatedtest-DISCORD_INVITE_LINKplaceholder and nothing KeyErrors.Approving as-is.