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 reporting location #25

Closed

Conversation

kacper-cyra
Copy link
Contributor

@kacper-cyra kacper-cyra commented Jan 11, 2023

Closes #16

Comment on lines +21 to +27
SMTP:
PORT: 465
SERVER: "smtp.gmail.com"
ADDRESS: "my@gmail.com"
PASSWORD: "PA$$WORD"
DEFAULT_SENDER: "sender@gmail.com"
ADMIN_EMAIL: "help.desk@gmail.com"
Copy link
Collaborator

Choose a reason for hiding this comment

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

After adding PLUGINS, this should no longer be necessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup, I thought about this, but later I got reflection, that we are testing if app starts at all. So should we test if only base part of an app works, or should we test whole app. If we test only a part of it, then how we are sure if someone who will want to use reporting location won't end up with broken app

Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh. I totally agree that we should test whole app. :)
Yet - there is no e2e test yet (which should be here).

Copy link
Collaborator

Choose a reason for hiding this comment

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

Created #30 to track that.

And to be honest - I don't have good idea how to do this. (I have ideas, but would not say they are good). So please enjoy taking part in #30 discussion.

Copy link
Collaborator

Choose a reason for hiding this comment

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

And summing it up. I'd remove this config and plugin (which are not tested now) and move it to this second issue.
Which should be taken right away.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems that it's still here. Did you forget do commit push?

@kacper-cyra kacper-cyra reopened this Feb 5, 2023
request_body = request.get_json()
email_service.send_report_location_email(request_body)
return "", 200
if email_service:
Copy link
Collaborator

Choose a reason for hiding this comment

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

I see a big misunderstanding here. What I meant was only to remove it from test config.
As this is an integral part of code.

@@ -14,7 +14,7 @@ def create_app(config_path):

app = platzky.create_app_from_config(config)
extend_app_db(app)
app.email_service = EmailService(app.config["SMTP"], app.sendmail)
app.email_service = EmailService(app.config["SMTP"], app.sendmail) if 'sendmail' in app.config["PLUGINS"] else None
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here. Need to discuss it further.

@raven-wing
Copy link
Collaborator

Issue was closed with another PR

@raven-wing raven-wing closed this Oct 8, 2023
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.

Handle 'report an issue'
2 participants