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

Scripts to migrate contacts from Rapidpro to Turn #648

Merged
merged 2 commits into from
Jan 13, 2025

Conversation

erikh360
Copy link
Contributor

@erikh360 erikh360 commented Jan 9, 2025

No description provided.

Copy link

github-actions bot commented Jan 9, 2025

Coverage report

This PR does not seem to contain any modification to coverable code.

"content-type": "application/json",
"Accept": "application/vnd.v1+json",
}
await request(session, url, "PATCH", headers, row, target)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good only one question. Is it necesary to have error handling for these API and async requests.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That request function outputs the results and when running the script we pipe it all to a results file.

We then use jq to check for any errors and run the retry script that does the same, we can repeat that until they all work.

@erikh360 erikh360 merged commit 1478ab2 into develop Jan 13, 2025
2 checks passed
@erikh360 erikh360 deleted the migrate-to-turn-scripts branch January 13, 2025 06:33
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.

2 participants