Skip to content

fix: link the code of conduct everywhere and fix the sessions page - #180

Merged
jaspermayone merged 2 commits into
mainfrom
fix-coc-links
Oct 12, 2026
Merged

jaspermayone merged 2 commits into
mainfrom
fix-coc-links

Conversation

@jaspermayone

Copy link
Copy Markdown
Member

Fixes three problems from the production CoC rollout.

No Code of Conduct link. Production has no SLACK_COC_URL, so the Slack DM, the form, the email and /slack all hid the link. Staging has the setting, so the staging test showed the link. SlackService.code_of_conduct_url now falls back to https://patchworklabs.org/conduct.

DMs already sent. The new bin/rails slack:coc:refresh SEND=1 DEADLINE=2026-11-01 task rewrites the DMs in users.slack_coc_messages with the current text and link (chat.update). It sends no new DM and no email. It is a preview without SEND=1.

Sessions page 500. /profile/sessions called current_user_session, which was not a helper method. It is now.

Copy: the update no longer mentions mentorship.

Tests: RSpec (819), Minitest and RuboCop pass. New specs cover the URL fallback, the DM rewrite, the refresh job and the sessions page.

@jaspermayone
jaspermayone requested a review from a team October 12, 2026 02:47
@jaspermayone
jaspermayone merged commit 295edca into main Oct 12, 2026
3 checks passed
@jaspermayone
jaspermayone deleted the fix-coc-links branch October 12, 2026 02:48
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