[backend] Make friend requests require complete profile#8520
Conversation
Apply the same incomplete-profile precondition to SendFriendRequest that already guards host requests and messaging.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
nabramow
left a comment
There was a problem hiding this comment.
LGTM - thanks for adding this!
|
@claude rebase this and bump the migration version appropriately |
|
Claude finished @aapeliv's task in 7m 33s —— View job Rebase request
Findings
Why I can't push the rebaseIn this environment my Bash allowlist does not include Suggested next steps
|
|
@claude merge develop here and bump the migration version appropriately |
|
Claude finished @aapeliv's task in 1m 39s —— View job Merge develop into PR branch
ResultMerged Migration bumpNo bump needed. This PR doesn't add a migration of its own — the three files it touches are If you actually wanted me to add a DB migration to this PR (e.g. to enforce the precondition at the schema level), the in-code guard at Note on local git ops
|
📝 Release NotesThis PR should be included in the release notes. Suggested release note: 🤖 Bot Debug InformationModel: |
Apply the same incomplete-profile precondition to
SendFriendRequestthat already guardsCreateHostRequestandCreateGroupChat/SendMessage. Users without an avatar photo and a 150+ characterabout_menow get aFAILED_PRECONDITIONwith the newincomplete_profile_send_friend_requesterror code.Frontend changes will follow in a separate PR.
Testing
test_cant_friend_request_incomplete_profileintest_api.pyconfirms the block fires for an incomplete-profile sender and that the reverse direction still succeeds.uv run pytest src/tests/test_api.py -k friend).Backend checklist
developif necessary for linear migration historyFor maintainers
This PR was created with the Couchers PR skill.