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

As a gitcoin admin, I'd like the mailchimp syncing to be refactored, so the load on the database is lowered and the site runs faster #4798

Merged
merged 4 commits into from
Jul 24, 2019

Conversation

owocki
Copy link
Contributor

@owocki owocki commented Jul 15, 2019

Description

implements the changes listed on #4784 (comment)

Refers/Fixes

#4784

Testing

tested locally


print('/pull_to_db')

def sync_mailchimp_list(eses, list_id):
print("- {} emails".format(eses.count()))
for es in eses:
client = MailChimp(mc_api=settings.MAILCHIMP_API_KEY, mc_user=settings.MAILCHIMP_USER)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@danlipert this just seemed like a bug, client was undefiend in this method before.

@codecov
Copy link

codecov bot commented Jul 15, 2019

Codecov Report

Merging #4798 into master will increase coverage by <.01%.
The diff coverage is 6.25%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4798      +/-   ##
==========================================
+ Coverage   30.43%   30.43%   +<.01%     
==========================================
  Files         216      216              
  Lines       17335    17337       +2     
  Branches     2353     2353              
==========================================
+ Hits         5276     5277       +1     
- Misses      11850    11851       +1     
  Partials      209      209
Impacted Files Coverage Δ
app/marketing/management/commands/sync_mail.py 29.59% <6.25%> (+0.42%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3910078...4b4c581. Read the comment docs.

@danlipert
Copy link
Contributor

@octavioamu @thelostone-mc this look good to y'all? Lets get this in ASAP

@danlipert danlipert merged commit e670fa8 into master Jul 24, 2019
@thelostone-mc thelostone-mc deleted the kevin/sync_mail_perf branch June 27, 2020 00:48
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.

3 participants