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

Migrate contacts from one instance to another #49

Merged
merged 12 commits into from
Aug 22, 2019
Merged

Conversation

as2388
Copy link
Member

@as2388 as2388 commented Aug 12, 2019

Performs a one-way, non-incremental migration.

Near-realtime synchronisation will be a lot more work, but this gives us the minimum necessary to run OCHA if we need to.

@as2388 as2388 requested a review from lukechurch August 12, 2019 15:14
@as2388 as2388 mentioned this pull request Aug 14, 2019
Copy link
Member

@lukechurch lukechurch left a comment

Choose a reason for hiding this comment

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

LGTM with a few minor suggestions

:rtype: any
"""
retries = 0
while True:
Copy link
Member

Choose a reason for hiding this comment

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

while retries < cls.MAX_RETRIES?

Copy link
Member Author

Choose a reason for hiding this comment

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

hmm then we have to store an exception and conditionally throw it outside the loop, which to me feels worse.

@as2388 as2388 merged commit 058edf1 into master Aug 22, 2019
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