-
-
Notifications
You must be signed in to change notification settings - Fork 775
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
New Email for Tribe Members about Hackathon Prizes #7146
Conversation
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
There was a problem hiding this 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!
@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 |
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? |
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 |
@sebastiantf are you still interested in this ticket? |
Yeah @PixelantDesign. I'm a bit caught up is all. Will get on this asap |
16a6632
to
4baffd3
Compare
@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 |
Thanks @sebastiantf Looks good! Just to clarify - Not all users will receive this email. |
Yes @PixelantDesign. Only the tribe members of the org who are sponsors in the hackathon would receive this email |
great! are you able to provide a video or screenshot of this? |
I have already updated the screenshots in the opening comment: #7146 (comment) |
There was a problem hiding this 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?
@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 |
looks good to me! |
@thelostone-mc could we have a review on this? it's for October |
@sebastiantf gimme a ping when you resolve the conflicts and we can get this in |
6f1cdfe
to
ce6fb73
Compare
@thelostone-mc I have resolved the conflicts and pushed again |
There was a problem hiding this 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() |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
@sebastiantf can you take a look please? :) |
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:
Gmail Mobile:
Web Preview: