-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Added unit tests for outlook reply by email #4046
Conversation
Generated by 🚫 Danger |
Please Don't copy the google email and yahoo email tests. They are not going to work. Tests for outlook is way much different from Gmail and Yahoo. To test the reply by email from outlook correctly firstly, you have to set up mailman on your system with the proper configuration and then create a user with the outlook email on your local system. After that add the implementation for parsing the emails coming from the outlook just like Gmail and Yahoo. Then send the email from the yahoo email to the email you have set up in mailman configuration and then check if the comment and answer is added to the correct node with the correct reply that you have sent in the email. This is gonna take time so please dont get discourage. Do some research over how mailman works and let me know if you need some help. |
Ohh Okay... Can you please tell me how can i setup mailman on my local machine.. |
Also.. where should I add the implementation for parsing of emails.... Can I get a pointer on that.. |
@oorjitchowdhary you will most likely get a quicker answer if you check out the IRC or the Glitch |
@jywarren can you please review it. |
@@ -0,0 +1,107 @@ | |||
Delivered-To: railsprojects2018@gmail.com |
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.
So this file should be a complete reply email generated by Outlook, which you can use to base the tests around. if you replace this content with an email generated by Outlook in reply to another email, we can restructure the code around parsing an Outlook-style email so that the "quoted text" does not appear in comments. Does that make sense?
Actually @dinaelhanan this one is not quite ready - thanks for your help in labeling! But perhaps if it's not very clearly ready (say, you can personally confirm that code works properly OR someone has posted a new commit or comment completely addressing a prior review, maybe?) then perhaps hold off on the 'ready' label? Thanks so much! |
@dinaelhanan here are a few supportive non beginner tasks which I created recently as per your request https://codein.withgoogle.com/dashboard/tasks/5464186466336768/ |
@SidharthBansal thanks! I will definelty take them up. Just waiting on this approval: |
@jywarren thanks for pointing that out! I've learned through another mistake on another issue that I should only label PR as ready if they have been reviewed and all checks have passed. Will use that more appropriately next time. Thanks! |
Great |
Hi @oorjitchowdhary ! I've just merged in this, and perhaps you could ask @kevinzluo if there is more to do here or if you might be able to help with more tests. If not, perhaps we should close this? Thank you!!! |
I'm a GCI-candidate.
Fixes #3436 (<=== Add issue number here)
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
rake test
@publiclab/reviewers
for help, in a comment belowIf tests do fail, click on the red
X
to learn why by reading the logs.Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Thanks!