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

New Email for Tribe Members about Hackathon Prizes #7146

Merged

Conversation

sebastiantf
Copy link
Contributor

@sebastiantf sebastiantf commented Jul 24, 2020

Description

This PR builds a new email that will be sent to the tribe members of a hackathon sponsor 3 days prior to the hackathon start date, listing out the prizes by that sponsor

Refers/Fixes

Fixes #7140

Screenshots (Updated after rewrite)

Gmail Web:

tribe_hackathon_prizes_gmail_web_rewrite

Gmail Mobile:

tribe_hackathon_prizes_gmail_mobile_rewrite

Web Preview:

tribe_hackathon_prizes_web_rewrite

@codecov
Copy link

codecov bot commented Jul 24, 2020

Codecov Report

Merging #7146 into master will increase coverage by 0.06%.
The diff coverage is 5.08%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7146      +/-   ##
==========================================
+ Coverage   26.01%   26.08%   +0.06%     
==========================================
  Files         318      301      -17     
  Lines       31953    29757    -2196     
  Branches     4738     4416     -322     
==========================================
- Hits         8314     7761     -553     
+ Misses      23352    21724    -1628     
+ Partials      287      272      -15     
Impacted Files Coverage Δ
app/app/urls.py 85.96% <ø> (-0.25%) ⬇️
...anagement/commands/tribe_hackathon_prizes_email.py 0.00% <0.00%> (ø)
app/marketing/mails.py 10.82% <4.16%> (-1.31%) ⬇️
app/retail/emails.py 20.91% <13.33%> (+0.10%) ⬆️
app/economy/admin.py 64.28% <0.00%> (-5.42%) ⬇️
app/economy/utils.py 88.57% <0.00%> (-2.13%) ⬇️
app/grants/utils.py 21.05% <0.00%> (-2.03%) ⬇️
app/dashboard/models.py 48.43% <0.00%> (-1.28%) ⬇️
app/marketing/models.py 64.03% <0.00%> (-1.24%) ⬇️
... and 60 more

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 819401a...ce6fb73. Read the comment docs.

Copy link
Contributor

@PixelantDesign PixelantDesign left a comment

Choose a reason for hiding this comment

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

Looks good to me if it looks good to @willsputra!

@danlipert
Copy link
Contributor

@PixelantDesign @connoroday This will send multiple emails to the same user if they are members of multiple tribes that are participating in the hackathon - we need to combine the emails so each user only gets one I think @sebastiantf

@danlipert danlipert marked this pull request as draft July 28, 2020 08:30
@sebastiantf
Copy link
Contributor Author

Combining all the bounties by all the sponsors/tribes the user is part of, might make the email a lot big in content. Aren't most users part of a lot number of tribes? Just my thoughts. What do you think @PixelantDesign?

@PixelantDesign
Copy link
Contributor

If the user is part of two tribes participating in the same hackathon, they should receive just 1 email if possible.

@sebastiantf
Copy link
Contributor Author

If the user is part of two tribes participating in the same hackathon, they should receive just 1 email if possible.

If that's the case, I would have to rewrite what I've did now for this email. And I would need some time for that

@PixelantDesign
Copy link
Contributor

@sebastiantf are you still interested in this ticket?

@sebastiantf
Copy link
Contributor Author

Yeah @PixelantDesign. I'm a bit caught up is all. Will get on this asap

@sebastiantf sebastiantf force-pushed the tribe-hackathon-prizes-email branch from 16a6632 to 4baffd3 Compare August 26, 2020 12:09
@sebastiantf
Copy link
Contributor Author

sebastiantf commented Aug 27, 2020

@PixelantDesign @danlipert Extremely sorry for the delay. I have rewritten the logic to combine all bounties of all tribes of a member into single email. Please review

I have also updated the screenshots

@sebastiantf sebastiantf marked this pull request as ready for review August 27, 2020 07:22
@PixelantDesign
Copy link
Contributor

Thanks @sebastiantf Looks good!

Just to clarify -
When a hackathon starts users who follow the organization will receive this email that explains the prizes associated with the hackathon, correct?

Not all users will receive this email.

@sebastiantf
Copy link
Contributor Author

Yes @PixelantDesign. Only the tribe members of the org who are sponsors in the hackathon would receive this email

@PixelantDesign
Copy link
Contributor

great! are you able to provide a video or screenshot of this?

@sebastiantf
Copy link
Contributor Author

great! are you able to provide a video or screenshot of this?

I have already updated the screenshots in the opening comment: #7146 (comment)

Copy link
Contributor

@frankchen07 frankchen07 left a comment

Choose a reason for hiding this comment

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

LGTM as long as we don't have duplicate emails across multiple tribes, which sounds like it was fixed.

Last item: is there an option for the user to opt-out of tribe specific communications or is that out of scope for this ticket?

@PixelantDesign
Copy link
Contributor

@frankchen07 I think I'll open another ticket for that....@sebastiantf what do you think? A simple checkbox in the email tab of the settings should do it.

@sebastiantf
Copy link
Contributor Author

@frankchen07 I think I'll open another ticket for that....@sebastiantf what do you think? A simple checkbox in the email tab of the settings should do it.

Yeah @PixelantDesign guess a simple setting to keep along with the other email settings

@willsputra
Copy link
Contributor

looks good to me!

@PixelantDesign
Copy link
Contributor

@thelostone-mc could we have a review on this? it's for October

@thelostone-mc
Copy link
Member

@sebastiantf gimme a ping when you resolve the conflicts and we can get this in

@sebastiantf sebastiantf force-pushed the tribe-hackathon-prizes-email branch from 6f1cdfe to ce6fb73 Compare September 30, 2020 06:17
@sebastiantf
Copy link
Contributor Author

@thelostone-mc I have resolved the conflicts and pushed again

@thelostone-mc thelostone-mc merged commit 0632270 into gitcoinco:master Sep 30, 2020
Copy link
Contributor

@octavioamu octavioamu left a comment

Choose a reason for hiding this comment

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

doing regression test I saw this problem, can you submit a PR to fix this using sponsor_profiles?

from dashboard.models import TribeMember, Sponsor
from marketing.utils import generate_hackathon_email_intro

sponsors = hackathon.sponsors.all()
Copy link
Contributor

Choose a reason for hiding this comment

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

we have a problem here, should use sponsor_profiles we not longer use Sponsors to control hackathons

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@octavioamu @PixelantDesign I have a PR up at #7589

@PixelantDesign
Copy link
Contributor

@sebastiantf can you take a look please? :)

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.

Email tribe members about hackathon prizes
8 participants