Closed (fixed)
Project:
CKEditor 4 - WYSIWYG HTML editor
Version:
1.0.x-dev
Component:
Code
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Aug 2022 at 14:59 UTC
Updated:
22 Sep 2022 at 11:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
wim leersComment #3
wim leersOf course: this won't work until #2 is committed 😬 Because the d.o composer facade maps the
core_version_requirementto a composer constraint. Committing…Comment #5
wim leershttps://dispatcher.drupalci.org/job/drupal_contrib/606666/console → tests are running for the very first time! 🥳
Comment #6
wim leersYay, tests ran, and mostly passed! 🥳
43 passes, 5 failures: https://www.drupal.org/pift-ci-job/2462950.
This patch should get us down to 4 failures.
Comment #8
wim leersThe failed test output makes no sense. It strongly suggests that the core module is still enabled, instead of my contrib module overriding it, which should ALWAYS happen — it's a feature of Drupal core!
Added debug output.
Also updated
CKEditorToolbarButtonTestandCKEditorUpdateOmitDisabledPluginSettingsnow. I'm skeptical they will work on the first try, but let's find out!Comment #10
wim leersWTF! Neither of these show up in the output!? 🤯
Comment #11
wim leersConverted #6 + #8 into a merge request, let's see how that goes.
Couldn't find any answers in https://www.drupal.org/project/quickedit's commit history either (since it is only testing against 9.5 and has not run in ~2 weeks), nor https://www.drupal.org/project/bartik (no automated tests running at all).
🤞
Comment #13
wim leersIn hindsight, I should've split the
10.0.xhistory, not the9.5.xhistory. It does not make sense to install this module on Drupal 9.5, because:lifecycle: deprecated)lifecycle: deprecated!So, creating a new MR to update this to mark it deprecated and limit it to
^10.That will also address the last test failure, because #3290810: Remove updates added prior to 9.4.0 (9.4.4 for ckeditor) and add 9.4.0 database dumps (correctly!) removed the sole post-update hook and removed the test, so keeping that test coverage around in contrib is pointless too.
Comment #14
wim leersActually, no, what I did is consistent with what https://www.drupal.org/project/quickedit did:
quickeditwas deprecated in9.5.0, just likeckeditor.Therefore it follows that we must have the same compatibility guarantees.
git diff 9.5.x 10.0.x -- core/modules/ckeditorshows pretty significant differences which if applied would make it incompatible with Drupal 9.5.Instead of what I wrote in #13, I just need to make the
3306630-make-tests-passmerge request execute the update test conditionally: only on 9.5, not on 10.Comment #17
wim leerscore/ckeditorasset library will not exist in Drupal 10.0.0. Therefore we should move that asset library into this module. Created new merge request for that: https://git.drupalcode.org/issue/ckeditor-3306630/-/tree/3306630-ckedito...Comment #20
wim leers#17:
… ugh and this means that the
git subtree splitI did so far for the contrib module actually is in principle … inaccurate. It does not include thecore/assets/vendor/ckeditorstuff. But then again, I don’t see how it realistically could, since it’d also entail moving files and retaining parts of the contents of the commit history 🤔 (All ofcore/assets/vendor/ckeditor, but only a subset ofcore/core.libraries.yml.)So … would not having that history be acceptable? Would just be doing https://git.drupalcode.org/issue/ckeditor-3306630/-/tree/3306630-ckedito... in its current form be acceptable?
P.S.: also, should we provide a
core/ckeditorasset library just for BC purposes? Although I cannot seem to find a single example of a module declaring an asset library on behalf of another extension 😅Comment #21
wim leersRE: subtree split in #20: confirmation from @xjm and @lauriii that retaining the full vendor history is unnecessary, so https://git.drupalcode.org/issue/ckeditor-3306630/-/tree/3306630-ckedito... is fine as-is! 🚢
Comment #22
wim leersI cannot merge https://git.drupalcode.org/issue/ckeditor-3306630/-/tree/3306630-ckedito... in good conscience until #3306909: Get Drupal Security Team approval to commit vendor/ckeditor.js to the drupal/ckeditor project is answered/clarified.
Comment #24
nod_Updated the MR with working alias for core/ckeditor. only declared if it's not already declared by core (shouldn't happen but i'd rather be prudent).
Comment #25
wim leersI'm 99% certain the test failures are due to #3306545: Replace ckeditor with ckeditor5 in the 9.4.x database dumps in Drupal 10.0.x & 10.1.x. Investigating.
Comment #27
wim leersThe
3306630-after-3306545-ckeditor4-is-no-longer-installedMR made tests green again in HEAD. Merging that, and then re-testing the3306630-ckeditor-asset-libraryMR.Comment #29
wim leersUgh, that merge request's commit has the brain-dead default title. 😬 The GitLab UI failed numerous times, so I didn't catch it this time. What a nightmare UX. 🤯 Why it is not smart enough to prompt me for a commit message if this is the n>1th merge request on the same issue fork is beyond me …
Comment #31
wim leersAll done. Keeping marked to indicate that #3306909: Get Drupal Security Team approval to commit vendor/ckeditor.js to the drupal/ckeditor project is needed prior to tagging
1.0.0. But went ahead and tagged1.0.0-rc1so we can proceed in #3270438: Remove CKEditor 4 from core and #3306563: [Meta] Tasks to remove CKEditor (4) from core and move to contrib.https://www.drupal.org/project/ckeditor/releases/1.0.0-rc1 is live 🚀
Comment #32
wim leers#3306909: Get Drupal Security Team approval to commit vendor/ckeditor.js to the drupal/ckeditor project was marked fixed 👍
Comment #33
wim leershttps://www.drupal.org/project/ckeditor/releases/1.0.0 is out! 🚢