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

Add context as parameter to EmailClient #964

Merged
merged 2 commits into from
Jul 10, 2023
Merged

Add context as parameter to EmailClient #964

merged 2 commits into from
Jul 10, 2023

Conversation

michplunkett
Copy link
Collaborator

@michplunkett michplunkett commented Jul 10, 2023

Fixes Issue

https://github.com/lucyparsons/OpenOversight/actions/runs/5510368096/jobs/10044531971

Description of Changes

For the config to be properly accessed in the email_client, a with app.context: line needed to be added or the config needed to be added as a parameter to the EmailClient.

Notes for Deployment

This should fix the issue.

Screenshots (if appropriate)

  • Validated fix by creating a new user on my local development environment.
Screenshot 2023-07-10 at 11 26 55 AM

Tests and linting

  • This branch is up-to-date with the develop branch.
  • pytest passes on my local development environment.
  • pre-commit passes on my local development environment.

@michplunkett michplunkett self-assigned this Jul 10, 2023
@michplunkett michplunkett changed the title Fix the build Add context as parameter to EmailClient Jul 10, 2023
@michplunkett michplunkett linked an issue Jul 10, 2023 that may be closed by this pull request
@michplunkett michplunkett marked this pull request as ready for review July 10, 2023 16:34
Copy link
Member

@b-meson b-meson 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.

@michplunkett michplunkett merged commit 61f3f2d into develop Jul 10, 2023
@michplunkett michplunkett deleted the fix_build branch July 10, 2023 21:23
sea-kelp pushed a commit to OrcaCollective/OpenOversight that referenced this pull request Sep 6, 2023
## Fixes Issue
https://github.com/lucyparsons/OpenOversight/actions/runs/5510368096/jobs/10044531971

## Description of Changes
For the config to be properly accessed in the `email_client`, a `with
app.context:` line needed to be added or the config needed to be added
as a parameter to the `EmailClient`.

## Notes for Deployment
This should fix the issue.

## Screenshots (if appropriate)
- Validated fix by creating a new user on my local development
environment.
<img width="1139" alt="Screenshot 2023-07-10 at 11 26 55 AM"
src="https://github.com/lucyparsons/OpenOversight/assets/5885605/615add77-0f11-4c46-885d-58826000974c">

## Tests and linting
 - [x] This branch is up-to-date with the `develop` branch.
 - [x] `pytest` passes on my local development environment.
 - [x] `pre-commit` passes on my local development environment.
sea-kelp pushed a commit to OrcaCollective/OpenOversight that referenced this pull request Sep 25, 2023
## Fixes Issue
https://github.com/lucyparsons/OpenOversight/actions/runs/5510368096/jobs/10044531971

## Description of Changes
For the config to be properly accessed in the `email_client`, a `with
app.context:` line needed to be added or the config needed to be added
as a parameter to the `EmailClient`.

## Notes for Deployment
This should fix the issue.

## Screenshots (if appropriate)
- Validated fix by creating a new user on my local development
environment.
<img width="1139" alt="Screenshot 2023-07-10 at 11 26 55 AM"
src="https://github.com/lucyparsons/OpenOversight/assets/5885605/615add77-0f11-4c46-885d-58826000974c">

## Tests and linting
 - [x] This branch is up-to-date with the `develop` branch.
 - [x] `pytest` passes on my local development environment.
 - [x] `pre-commit` passes on my local development environment.
sea-kelp pushed a commit to OrcaCollective/OpenOversight that referenced this pull request Oct 5, 2023
## Fixes Issue
https://github.com/lucyparsons/OpenOversight/actions/runs/5510368096/jobs/10044531971

## Description of Changes
For the config to be properly accessed in the `email_client`, a `with
app.context:` line needed to be added or the config needed to be added
as a parameter to the `EmailClient`.

## Notes for Deployment
This should fix the issue.

## Screenshots (if appropriate)
- Validated fix by creating a new user on my local development
environment.
<img width="1139" alt="Screenshot 2023-07-10 at 11 26 55 AM"
src="https://github.com/lucyparsons/OpenOversight/assets/5885605/615add77-0f11-4c46-885d-58826000974c">

## Tests and linting
 - [x] This branch is up-to-date with the `develop` branch.
 - [x] `pytest` passes on my local development environment.
 - [x] `pre-commit` passes on my local development environment.
AetherUnbound pushed a commit to OrcaCollective/OpenOversight that referenced this pull request Oct 9, 2023
## Fixes Issue
https://github.com/lucyparsons/OpenOversight/actions/runs/5510368096/jobs/10044531971

## Description of Changes
For the config to be properly accessed in the `email_client`, a `with
app.context:` line needed to be added or the config needed to be added
as a parameter to the `EmailClient`.

## Notes for Deployment
This should fix the issue.

## Screenshots (if appropriate)
- Validated fix by creating a new user on my local development
environment.
<img width="1139" alt="Screenshot 2023-07-10 at 11 26 55 AM"
src="https://github.com/lucyparsons/OpenOversight/assets/5885605/615add77-0f11-4c46-885d-58826000974c">

## Tests and linting
 - [x] This branch is up-to-date with the `develop` branch.
 - [x] `pytest` passes on my local development environment.
 - [x] `pre-commit` passes on my local development environment.
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.

Fix the broken email client in OO
2 participants