Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
ckeditor.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
16 Jan 2014 at 00:19 UTC
Updated:
5 Dec 2014 at 09:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
wim leersComment #2
wim leersComment #3
el7cosmosComment #4
nod_There is an extra
,in ckeditor.admin.js but more importantly there are references toregisterButtonMoveand a couple other functions in the split files. Those functions are local to the ckeditor.admin.js scope. They can't work from an other file. Those functions needs to be added to theDrupal.ckeditorobject so they can be used elsewhere.Comment #5
el7cosmosAnything else i missed?
Comment #10
setvik commentedHi Wim,
I'm at the PNW Drupal Summit core sprint and was just about to try re-rolling this patch, but noticed you just requeued for testing about 40 min. ago. and wanted to make sure i wasn't duplicating work. If you working on it now, let me know and i'll tackle something else.
Comment #11
setvik commentedRerolled against HEAD. No other changes.
Comment #12
wim leersI don't know how you rerolled, but unfortunately the reroll is wrong. The changes introduced by the last commit, for example, are lost.
When rerolling a patch that is splitting up a file into multiple files, you must make sure to include any new changes in the additions, rather than only updating the deletions to allow the patch to be applied.
Since this is a JS-only patch, it doesn't matter what testbot says: we have no JS test coverage, hence a green patch doesn't mean anything, unfortunately.
Could you reroll this again? Thanks!
Comment #13
wim leersComment #14
ikeigenwijs commentedComment #15
ikeigenwijs commentedComment #16
wim leersregisterGroupMove()andopenGroupNameDialog()still need the same treatment asregisterButtonMove()already received: they need to be moved onto theDrupal.ckeditorobject. Then this should be good to go! :)Comment #17
ikeigenwijs commentedComment #18
ikeigenwijs commentedregisterGroupMove() and openGroupNameDialog()
changes added to patch
interdiff.txt between patch of comment 15 en 18
Comment #19
ikeigenwijs commentedComment #20
wim leersWorks perfectly.
But:
Model.js, there was no empty line. So, added that.Comment #21
yesct commentedHere is the result of git diff -w from 18 to 20.
Comment #22
yesct commentedEvaluating this normal task per https://www.drupal.org/contribute/core/beta-changes
Updating the issue summary.
Note, according to the allowed changes handbook, this maybe should be postponed till 8.1.x
Could it reduce fragility? Or maybe improve performance (maybe it loads only the js that is needed)?
----
I read the related issues.. in #2162407: Split up toolbar.js the motivation is:
it is confusing to read.
I'm not sure I see the point of this issue. At least if this issue motivation is more than that, the summary should be updated.
Comment #23
nod_It's needed for us to be able to document our JS (JSDoc has problems when documenting all this stuff in one file for some reason, it's a JSDoc issue but it doesn't mean all this should be in a single file).
It's still the plan to do #2182153: [Meta] Document Drupal JavaScript using JSDoc It's just been a while since I could block another 12 hours to reroll that patch.
Comment #24
ikeigenwijs commentedthx Wim
So will the patch be submitted?
Comment #25
wim leers#24: You've already submitted/posted the patch. The patch is now marked as "Reviewed & tested by the community", which means that the next step is for a Drupal 8 core committer to do a final review and if no problems are found, commit it.
Comment #26
alexpottThe problem with this patch is the whilst I can see the benefits - I'm not sure they outweigh the risks - we have no test coverage of javascript patches. It would be good to see evidence of manual testing. I think it is worth trying to move to a javascript documentation standard and if this unblocks #2182153: [Meta] Document Drupal JavaScript using JSDoc then ok - but test evidence please.
Comment #27
wim leersI'm sorry, I didn't mention it, but I did extensive manual testing prior to RTBC'ing in #20.
Together with Jesse Beach, I was responsible for getting this into Drupal 8, and precisely because it is the result of *so* many hours of development, to make the UX and accessibility of configuring CKEditor awesome, I would never RTBC a patch like this if I weren't certain it didn't cause any problems. I thoroughly tested it manually.
Comment #28
wim leersAdded beta evaluation.
Comment #29
alexpottComment #30
wim leersDarn, I really need to write a
drupallintscript to run the various coding standards linters to prevent this.Manually tested again.
Comment #31
alexpottCommitted b61edd7 and pushed to 8.0.x. Thanks!
Comment #33
wim leers