While testing #5733, it was noticed that some Mail Method Settings were not retained after staging pull-requests. This concerns specifically the fields:
This was checked on staging servers-UK and -FR. Not sure it affects production.
These settings should be retained after staging additional PRs.
Previously set email addresses disappear, after subsequent deployments
Retyping the settings after each deployment.
I don't know if this is a v3-regression. Maybe bug-s3?
Update: this bug was observed in production already, as discussed here.
When rolling out v3, some configurations were verified to disappear with deployment, as discussed in Slack under this channel. Could this be related?
We have master build broken after merging #5733 with specs broken in the mail interceptor.
So this is introduced by 5733.
I'll have a look tomorrow.
I've noticed other lib loading bugs in the last day or so in master, specs failing that suddenly needed explicit require statements for missing classes...
Is there something spree does to autoload lib files that we're somehow missing now?
Just dropping a line to confirm that these settings disappear upon re-deployment on versions 3.2.2 and 3.2.3. Here's how I ran the test:
Repeated for v3.2.2 for staging-fr and checked that in both cases settings are wiped out.
Chatting with @luisramos0 we conclude this may relate to ofn-install issues. Further investigating.
ok, I think I know what's happening.
mail_bcc is a setting in ofn-install since 2018 https://github.com/openfoodfoundation/ofn-install/pull/203/files
if this is defined in secrets, the value will be overridden on every deploy.
if the value is not defined, the value will be wiped out as per https://github.com/openfoodfoundation/openfoodnetwork/blob/master/db/seeds.rb#L16
This is happening in staging because staging secrets do not have mail_bcc, this is not a problem in prod as the correct values from prod secrets are overridden on every deploy.
the issue is then: if a admin changes mail_bcc field in prod, on the next deploy, the value will be overrided by the value in ofn-install.
options:
we now know how this works and it's not a serious problem. I am moving to s4 now.
Most helpful comment
We have master build broken after merging #5733 with specs broken in the mail interceptor.
So this is introduced by 5733.
I'll have a look tomorrow.