Skip to content
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

Picture view fixes #2798

Merged
merged 2 commits into from
Mar 22, 2024
Merged

Picture view fixes #2798

merged 2 commits into from
Mar 22, 2024

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Mar 21, 2024

What is this pull request for?

  • Allow HTML tags in ingredient picture view captions
  • Allow to pass render format as symbols

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

tvdeyen added 2 commits March 21, 2024 17:01
We allow a textarea to be used as image caption input. This produces br tags for new lines.
The output needs to be html safe in order to allow that.
It is very common in Ruby to pass values as symbols
as well.

ie.

    image.url(format: :png)

It was raising a (catched) error before that lead to cryptic
undefined method url for nil errors.
@tvdeyen tvdeyen requested a review from a team as a code owner March 21, 2024 16:24
@tvdeyen tvdeyen added the backport-to-7.1-stable Needs to be backported to 7.1-stable label Mar 21, 2024
Copy link

codecov bot commented Mar 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.88%. Comparing base (659a96c) to head (7b8a43a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2798   +/-   ##
=======================================
  Coverage   95.88%   95.88%           
=======================================
  Files         223      223           
  Lines        6082     6082           
=======================================
  Hits         5832     5832           
  Misses        250      250           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tvdeyen tvdeyen merged commit e7feafb into main Mar 22, 2024
36 checks passed
@tvdeyen tvdeyen deleted the picture-view-fixes branch March 22, 2024 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-7.1-stable Needs to be backported to 7.1-stable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants