Skip to content

Fix bug in welcome notifications when the organization has weird characters#12326

Merged
alecslupu merged 3 commits intodevelopfrom
fix/welcome-notification-with-weird-characters
Jan 29, 2024
Merged

Fix bug in welcome notifications when the organization has weird characters#12326
alecslupu merged 3 commits intodevelopfrom
fix/welcome-notification-with-weird-characters

Conversation

@andreslucena
Copy link
Copy Markdown
Member

🎩 What? Why?

While working in #12323, I had a flaky spec:

  1) Decidim::User#after_confirmation sends the email
     Failure/Error: expect(last_email.subject).to eq("Thanks for joining #{organization.name}!")

       expected: "Thanks for joining Block, Fadel and O'Kon!"
            got: "Thanks for joining Block, Fadel and O'Kon!"

       (compared using ==)
     # ./spec/models/decidim/user_spec.rb:331:in `block (3 levels) in <module:Decidim>'

This PR fixes it, and also removes a dependency that was only used here (mustache gem)

📌 Related Issues

Testing

CI should be green. You can copy the spec and see that it currently fails in develop without the fix.

📷 Screenshots

Screenshot of the failing flaky spec

♥️ Thank you!

@andreslucena andreslucena added module: core module: admin type: fix PRs that implement a fix for a bug labels Jan 24, 2024
github-actions[bot]
github-actions bot previously approved these changes Jan 24, 2024
Copy link
Copy Markdown
Contributor

@alecslupu alecslupu left a comment

Choose a reason for hiding this comment

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

Just a small change, and we are good to go.

Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro>
Copy link
Copy Markdown
Contributor

@alecslupu alecslupu left a comment

Choose a reason for hiding this comment

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

🥇

@alecslupu alecslupu merged commit 353d052 into develop Jan 29, 2024
@alecslupu alecslupu deleted the fix/welcome-notification-with-weird-characters branch January 29, 2024 19:38
entantoencuanto added a commit that referenced this pull request Feb 1, 2024
* develop:
  Remove elections module (#12366)
  Fix flaky for questionnaire drag and drop question (#12367)
  Redesign: datepicker (#11768)
  Patch participatory spaces factories (#12341)
  Upgrade chromedriver to v120+ (#12351)
  Fix bug in welcome notifications when the organization has weird characters (#12326)
  Have only one h1 in the admin pages (#12340)
  Fix voting data migration for AddFollowableCounterCacheToVotings (#12350)
  New Crowdin updates (#12282)
  Fix broken links in debates index (#12343)
entantoencuanto added a commit that referenced this pull request Feb 2, 2024
…design-staging

* fix/desgin-application-cell-components: (141 commits)
  Fix linters
  Add spellcheck="false" to remaining textareas with code
  Remove follow component page unused static elements
  Remove report component page unused static elements
  Fix process groups s cell card
  Fix style of design_table displaying cards
  Change cards component page to use cells and examples of code
  Replace static html with cell calls and use examples of code in author component page
  Replace static html with cell calls and use examples of code in address component page
  Rename sections
  Remove elections module (#12366)
  Fix flaky for questionnaire drag and drop question (#12367)
  Extend examples of cells in annonuncements and tab panels pages
  Ignore empty call_string items and remove spaces
  Add spellcheck="false" to code textareas
  Allow using multiple entries in call_string and update buttons component page
  Redesign: datepicker (#11768)
  Patch participatory spaces factories (#12341)
  Upgrade chromedriver to v120+ (#12351)
  Fix bug in welcome notifications when the organization has weird characters (#12326)
  ...
@alecslupu alecslupu added the no-backport Pull Requests that should not be backported label Feb 21, 2024
@alecslupu
Copy link
Copy Markdown
Contributor

This cnnot be backported to 0.27 as there are some dependencies removed ( mustache )

@andreslucena
Copy link
Copy Markdown
Member Author

This cnnot be backported to 0.27 as there are some dependencies removed ( mustache )

If you want we can leave that dependency there even though its no longer used (I prefer that vs the alternative of not fixing this bug in that version)

@andreslucena andreslucena removed the no-backport Pull Requests that should not be backported label Apr 2, 2024
@andreslucena
Copy link
Copy Markdown
Member Author

Removing the no-backport label as we will backport this without the removal of the mustache gem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: admin module: core type: fix PRs that implement a fix for a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants