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
Remove smtp config from admin config page #5235
Remove smtp config from admin config page #5235
Conversation
This PR needs both |
UI-wise things work but I'm wondering about
Do you plan to add this? Re smtp password in the preferences table, in my docker dev setup db/seeds.rb successfully picks up the values from the available env vars set in config/application.yml. I'll check now in staging. |
a909052
to
0e5d7c1
Compare
thanks for mentioning that. I forgot about that. |
drop_table :spree_mail_methods | ||
|
||
# delete mail_method preferences associated with the old MailMethod model | ||
execute "DELETE FROM spree_preferences WHERE key LIKE 'spree/mail_method%'" |
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.
this will skip smtp_username and smtp_password though. Is that what we want?
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.
yes, I think smtp_username and smtp_password are the values set in MailConfiguration and used in MailSettings.
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.
ah ok, got it. These are old Spree preference and not ours. I wasn't sure what you were aiming at.
Confirmed it works.
This is ready for regular testing. |
great, thanks Pau! |
Hi @sauloperez , Tested the remaining fields:
Used the Send Test Email and tested whether all expected emails arrive on a signing-in process. All work fine - ready to go. |
oh, this was quick!!! |
What? Why?
Closes #1534
This is a quick fix to 1534. We remove the fields because they need dev intervention: start/stop delayedjob.
Before:
After:
These values are updated on every deploy through the seeds task. The values are set in the secrets file used by ofn-install. This needs to be tested in staging as part of this PR.
What should we test?
We are still able to use the existing fields in this form and they still work.
As part of this PR we need to test that ofn-install will update the smtp password in the preferences table during a normal deploy.
Release notes
Changelog Category: Changed
Remvoed mail settings config from the UI as they can only be changed by developers.