Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Fix WYSIWYG migration error with non li elements inside lists#12626

Conversation

fblupi
Copy link
Member

🎩 What? Why?

Fix error in WYSIWYG migrator when there are non-li elements inside lists.

📌 Related Issues

Testing

  1. Include this content inside a field that will be migrated:<p>Vivamus rhoncus pretium neque et posuere:<ul>\n<li>Suspendisse gravida justo nec ornare rhoncus.</li>\n<li>Morbi venenatis metus augue.</li>\n</ul></p>
  2. Run the taskbin/rails decidim:upgrade:migrate_wysiwyg_content and see how it's properly converted

♥️ Thank you!

@fblupifblupi added module: core type: fixPRs that implement a fix for a bug labelsMar 19, 2024
@fblupifblupi requested a review froma teamMarch 19, 2024 11:35
github-actions[bot]
github-actionsbot previously approved these changesMar 19, 2024
@andreslucena
Copy link
Member

@fblupi can you check the rubocop offenses 🙏🏽 ? As you're only adding one line and this method is only used one time (with the migration), I'm OK with just disabling them.

fblupi reacted with thumbs up emoji

@fblupi
Copy link
MemberAuthor

@fblupi can you check the rubocop offenses 🙏🏽 ? As you're only adding one line and this method is only used one time (with the migration), I'm OK with just disabling them.

@andreslucena I have disabled those rules for the method and now the pipe is green 🙂

Copy link
Contributor

@alecslupualecslupu left a comment

Choose a reason for hiding this comment

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

LGTM

@alecslupualecslupu merged commit51a0d7f intodevelopApr 10, 2024
108 checks passed
@alecslupualecslupu deleted the fix/wysiwyg-migrator-convert-list-with-non-li-elements branchApril 10, 2024 08:14
@andreslucenaandreslucena added the no-backportPull Requests that should not be backported labelApr 29, 2024
@andreslucena
Copy link
Member

Adding theno-backport label as TipTap was introduced in v0.28, and this is already backported to that version.

andreslucena pushed a commit that referenced this pull requestMay 9, 2024
* Fix WYSIWYG migration error with non li elements inside lists* Disable rubocop rules
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@alecslupualecslupualecslupu approved these changes

@github-actionsgithub-actions[bot]github-actions[bot] approved these changes

Assignees

@alecslupualecslupu

Labels
module: coreno-backportPull Requests that should not be backportedtype: fixPRs that implement a fix for a bug
Projects
Archived in project
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Error while running the WYSIWYG migrator
3 participants
@fblupi@andreslucena@alecslupu

[8]ページ先頭

©2009-2025 Movatter.jp