Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put online rental history users on a TextIt follow-up campaign. #921

Merged

Conversation

toolness
Copy link
Collaborator

@toolness toolness commented Nov 7, 2019

This fixes #906 and puts folks who filled out their rental history on a followup campaign.

The rental history campaign is configured via a new RAPIDPRO_FOLLOWUP_CAMPAIGN_RH setting, which is the comma-separated value of the campaign's group name and its field key (explanations for these can be found in #902 or by reading this PR).

New follow-up campaigns can be defined in the future with the RAPIDPRO_FOLLOWUP_CAMPAIGN_ prefix, so it won't be hard to trigger follow-up campaigns for LoC, HP Action, and future actions.

The new validate_rapidpro_settings management command ensures that all configured campaigns have valid group names and date field keys.

Users can also be manually put on follow-up campaigns via a new trigger_followup_campaign management command.

To do

  • Do everything asynchronously (via Celery).
  • Define an environment variable that specifies the group name/field key to use.
  • Make it easy to validate that the group name/field key are valid.
  • Actually put rental history users on the follow-up campaign.
  • Add tests.

@toolness toolness changed the title Add a sample trigger_followup_campaign command. Put online rental history users on a TextIt follow-up campaign. Nov 7, 2019
@toolness toolness marked this pull request as ready for review November 8, 2019 12:56
@toolness toolness merged commit 1642edb into master Nov 8, 2019
@toolness toolness deleted the atulvarma/ch771/put-users-who-completed-rental-history-via branch November 8, 2019 13:35
@toolness toolness mentioned this pull request Nov 8, 2019
3 tasks
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.

Put users on RapidPro campaigns when they complete actions
1 participant