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

Email to Trusted Adult #13

Closed
3 tasks done
tiffany-tang opened this issue Oct 5, 2018 · 8 comments
Closed
3 tasks done

Email to Trusted Adult #13

tiffany-tang opened this issue Oct 5, 2018 · 8 comments
Assignees
Labels
external-dependency Something is required before this can be worked on please-test priority-3
Milestone

Comments

@tiffany-tang
Copy link
Collaborator

tiffany-tang commented Oct 5, 2018

When I am going through a difficult period mentally,
I want the web-app to allow me to share my feelings with someone I trust,
Especially if I am experiencing frequent difficult feelings, or have tried and failed to find a coping strategy that works.

Acceptance Criteria

  • Will be asked whether they would like to send this information to their Trusted Adult after Reflection pages.
  • Can send daily information to Trusted Adult - including: the emotion logged, reason, the username
  • information will be sent as a simple email

MVP testing

  • Trusted Adult will be the facilitator of the closed group
  • Participating users will not be able to edit their trusted adult.

@Cleop
Copy link
Collaborator

Cleop commented Oct 18, 2018

I remember in our earlier meetings we said for now emails will all be sent to the assigned teacher so the children won't have the ability to customise or select who they're sending an email to. Is that still the case @tiffany-tang?

@tiffany-tang
Copy link
Collaborator Author

@Cleop Oh no I'm so sorry I missed the standup

Yes the emails will be sent to the assigned teacher so in this phase children won't be able to input contact details for another person.

This was referenced Oct 18, 2018
@tiffany-tang tiffany-tang changed the title Trusted Adult Email to Trusted Adult Oct 19, 2018
@Cleop Cleop added the external-dependency Something is required before this can be worked on label Oct 24, 2018
@Cleop Cleop added this to the Sprint 2 milestone Oct 24, 2018
@SimonLab SimonLab assigned SimonLab and unassigned tiffany-tang Oct 24, 2018
@SimonLab
Copy link
Collaborator

At the moment we are using

  • Mailgun - free at the moment (10,000 emails free every month; limited email addresses that can received email). We have at the moment only one trusted adult in the database. Once multiple trusted adult can be added do we still want to use Mailgun or another service (e.g Amzon Simple Email Service)

  • Elixir package Bamboo to send the email via the application, with Bamboo.MailgunAdapter

I manage to sent a simple email when a page is loaded:
image

Mailgun will create a private key and a domain value. These credentials must remain private and are loaded as environment variables with a .env file:

MAILGUN_API_KEY=5198.....
MAILGUN_DOMAIN=sandbox......mailgun.org

With docker you can load this environement variable with env_file property, ie:

version: '3'
services:
  app:
    build: .
    ports:
      - "4000:4000"
    volumes:
      - .:/app
    depends_on:
      - db
    env_file:
      - ./.env
  db:
    image: postgres:10.5

I need know to get all the information of the emotion from the database, get the email from the trusted adult linked to the emotion (via the user).
For that I need to double check the structure of the database to make sure we can use link the data together (user, trusted adult, emotion and emotion log) with Ecto

@tiffany-tang
Copy link
Collaborator Author

@SimonLab Just tested it out - it got sent over so that's great! Also loving the fact the homepage trusted adult button will change to indicate they have sent the email over.

A quick question regarding identification - I think it will be more efficient if the email contains the the username of the person sending the email so it'll be easier for the trusted adult to identify who that is.

@tiffany-tang
Copy link
Collaborator Author

@SimonLab Will the eventual version have this page after sharing the email to trusted adult?

@tiffany-tang
Copy link
Collaborator Author

Closed because issue resolved during stand-up

@tiffany-tang
Copy link
Collaborator Author

Accidentally closed it previously - i think we still have outstanding tasks.

@tiffany-tang
Copy link
Collaborator Author

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external-dependency Something is required before this can be worked on please-test priority-3
Projects
None yet
Development

No branches or pull requests

4 participants