saved searches: email configuration only picked up after hard reload
Created by: mrnugget
- Sourcegraph version: 3.4.0
- Platform information: Fresh Sourcegraph Docker instance, Google Chrome Version 74.0.3729.157
Steps to reproduce:
- Setup a fresh Sourcegraph instance, add an external service, make sure repositories are cloned
- Go to
/search/searches, clickAdd new search - Type in
type:diff foobaras a search query - Check the checkbox next to
Email notifications - See warning:
Warning: Sending emails is not currently configured on this Sourcegraph server. Use the email.smtp site configuration setting to enable sending emails. - Go to
/site-admin/configuration, add an email configuration and save:
"email.address": "[email protected]",
"email.smtp": {
"authentication": "PLAIN",
"host": "smtp.example.com",
"password": "supersecretpassword",
"port": 9999,
"username": "email-username"
},
- Again go to
/search/searches, clickAdd new search, usetype:diff foobaras search query - Check the checkbox next to
Email notifications - BUG: see the warning again that emails are not configured
- Do a hard reload in Chrome (Cmd+Shift+R)
- Again go to
/search/searches, clickAdd new search, usetype:diff foobaras search query - Check the checkbox next to
Email notifications - See no warning
Expected behavior:
I don't need to do a reload after saving the configuration
Actual behavior:
The saved searches form is not picking up on the updated site config until I do a reload