fix: set requires_approval=false on new GroupMe groups #195
No reviewers
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/basketball-api!195
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "159-fix-reconciliation-requires-approval"
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?
Summary
requires_approval=trueupdate_group(requires_approval=False)after creation and passes the requirednicknamekwarg toadd_memberChanges
scripts/create_groupme_groups.py: callclient.update_group(group_id, requires_approval=False)after eachcreate_group(); addnickname=nameto everyadd_member()call; extractgroup_idto local variabletests/test_reconciliation.py: 3 new tests verifyingupdate_groupis called withrequires_approval=False,add_memberincludesnickname, and existing groups are skipped (idempotent)Test Plan
pytest tests/-- 596/596 pass)pytest tests/test_reconciliation.py -k reconciliation-- 3/3 passruff format+ruff check-- cleanReview Checklist
Related Notes
project-groupme-westside-- the project this work belongs toQA Review
Script changes (
scripts/create_groupme_groups.py)update_group call -- Correctly calls
client.update_group(group_id, requires_approval=False)after creation. The SDK'supdate_groupaccepts**kwargsand POSTs to/groups/{id}/update, sorequires_approvalis forwarded correctly. Wrapped in try/except so a single failure doesn't abort the batch. Good.add_member nickname fix -- The SDK signature requires
nicknameas the second parameter. The old code omitted it entirely, which would have raisedTypeErrorat runtime. Now passes the person's name ("Lucas"/"Marcus"). Correct.group_id local variable -- Clean extraction avoids repeated
str()calls. No behavioral change.Test changes (
tests/test_reconciliation.py)groupme_sdk.GroupMeClientat module level since the script imports it locally insidemain()db/tenantconftest fixtures properlyNit (non-blocking)
_run_script()helper function (lines 57-75) is defined but never called -- all three tests inline the same setup. Could be removed or the tests could be refactored to use it. Not a blocker.Verdict
APPROVE -- All acceptance criteria met. No secrets, no unrelated changes, tests pass (596/596).