Closed (fixed)
Project:
Edit
Version:
7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
20 Mar 2013 at 12:58 UTC
Updated:
4 Feb 2014 at 21:10 UTC
Jump to comment: Most recent
Boatloads of clean-up to be done:
- VERSION is used as the version in libraries, but that's wrong, because edit.module is not part of core
- the includes/editor.PROPERTYEDITORNAME.inc files don't have docblocks and particularly the CKEditor one contains a lot of weird things that are not documented
- the code in pages.inc is mostly terrible to read, and where it does have docs, they're often outdated (i.e. wrong)
- fape.inc has been left in its temporary state, but now permanently; it needs to be cleaned up now that we explicitly don't want to depend on the fape module, and the filename and function names no longer make any sense
- …
Comments
Comment #1
wim leersWhile debugging #1946950: Node's menu link removed when changing either title, date or author via in-place editing (also: fape.inc is unmaintainable), I became even more baffled by the absolute piece of spaghetti that fape.inc is. It's impossible to understand.
Frankly, every commit made by nod_ during his D7 backport sprint has made it less understandable (that's what extreme time pressure will do). There's now two codepaths, and it's not clear why that's necessary and what the differences are.
So, to make Edit module stable and to solve #1946950: Node's menu link removed when changing either title, date or author via in-place editing (also: fape.inc is unmaintainable), I'll have to try to make sense out of fape.inc and simplify it. Potentially even add tests. Only then it will become solvable.
Comment #2
wim leersThere's too much to be done in this issue, so it makes sense to split this off to subissues. fape.inc clean-up and the problem with the node menu link being removed when changing title/date/author have been solved in one patch (because their problem spaces overlapped so much) over at #1946950-3: Node's menu link removed when changing either title, date or author via in-place editing (also: fape.inc is unmaintainable).
Comment #3
wim leersI completed a bunch of this today:
Comment #4
wim leersOnly remaining thing: backport D8-style in-place editor definitions to D7.
Comment #5
wim leersThat was wrong for a while now.
Comment #6
wim leersThis.
Comment #7
wim leersDo we really want to backport D8-style in-place editor definitions to D7? That means classes implementing an interface rather than info hooks listing callbacks and an include file. Isn't what we have now more D7-like, and shouldn't we therefor keep it?
Comment #8
webchickCan I get a code snippet or something to evaluate in the context of #7?
Comment #9
wim leersand
versus
Comment #10
gábor hojtsyI think what makes sense to diverge the D7/D8 codebase less. While callbacks with an info hook is more D7 like, the code looks like may diverge significantly, adding to the maintenance burden(?)
Comment #11
wim leers#10: that's definitely true. OTOH, the code in these classes would in any case be pretty significantly different, because of the huge changes to Entity/Field API in D8. But it'd still be easier to map changes in D8 to changes in D7, so it might still be worthwhile.
Comment #12
wim leersThis is a 1.0 blocker. Together with #2169401: Provide direct download link for the necessary custom build of CKEditor. It's blocked on #2169505: Clean up Edit's Plugin class names and file locations.
Comment #13
wim leersDone.
I even found a piece of dead code in the process.
http://drupalcode.org/project/edit.git/commit/58044ac