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

fix: canceled order mail template changed #6643

Merged
merged 2 commits into from Dec 8, 2019

Conversation

codedsun
Copy link
Contributor

@codedsun codedsun commented Dec 6, 2019

Fixes #6642

Short description of what this resolves:

fix: canceled order mail template changed

Checklist

  • I have read the Contribution & Best practices Guide and my PR follows them.
  • My branch is up-to-date with the Upstream development branch.
  • The unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • All the functions created/modified in this PR contain relevant docstrings.

@codedsun
Copy link
Contributor Author

codedsun commented Dec 6, 2019

@prateekj117 @iamareebjamal Review if possible!

@codecov
Copy link

codecov bot commented Dec 6, 2019

Codecov Report

Merging #6643 into development will decrease coverage by 0.01%.
The diff coverage is 0%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #6643      +/-   ##
===============================================
- Coverage        65.35%   65.34%   -0.02%     
===============================================
  Files              298      298              
  Lines            15240    15243       +3     
===============================================
  Hits              9960     9960              
- Misses            5280     5283       +3
Impacted Files Coverage Δ
app/api/helpers/system_mails.py 100% <ø> (ø) ⬆️
app/api/helpers/mail.py 28.43% <0%> (-0.87%) ⬇️

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 5e6cc2c...675b9d7. Read the comment docs.

u"<br/>Please contact the organizer for more info." +
u"<br/>To manage orders please login to {frontend_url} and visit \"My Tickets\"."
u"<br/>Best regards,"
u"<br/>Eventyay Team"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
u"<br/>Eventyay Team"
u"<br/>Eventyay Team"

See the repository name

@@ -369,12 +369,9 @@ def send_order_cancel_email(order):
subject=MAILS[TICKET_CANCELLED]['subject'].format(
event_name=order.event.name,
invoice_id=order.invoice_number,
frontend_url=get_settings()['frontend_url']
Copy link
Member

Choose a reason for hiding this comment

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

Why

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How is this field utilized in the subject, I didn't see it used anywhere in the text

Copy link
Member

Choose a reason for hiding this comment

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

I do

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I got it!

app/api/helpers/mail.py Outdated Show resolved Hide resolved
app/api/helpers/mail.py Outdated Show resolved Hide resolved
@codedsun
Copy link
Contributor Author

codedsun commented Dec 7, 2019

Review this!

@@ -363,18 +363,21 @@ def send_email_to_attendees(order, purchaser_id, attachments=None):


def send_order_cancel_email(order):
cancel_msg = ''
if order.cancel_note:
cancel_msg = u"<br/>Message from the organizer: {cancel_note}".format(cancel_note=order.cancel_note)
Copy link
Member

Choose a reason for hiding this comment

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

No

Copy link
Contributor Author

@codedsun codedsun Dec 7, 2019

Choose a reason for hiding this comment

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

if the cancel_note is not none then Message from the organizer should go in the email or not? I tried this way

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is the way of doing this wrong or something else you wanted to say?

Copy link
Member

Choose a reason for hiding this comment

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

OK for now

@codedsun
Copy link
Contributor Author

codedsun commented Dec 8, 2019

I have updated the branch, if it's okay. Please merge. Thanks

@iamareebjamal iamareebjamal merged commit 23a8e17 into fossasia:development Dec 8, 2019
codedsun added a commit to codedsun/open-event-server that referenced this pull request Dec 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Canceled orders with invoice links to 404 page
4 participants