Skip to content

Backport 'Backport smtp settings correction' on release/0.22-stable#6878

Merged
tramuntanal merged 1 commit intodecidim:release/0.22-stablefrom
Quentinchampenois:backport/smtp-settings-0.22-stable
Nov 20, 2020
Merged

Backport 'Backport smtp settings correction' on release/0.22-stable#6878
tramuntanal merged 1 commit intodecidim:release/0.22-stablefrom
Quentinchampenois:backport/smtp-settings-0.22-stable

Conversation

@Quentinchampenois
Copy link
Copy Markdown
Contributor

🎩 What? Why?

This PR is a backport proposition of #6664 on the release/0.22-stable branch. It aims to fix smtp settings bug.

📌 Related Issues

📋 Checklist

  • CONSIDER adding a unit test if your PR resolves an issue.
  • ✔️ DO check open PR's to avoid duplicates.
  • ✔️ DO keep pull requests small so they can be easily reviewed.
  • ✔️ DO build locally before pushing.
  • ✔️ DO make sure tests pass.
  • ✔️ DO make sure any new changes are documented in docs/.
  • ✔️ DO add and modify seeds if necessary.
  • ✔️ DO add CHANGELOG upgrade notes if required.
  • ✔️ DO add to GraphQL API if there are new public fields.
  • ✔️ DO add link to MetaDecidim if it's a new feature.
  • AVOID breaking the continuous integration build.
  • AVOID making significant changes to the overall architecture.

♥️ Thank you!

@Quentinchampenois Quentinchampenois changed the title backport 'Backport smtp settings correction' Backport 'Backport smtp settings correction' on release/0.22-stable Nov 17, 2020
@Quentinchampenois Quentinchampenois marked this pull request as ready for review November 17, 2020 15:43
@tramuntanal tramuntanal merged commit e86f959 into decidim:release/0.22-stable Nov 20, 2020
sauloperez added a commit to CoopCat-Confederacio-de-Cooperatives/decidim-coopcat that referenced this pull request Nov 20, 2020
I just rebased that branch onto the latest release/0.22-stable so that
we get decidim/decidim#6878.
Quentinchampenois added a commit to Quentinchampenois/decidim that referenced this pull request Nov 20, 2020
class UpdateSmtpFromLabel < ActiveRecord::Migration[5.2]
def change
Decidim::Organization.all.each do |org|
if org.smtp_settings[:from_email].blank?
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

if smtp_settings are nil, the fetch of the :from_email will fail.

sauloperez added a commit to coopdevs/decidim that referenced this pull request Nov 20, 2020
tramuntanal pushed a commit that referenced this pull request Nov 25, 2020
)

* Revert "Backport 'Backport smtp settings correction' to v0.22 (#6878)"

This reverts commit e86f959.

* Backport smtp settings on release 0.22 stable

* Revert for backport

This reverts commit ef0f3b3.

* Backport 'Correct smtp_settings keys type'
davidbeig pushed a commit to CoopCat-Confederacio-de-Cooperatives/decidim-coopcat that referenced this pull request Dec 2, 2025
I just rebased that branch onto the latest release/0.22-stable so that
we get decidim/decidim#6878.
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.

2 participants