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

Ref #565: export contacts database as CSV #686

Merged
merged 5 commits into from
Jun 16, 2023
Merged

Conversation

leplatrem
Copy link
Contributor

Ref #565
Ref https://mozilla-hub.atlassian.net/browse/CTMS-146

Our plan would be to use to command to export certain sets of contacts as CSV and re-upload them to Acoustic to make sure they are up-to-date.

For example:

$ poetry run ctms/bin/acoustic.py dump --query="SELECT DISTINCT email_id FROM newsletters nl WHERE subscribed IS FALSE;"

Dump CSV for 623946 contacts [y/N]?

@leplatrem leplatrem requested a review from a team as a code owner May 30, 2023 17:24
@leplatrem leplatrem added the enhancement New feature or request label Jun 2, 2023
ctms/crud.py Outdated Show resolved Hide resolved
ctms/bin/acoustic.py Show resolved Hide resolved
ctms/bin/acoustic.py Show resolved Hide resolved
ctms/bin/acoustic.py Outdated Show resolved Hide resolved
ctms/crud.py Show resolved Hide resolved
leplatrem and others added 3 commits June 15, 2023 13:08
Co-authored-by: grahamalama <gbeckley@mozilla.com>
ctms/bin/acoustic.py Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants