Skip to content

fix: Temporarily Approve and Onboard New Users - #269

Merged
alvaro-mazcu merged 1 commit into
mainfrom
fix/automatic_approves_to_new_users_temporarily
Apr 14, 2026
Merged

alvaro-mazcu merged 1 commit into
mainfrom
fix/automatic_approves_to_new_users_temporarily

Conversation

@alvaro-mazcu

Copy link
Copy Markdown
Member

Temporarily bypass manual approval for new WhatsApp users during rollout.

Changes

  • Added StateHandler.MANUAL_APPROVAL_REQUIRED toggle (default False).
  • Updated handle_new_user_registration so, when toggle is off, new users are created as approved and immediately routed to handle_new_approved_user (welcome template + onboarding flow).
  • Kept legacy manual flow intact behind the toggle (True => in_review + pending approval path).
  • Added tests for both behaviors in tests/services/test_state_service.py.

Validation

  • uv run pytest tests/services/test_state_service.py tests/services/test_request_service.py tests/services/test_onboarding_service.py -q

@alvaro-mazcu
alvaro-mazcu merged commit 2dd9f3a into main Apr 14, 2026
5 checks passed
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