Utils and DOMUtils have, over time, come to encapsulate a lot of useful functionality, but where they have become large files by grouping unrelated helpers in one place. It would be useful to separate out groups of helper utilities based on functionality they support.
Description
Details
Related Objects
- Mentioned In
- T205333: Eliminate circular dependencies
T210647: Paragraph wrapper introduces <p></p> in output HTML -- investigate and kill them where they are a result of edge case diffs between PHP parser and Parsoid code
T205334: Identify and remove dead code - Mentioned Here
- rGPARa6058e32ed64: Fixing about ids is only necessary when coming from cache
T205333: Eliminate circular dependencies
T210647: Paragraph wrapper introduces <p></p> in output HTML -- investigate and kill them where they are a result of edge case diffs between PHP parser and Parsoid code
rGPAR8ed698bd0316: Rename some more uses of contentVersion to outputContentVersion
T205334: Identify and remove dead code
Event Timeline
There are 100 helpers in Util.js and ~200 helpers in DOMUtils.js which is far too many!
Change 470708 had a related patch set uploaded (by Subramanya Sastry; owner: Subramanya Sastry):
[mediawiki/services/parsoid@master] Extract ScriptUtils from Utils
Change 470708 merged by jenkins-bot:
[mediawiki/services/parsoid@master] Extract ScriptUtils from Utils
Change 470725 had a related patch set uploaded (by Subramanya Sastry; owner: Subramanya Sastry):
[mediawiki/services/parsoid@master] Extracted token-related helpers from Util to TokenUtils
Change 470725 merged by jenkins-bot:
[mediawiki/services/parsoid@master] Extracted token-related helpers from Util to TokenUtils
Change 470742 had a related patch set uploaded (by Subramanya Sastry; owner: Subramanya Sastry):
[mediawiki/services/parsoid@master] Move parser functions helper to ParserFunctions.js
Change 470743 had a related patch set uploaded (by Subramanya Sastry; owner: Subramanya Sastry):
[mediawiki/services/parsoid@master] Extract parsing pipeline related utils from Util.js
Change 470750 had a related patch set uploaded (by Subramanya Sastry; owner: Subramanya Sastry):
[mediawiki/services/parsoid@master] Move pipeline helpers from DOMUtils.js to PipelineUtils.js
Change 470742 merged by jenkins-bot:
[mediawiki/services/parsoid@master] Move sole use util functions closer to use site
Change 470743 merged by jenkins-bot:
[mediawiki/services/parsoid@master] Extract parsing pipeline related utils from Util.js
Change 470750 merged by jenkins-bot:
[mediawiki/services/parsoid@master] Move pipeline helpers from DOMUtils.js to PipelineUtils.js
Mentioned in SAL (#wikimedia-operations) [2018-11-05T21:49:08Z] <arlolra> Updated Parsoid to 8ed698b (T205334, T208360)
Change 470906 had a related patch set uploaded (by Subramanya Sastry; owner: Subramanya Sastry):
[mediawiki/services/parsoid@master] Split utils/DOMUtils.js into separate functional units
Change 470906 merged by jenkins-bot:
[mediawiki/services/parsoid@master] Split utils/DOMUtils.js into separate functional units
Mentioned in SAL (#wikimedia-operations) [2018-12-05T21:39:08Z] <arlolra> Updated Parsoid to a6058e3 (T210647, T208360, T205333)