Difference between revisions of "Extension inventory"

From Freephile Wiki
Jump to navigation Jump to search
(reorder columns)
(restore three rows that were accidentally removed)
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This page serves to inventory and assess the mix of extensions that are in use for the DCS wiki. Code for "regular" extensions are hosted on Gerrit at the WMF (which is also mirrored to GitHub) with documentation at https://www.mediawiki.org/wiki. Code for the DCS extensions is in the [https://github.com/debtcompliance/mediawiki/tree/master/extensions private Debt Compliance GitHub repo]; and the Organic Design extensions are in the [https://github.com/OrganicDesign/extensions/tree/master/MediaWiki 'MediaWiki' tree of the Organic Design GitHub repo].
+
This page serves to inventory and assess the mix of extensions that are in use for the DCS wiki:
  
== File Types ==
+
; Regular
In the '''DCS custom extensions''' (only), here are the file counts by file-type:
+
:
 +
: Code for "regular" extensions are hosted on Gerrit at the WMF (which is also mirrored to GitHub) with documentation at https://www.mediawiki.org/wiki. Regular is in quotes because ''all'' extensions modify the behavior and capabilities of MediaWiki. Those that are used by the WMF in their projects or are distributed in the official download should be considered stable, tested, and maintained. Over time, some extensions become part of MediaWiki core; and rarely core features are extracted into extensions.
 +
; DCS Custom
 +
:
 +
: Code for the DCS extensions is in the [https://github.com/debtcompliance/mediawiki/tree/master/extensions private Debt Compliance GitHub repo]
 +
; Organic Design
 +
:
 +
: Organic Design extensions are in the [https://github.com/OrganicDesign/extensions/tree/master/MediaWiki 'MediaWiki' tree of the Organic Design GitHub repo]. Just because it's an OD extension doesn't mean it's not used by the wider MediaWiki community. We try to note usage below.
  
    14 .css  Cascading Style Sheets (design / UI )
+
{{Highlight||text=Please review with the goal of adding info to the What does it do? column. That would be helpful to understand the function or utility of the extension -- especially as seen from the user perspective. Please note whichever role is involved: '''regular-user''', '''talk-editor''', '''client-admin''', or '''sysop'''.}}
      6 .gif    Graphic
 
      1 .ico    Icon
 
      1 .jpg    Graphic
 
      9 .js      JavaScript (functionality in the browser - client-side v. server-side)
 
    43 .json  JavaScript Object Notation (configuration / programming)
 
    69 .php  PHP - programming language for MediaWiki
 
      8 .pl      Perl - programming language
 
      4 .png    Graphic
 
      1 .svg    Graphic
 
  
 +
The ultimate goal is two-fold: not only understand 'What does it do?', but also understand related questions like:
  
== Source Code Summary ==
+
* "How critical is it? (Used all the time / occasionally, but still essential / never)"
{| class="wikitable sortable"
+
* "Does it need work? (known bugs or missing functionality)"
|+ Source Lines of Code (SLOC)
+
* "Can or should this extension be replaced (with a more widely supported "regular" extension) to improve maintainability, features, security and lower cost?
|-
 
! SLOC !! Directory !! SLOC-by-Language (Sorted)
 
|-
 
|  1873 || DcsJobAdmin || perl=985,php=779,javascript=109
 
|-
 
|  751 || DcsCommon || php=548,javascript=203
 
|-
 
|  551 || DcsSearch || javascript=282,php=269
 
|-
 
|  481 || DcsNamespaces || php=425,javascript=56
 
|-
 
|  379 || DcsAmmendments || php=203,javascript=176
 
|-
 
|  315 || DcsTitle || php=315
 
|-
 
|  269 || DcsSingleSignOn || php=269
 
|-
 
|  258 || DcsSection || php=258
 
|-
 
|  230 || DcsNuke || php=230
 
|-
 
|  208 || DcsComplianceChecklist || php=208
 
|-
 
|  178 || DcsExportTerms || php=178
 
|-
 
|  168 || DcsComplianceChecklist2 || php=168
 
|-
 
|  158 || DcsGroupAdmin || php=158
 
|-
 
|  139 || DcsWatchComments || php=139
 
|-
 
|  123 || DcsUserDisable || php=78,javascript=45
 
|-
 
|  110 || DcsLoanPages || php=110
 
|-
 
|  104 || DcsBaskets || php=57,javascript=47
 
|-
 
|  90 || DcsSkin || php=90
 
|-
 
|  88 || DcsFindTitle || php=88
 
|-
 
|  70 || DcsUploadedFiles || php=70
 
|-
 
|  40 || DcsEmailLink || php=40
 
|-
 
|  0 || DcsSection2 || (none)
 
|}
 
  
 +
Of course some features or functions are not really "user-centric" but might provide security or other features important to stakeholders like "Owner" or "Developer". For example: The DcsSkin provides a look and feel that is consistent with the company brand and makes the user experience more seamless while navigating between Website / Rails App / Wiki.
  
{| class="wikitable sortable"
+
I've put information about "[[Extension inventory/sloc|Source lines of code]]" into a sub-article.
|+ Totals grouped by language (dominant language first)
 
|-
 
! php:
 
| 4680 (71.09%)
 
|-
 
! perl:
 
| 985 (14.96%)
 
|-
 
! javascript:
 
| 918 (13.95%)
 
|}
 
  
<pre>
 
Total Physical Source Lines of Code (SLOC)                = 6,583
 
Development Effort Estimate, Person-Years (Person-Months) = 1.45 (17.36)
 
  (Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05))
 
Schedule Estimate, Years (Months)                        = 0.62 (7.40)
 
  (Basic COCOMO model, Months = 2.5 * (person-months**0.38))
 
Estimated Average Number of Developers (Effort/Schedule)  = 2.35
 
Total Estimated Cost to Develop                          = $ 195,428
 
  (average salary = $56,286/year, overhead = 2.40; calculated in 2004 dollars)
 
</pre>
 
 
=== And for the 'tools' directory ===
 
Part of the DCS wiki system, there is a directory called 'tools' which is a collection of Perl scripts that Aran developed for various web projects. The entire collection is [https://github.com/OrganicDesign/tools available on GitHub]
 
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
|+ Source Lines of Code (SLOC)
+
!#
|-
+
!Extension
! SLOC !! Directory !! SLOC-by-Language (Sorted)
+
!What does it do? (explain functionality by role: regular-user, talk-editor, client-admin, or sysop)
|-
+
!Maintenance / Last release
| 4817 || top_dir || perl=3838,php=648,sh=331
+
!Used by WMF
|-
+
!Used by Meza
| 345 || crowdrating.org || perl=345
+
!Used by QualityBox
|-
+
!Example / Notes / Alternatives?
| 172 || jobs || perl=121,php=51
 
|-
 
| 63 || bm-gateway || python=63
 
|-
 
| 4 || meditation || perl=4
 
 
|-
 
|-
| 3 || docker || sh=3
+
|1
 +
|[[mw:Extension:CirrusSearch|CirrusSearch]]
 +
|Extends the core search for MediaWiki to be able to use [[Elasticsearch]]. Elasticsearch provides a much better search capability to all users of the wiki. In particular, it allows DCS to index documents (file uploads).
 +
|Continuous
 +
|Yes
 +
|Yes
 +
|Yes
 +
|CirrusSearch (Elasticsearch) is vital to the ability to index uploaded files
 
|-
 
|-
| 0 || atom || (none)
+
|2
 +
|[[mw:Extension:Elastica|Elastica]]
 +
|Base Elasticsearch functionality by providing the Elastica library; required by CirrusSearch.
 +
|Continuous
 +
|Yes
 +
|Yes
 +
|Yes
 +
|Required as part of Search
 
|-
 
|-
| 0 || icons || (none)
+
|3
|-
+
|[[mw:Extension:Nuke|Nuke]]
| 0 || nginx || (none)  
+
|The Nuke extension makes it possible for sysops to [https://demo.qualitybox.us/wiki/Special:Nuke mass delete pages].
|}
+
|Continuous
 +
|Bundled
 +
|No
 +
|Yes
 +
|For whatever reason, the DCSNuke extension intercepts page requests for the Nuke special page. DCSNuke has no added functionality. The DCSNuke code is roughly equivalent to the REL1_20 release of Nuke; and the current Nuke extension offers more functionality. I thought that potentially the reason to use a cloned extension was to totally customize the interface language strings, but that's not the case<ref>meld <(curl https://raw.githubusercontent.com/debtcompliance/mediawiki/master/extensions/DcsNuke/i18n/en.json?token=AACV4LWLt32dJzNg2zqcDRP_QZ6ecfOvks5bDx4MwA%3D%3D) <(curl https://raw.githubusercontent.com/wikimedia/mediawiki-extensions-Nuke/master/i18n/en.json)</ref>. Remove DCSNuke.
  
{| class="wikitable sortable"
+
'''DcsNuke is not just a clone, as described in the Github wiki Extensions page: it adds a new field for supplying a title pattern to select the deletion candidates by. Other criteria could be added later such as restricting to category.'''
|+ Totals grouped by language (dominant language first)
 
|-
 
! perl:
 
| 4308 (79.72%)
 
|-
 
! php:
 
|  699 (12.93%)
 
|-
 
! sh:
 
| 334 (6.18%)
 
|-
 
!python:
 
| 63 (1.17%)
 
|}
 
  
 
+
The custom DcsNuke extension does not provide features different from the regular Nuke extension. The regular Nuke extension shall be included for DCS.
<pre>
 
Total Physical Source Lines of Code (SLOC)                = 5,404
 
Development Effort Estimate, Person-Years (Person-Months) = 1.18 (14.11)
 
(Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05))
 
Schedule Estimate, Years (Months)                        = 0.57 (6.84)
 
(Basic COCOMO model, Months = 2.5 * (person-months**0.38))
 
Estimated Average Number of Developers (Effort/Schedule)  = 2.06
 
Total Estimated Cost to Develop                          = $ 158,852
 
(average salary = $56,286/year, overhead = 2.40).
 
</pre>
 
 
 
 
 
== "Regular" Extensions ==
 
Regular is in quotes because ''all'' extensions modify the behavior and capabilities of MediaWiki. Those that are used by the WMF in their projects or are distributed in the official download should be considered stable, and well-maintained.  Extensions which are <span style="background:#90989e;">'unused' are grayed out</span>, to focus on the actual code being used. Unused means that the extension code is on the server, but not activated.
 
 
 
{| class="wikitable sortable"
 
|-
 
! Extension
 
! What does it do? (explain functionality it provides by role: DCS Admin, client)
 
! Maintenance / Last release
 
! Used by WMF
 
! Used by Meza
 
! Used by QualityBox
 
! Used by DCS Alternatives?
 
|-
 
| [https://www.mediawiki.org/wiki/Extension:CirrusSearch CirrusSearch]
 
| Extends the core search for MediaWiki to be able to use [https://en.wikipedia.org/wiki/Elasticsearch Elasticsearch]
 
| Continuous
 
| Yes
 
| Yes
 
| Yes
 
| Yes
 
|- style="background:#90989e;"
 
| [https://www.mediawiki.org/wiki/Extension:Cite Cite]
 
| Provides <nowiki><references /> and <ref></ref></nowiki> tags
 
| Continuous
 
| Bundled in the official tarball release of MediaWiki (aka 'the download').
 
| Yes
 
| Yes
 
| UNUSED
 
|- style="background:#90989e;"
 
| [https://www.mediawiki.org/wiki/Extension:CiteThisPage CiteThisPage]
 
| Provides [https://demo.qualitybox.us/wiki/Special:CiteThisPage Cite This Page] Special Page.
 
| Continuous
 
| Bundled
 
| No
 
| Yes
 
| UNUSED
 
|- style="background:#90989e;"
 
| [https://www.mediawiki.org/wiki/Extension:ConfirmEdit ConfirmEdit]
 
| Adds CAPTCHAs for page saves and other user actions to protect against spam and password-guessing
 
| Continuous
 
| Bundled
 
| No
 
| Yes
 
| UNUSED
 
|-
 
| [https://www.mediawiki.org/wiki/Extension:Elastica Elastica]
 
| Base Elasticsearch functionality by providing the Elastica library; required by CirrusSearch.
 
| Continuous
 
| Yes
 
| Yes
 
| Yes
 
| Yes
 
|- style="background:#90989e;"
 
| [https://www.mediawiki.org/wiki/Extension:Gadgets Gadgets]
 
| Provides a way for users to pick JavaScript or CSS based "gadgets" that other wiki users provide.
 
| Continuous
 
| Bundled
 
| No
 
| Yes
 
| UNUSED
 
|- style="background:#90989e;"
 
| [https://www.mediawiki.org/wiki/Extension:ImageMap ImageMap]
 
| The ImageMap extension allows clickable image maps.
 
| Continuous
 
| Bundled
 
| Yes
 
| Yes
 
| UNUSED
 
|- style="background:#90989e;"
 
| [https://www.mediawiki.org/wiki/Extension:InputBox InputBox ]
 
| The InputBox extension adds already created HTML forms to wiki pages.  So, for [https://www.mediawiki.org/wiki/MediaWiki_1.30#Subpages example], a search box on a page or category with many subpages; preconfigured to "Search this space".
 
| Bundled
 
| Continuous
 
| Yes
 
| Yes
 
| UNUSED
 
|- style="background:#90989e;"
 
| [https://www.mediawiki.org/wiki/Extension:Interwiki Interwiki]
 
| The Interwiki extension adds the "Special:Interwiki" page to MediaWiki, to view and edit the interwiki table, and a log of any actions made with it.
 
| Continuous
 
| Bundled
 
| Yes
 
| Yes
 
| UNUSED
 
|- style="background:#90989e;"
 
| [https://www.mediawiki.org/wiki/Extension:LocalisationUpdate LocalisationUpdate]
 
| Allows to update the localizations for MediaWiki messages at any time, without needing to upgrade the MediaWiki software.
 
| Continuous
 
| Bundled
 
| No
 
| No
 
| UNUSED
 
 
|-
 
|-
| [https://www.mediawiki.org/wiki/Extension:Nuke Nuke]  
+
|4
| The Nuke extension makes it possible for sysops to [https://demo.qualitybox.us/wiki/Special:Nuke mass delete pages].
+
|[[mw:Extension:ParserFunctions|ParserFunctions]]
| Continuous
+
|Enhances the wikitext parser with helpful functions, mostly related to logic and string-handling.
| Bundled
+
|Continuous maintenance
| No
+
|Bundled
| Yes
+
|Yes
| For whatever reason, the DCSNuke extension intercepts page requests for the Nuke special page. DCSNuke has no added functionality. The DCSNuke code is roughly equivalent to the REL1_20 release of Nuke; and the current Nuke extension offers more functionality. I thought that potentially the reason to use a cloned extension was to totally customize the interface language strings, but that's not the case<ref>meld <(curl https://raw.githubusercontent.com/debtcompliance/mediawiki/master/extensions/DcsNuke/i18n/en.json?token=AACV4LWLt32dJzNg2zqcDRP_QZ6ecfOvks5bDx4MwA%3D%3D) <(curl https://raw.githubusercontent.com/wikimedia/mediawiki-extensions-Nuke/master/i18n/en.json)</ref>. Remove DCSNuke.
+
|Yes
 +
|At the bottom of the Special:Version page, you'll see a list of "Parser Function Hooks" that includes the following custom parser functions defined by DCS extensions: '''amendments''', '''companycomments''', '''compliancechecklist''', '''loans''', '''loansinuse''', '''section'''. Many of the others are provided by the Parser Functions extension: if, ifeq, switch, ifexist, ifexpr, iferror, time, timel, expr, rel2abs, titleparts, len, pos, rpos, sub, count, replace, explode
 
|-
 
|-
| [https://www.mediawiki.org/wiki/Extension:ParserFunctions ParserFunctions]
+
|5
| Enhances the wikitext parser with helpful functions, mostly related to logic and string-handling.
+
|[[mw:Extension:Pipe_Escape|PipeEscape]]
| Continuous maintenance
+
|The Pipe Escape extension allows for pipe characters in parser function arguments (and template argument calls) avoid being interpreted as an argument delimiter. This is primarily for the purpose of using wiki tables (or parts thereof) inside parser function calls or templates.
| Bundled
+
|Old but stable
| Yes
+
|Bundled
| Yes
+
|Yes
| Yes
+
|Yes
|- style="background:#90989e;"
+
|Included via DcsSetup
| [https://www.mediawiki.org/wiki/Extension:PdfHandler PdfHandler]
 
| The PdfHandler extension shows uploaded pdf files in a multipage preview layout.
 
 
 
With the Proofread Page extension, pdfs can be displayed side-by-side with text. This allows users to transcribe books and other documents.  
 
| Continuous
 
| Bundled
 
| Disabled
 
| Yes
 
| UNUSED
 
 
|-
 
|-
| [https://www.mediawiki.org/wiki/Extension:Pipe_Escape PipeEscape]
+
|6
| The Pipe Escape extension allows for pipe characters in parser function arguments (and template argument calls) avoid being interpreted as an argument delimiter. This is primarily for the purpose of using wiki tables (or parts thereof) inside parser function calls or templates.
+
|[[mw:Extension:SimpleMathJax|SimpleMathJax]]
| Old but stable
+
|The SimpleMathJax extension enables MathJax, a Javascript library, for typesetting TeX formula in MediaWiki inside math environments. This extension will load resources from cdnjs.cloudflare.com on all wiki pages that have math or chem tags.
| Bundled
+
|Regular maintenance
| Yes
+
|No, WMF uses the Math extension
| Yes
+
|Yes
| Included via DcsSetup
+
|Yes
|- style="background:#90989e;"
+
|included by DcsSetup.php
| [https://www.mediawiki.org/wiki/Extension:Poem Poem]
 
| The Poem extension allows easy formatting of poems and similar material within Wikitext. Once the extension is enabled, you can put any block of text within <nowiki><poem></poem></nowiki> tags
 
| Continuous updates
 
| Bundled
 
| No
 
| Yes
 
| UNUSED
 
|- style="background:#90989e;"
 
| [https://www.mediawiki.org/wiki/Extension:Renameuser Renameuser]
 
| The Renameuser extension provides a special page which allows authorized users to rename user accounts. This will cause page histories, etc. to be updated. If you want to rename an account "into" another, already existing one, you need the User Merge and Delete extension.
 
| Continuous updates
 
| Bundled
 
| No
 
| Yes
 
| UNUSED
 
 
|-
 
|-
| [https://www.mediawiki.org/wiki/Extension:SimpleMathJax SimpleMathJax]
+
|7
| The SimpleMathJax extension enables MathJax, a Javascript library, for typesetting TeX formula in MediaWiki inside math environments. This extension will load resources from cdnjs.cloudflare.com on all wiki pages that have math or chem tags.
+
|[[mw:Extension:WikiEditor|WikiEditor]]
| Regular maintenance
+
|The WikiEditor extension provides an improved interface for editing wikitext. It is the wikitext editing interface that Wikipedia started using in 2010 for desktop users, and so it is sometimes called the "2010 wikitext editor".
| No, WMF uses the Math extension
+
|0.5.1 (2016-04-15) some oversight by WMF
| Yes
+
|Bundled
| Yes
+
|Yes
| included by DcsSetup.php
+
|Yes
|- style="background:#90989e;"
+
|
| [https://www.mediawiki.org/wiki/Extension:SpamBlacklist SpamBlacklist]
 
| The SpamBlacklist extension prevents edits that contain URLs whose domains match regular expression patterns defined in specified files or wiki pages and registration by users using specified email addresses.
 
 
 
When someone tries to save a page, SpamBlacklist checks the text against a (potentially very large) list of illegal host names. If there is a match, the extension displays an error message to the user and refuses to save the page.
 
| Continuous updates
 
| Bundled
 
| No
 
| No
 
| UNUSED
 
|- style="background:#90989e;"
 
| [https://www.mediawiki.org/wiki/Extension:SyntaxHighlight SyntaxHighlight_GeSHi] (now known simply as SyntaxHighlight)
 
| Provides rich formatting of source code using the <nowiki><syntaxhighlight></nowiki> tag. It is powered by the Pygments library and supports hundreds of different programming languages and file formats.
 
| continuous updates
 
| Bundled
 
| Yes
 
| Yes
 
| UNUSED
 
|- style="background:#90989e;"
 
| [https://www.mediawiki.org/wiki/Extension:TitleBlacklist TitleBlacklist]
 
| Combat spam and vandalism. Allows wiki administrators to block the creation, movement and upload of pages, the title of which matches one or more regular expressions, as well as blocking creation of accounts with matching usernames. (Prevent account creation by "he who shall not be named" or prevent pages like "Sh*t".
 
| 1.5.0 (2014-03-29) some oversight by WMF
 
| Bundled
 
| No
 
| No
 
| UNUSED
 
 
|-
 
|-
| [https://www.mediawiki.org/wiki/Extension:WikiEditor WikiEditor]
+
|8
| The WikiEditor extension provides an improved interface for editing wikitext. It is the wikitext editing interface that Wikipedia started using in 2010 for desktop users, and so it is sometimes called the "2010 wikitext editor".  
+
|[https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsamendments DcsAmmendments]
| 0.5.1 (2016-04-15) some oversight by WMF
+
|Adds ammendments section to DCS loan pages. Sysop (only) can add/delete/edit/re-order (up/down) the ammendments; UX [https://github.com/debtcompliance/mediawiki/blob/master/extensions/DcsAmmendments/modules/dcsammendments.js implemented in JavaScript]. Extends the API with the same functions. Adds new log type: amendments; and logs all actions.
| Bundled
+
|Jan 2018 - new sort functionality ready for testing
| Yes
+
|no
| Yes
+
|no
| Yes
+
|no
 +
|https://clienttest.dm.dcstemporary.com/ARCA14:1.5_Time_References
 
|-
 
|-
|}
+
|9
 +
|[https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsbaskets DcsBaskets]
 +
|This extension allows the utilization column of the Baskets tables to be edited directly using AJAX and saving values into 'basket' tables rather than in the traditional wiki-text revision tables.
 +
|1.4.3, 2018-05-25
 +
|no
 +
|no
 +
|no
 +
|"Baskets" can be found in the hierarchy list of the leftnav under the 'Compliance' folder. The page name, by convention, is 'Baskets' e.g. https://clienttest.dm.dcstemporary.com/Baskets  This is really neat, and very advanced.  However, now that Visual Editor is available, I'd suspect that the user experience of editing large tables in Visual Editor would be much better. '''Replace Baskets with Visual Editor'''
  
== Custom DCS Extensions ==
+
'''We've tested the Visual Editor and found it to be to "clunky" for practical use, that was a year or so back, but based on my own experience I think it would still be considered that way if it was tested again now'''
 
 
{| class="wikitable sortable"
 
|-
 
! Extension
 
! Purpose
 
! Last release
 
! Example usage + notes
 
|-
 
| [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsamendments DcsAmmendments]
 
| Adds ammendments section to DCS loan pages. Sysop (only) can add/delete/edit/re-order (up/down) the ammendments; UX [https://github.com/debtcompliance/mediawiki/blob/master/extensions/DcsAmmendments/modules/dcsammendments.js implemented in JavaScript]. Extends the API with the same functions. Adds new log type: amendments; and logs all actions.
 
| Jan 2018 - new sort functionality ready for testing
 
| https://clienttest.dm.dcstemporary.com/ARCA14:1.5_Time_References
 
|-
 
| [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsbaskets DcsBaskets]
 
| This extension allows the utilization column of the Baskets tables to be edited directly using AJAX and saving values into 'basket' tables rather than in the traditional wiki-text revision tables.
 
| 1.4.3, 2018-05-25
 
| "Baskets" can be found in the hierarchy list of the leftnav under the 'Compliance' folder. The page name, by convention, is 'Baskets' e.g. https://clienttest.dm.dcstemporary.com/Baskets  This is really neat, and very advanced.  However, now that Visual Editor is available, I'd suspect that the user experience of editing large tables in Visual Editor would be much better. '''Replace Baskets with Visual Editor'''
 
 
|-
 
|-
| [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcscommon DcsCommon]
+
|10
| Cookie handling was [https://github.com/debtcompliance/mediawiki/commit/41b4c2a9af447c25143da7e39d959dae3affd0c8#diff-dfec3a4f5a263c72b06f5ceafcac3408 added on June 14, 2017]. The code (the cookie.js part) is from a project called [https://github.com/js-cookie/js-cookie/blob/master/src/js.cookie.js js-cookie]. So, we could update that code. Or, we could replace it with internal functions so we don't rely on 3rd party code. See the API documentation for [https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.cookie mw.cookie] (Does '''not''' use the $wgCookieSecure configuration variable since 'detect' could not work with
+
|[https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcscommon DcsCommon]
 +
|Cookie handling was [https://github.com/debtcompliance/mediawiki/commit/41b4c2a9af447c25143da7e39d959dae3affd0c8#diff-dfec3a4f5a263c72b06f5ceafcac3408 added on June 14, 2017]. The code (the cookie.js part) is from a project called [https://github.com/js-cookie/js-cookie/blob/master/src/js.cookie.js js-cookie]. So, we could update that code. Or, we could replace it with internal functions so we don't rely on 3rd party code. See the API documentation for [https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.cookie mw.cookie] (Does '''not''' use the $wgCookieSecure configuration variable since 'detect' could not work with
 
ResourceLoaderStartUpModule; as module cache is not fragmented by protocol.) The mw.cookie (JavaScript) code is syntactically and functionally similar to the server-side cookie API (`[https://doc.wikimedia.org/mediawiki-core/master/php/classWebRequest.html#aa952980c6053a1e23c3ce673eb0f1d6d WebRequest#getCookie]` and `[https://doc.wikimedia.org/mediawiki-core/master/php/classWebResponse.html#a92cfd006677a1d96c3cee8ee3edcccd3 WebResponse#setcookie]`).
 
ResourceLoaderStartUpModule; as module cache is not fragmented by protocol.) The mw.cookie (JavaScript) code is syntactically and functionally similar to the server-side cookie API (`[https://doc.wikimedia.org/mediawiki-core/master/php/classWebRequest.html#aa952980c6053a1e23c3ce673eb0f1d6d WebRequest#getCookie]` and `[https://doc.wikimedia.org/mediawiki-core/master/php/classWebResponse.html#a92cfd006677a1d96c3cee8ee3edcccd3 WebResponse#setcookie]`).
  
https://www.mediawiki.org/wiki/Manual:Hooks/UserSetCookies is deprecated as of REL1_27, and session-handling extensions should be subclassing CookieSessionProvider. [https://www.mediawiki.org/wiki/Manual:$wgSessionProviders $wgSessionProviders]
+
https://www.mediawiki.org/wiki/Manual:Hooks/UserSetCookies is deprecated as of REL1_27, and session-handling extensions should be subclassing CookieSessionProvider. [[mw:Manual:$wgSessionProviders|$wgSessionProviders]]
  
The class creates methods for outputting messages, notices, dates, getting [https://gerrit.wikimedia.org/g/mediawiki/core/+/master/includes/content/ContentHandler.php#86 raw content].
+
The class creates methods for outputting messages, notices, dates, getting [[git:mediawiki/core/+/master/includes/content/ContentHandler.php#86|raw content]].
  
 
It loads some javascript (through resource loader). That [https://github.com/debtcompliance/mediawiki/blob/master/extensions/DcsCommon/modules/dcscommon.js javascript] could more easily be maintained as MediaWiki:Common.js? although there may be load order issues.  The JS defines like-named methods with varying features. E.g. <blockquote>Check if the passed page title string is in a loan namespace, returns boolean. Note that this function only checks if the namespace is in the list of all loan namespaces, it doesn't do any checks for whether the namespace is in use, or whether the title is in a DCS_TOC article like the DcsCommon::isLoanPage PHP function.</blockquote>
 
It loads some javascript (through resource loader). That [https://github.com/debtcompliance/mediawiki/blob/master/extensions/DcsCommon/modules/dcscommon.js javascript] could more easily be maintained as MediaWiki:Common.js? although there may be load order issues.  The JS defines like-named methods with varying features. E.g. <blockquote>Check if the passed page title string is in a loan namespace, returns boolean. Note that this function only checks if the namespace is in the list of all loan namespaces, it doesn't do any checks for whether the namespace is in use, or whether the title is in a DCS_TOC article like the DcsCommon::isLoanPage PHP function.</blockquote>
Line 366: Line 134:
  
 
The 'common' extension creates a singleton instance of the DcsCommon class that does a bunch of things according to [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcscommon notes in the wiki]. The permissions shouldn't really be hidden away in the class code. They should simply be in LocalSettings.php. onUserGetRights() is a big function.  The 'self:cache' is mostly called in connection with 'isLocal'. Any true caching should just be offloaded to APC and memcache. Although there is no 'dcs' table in the database on dcsTemporary, the [https://github.com/debtcompliance/mediawiki/blob/master/extensions/DcsCommon/DcsCommon.php#L653 setData()] method is used throughout the codebase so should update [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcscommon wiki] about where this data is stored.
 
The 'common' extension creates a singleton instance of the DcsCommon class that does a bunch of things according to [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcscommon notes in the wiki]. The permissions shouldn't really be hidden away in the class code. They should simply be in LocalSettings.php. onUserGetRights() is a big function.  The 'self:cache' is mostly called in connection with 'isLocal'. Any true caching should just be offloaded to APC and memcache. Although there is no 'dcs' table in the database on dcsTemporary, the [https://github.com/debtcompliance/mediawiki/blob/master/extensions/DcsCommon/DcsCommon.php#L653 setData()] method is used throughout the codebase so should update [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcscommon wiki] about where this data is stored.
| recent
+
 
| pervasive
+
'''set/getData is for storing arbitrary DCS data in the dcs db table. Agreed that this extension needs cleaning up.'''
 +
|recent
 +
|no
 +
|no
 +
|no
 +
|pervasive
 
|-
 
|-
| [https://github.com/debtcompliance/mediawiki/wiki/Compliance-Checklist DcsComplianceChecklist]
+
|11
| Provides a dropdown list of loans and responsibility terms by which the table can be filtered on the Checklist page (by convention). The parser function creates the page contents and form controls.
+
|[https://github.com/debtcompliance/mediawiki/wiki/Compliance-Checklist DcsComplianceChecklist]
| recent (2017 - 2018)
+
|Provides a dropdown list of loans and responsibility terms by which the table can be filtered on the Checklist page (by convention). The parser function creates the page contents and form controls.
| e.g. https://clienttest.dm.dcstemporary.com/Checklist
+
|recent (2017 - 2018)
 +
|no
 +
|no
 +
|no
 +
|e.g. https://clienttest.dm.dcstemporary.com/Checklist
 
|-
 
|-
| DcsComplianceChecklist2  
+
|12
| purpose?
+
|DcsComplianceChecklist2
| release?
+
|purpose?
| only used in the '''checktest''' subdomain, or when `wgLocalTesting`; intention is to use a timestamp condition
+
|release?
 +
|no
 +
|no
 +
|no
 +
|only used in the '''checktest''' subdomain, or when `wgLocalTesting`; intention is to use a timestamp condition.
 +
 
 +
'''This is in progress, the requirements of the checklist are simpler now and version 2 is just about stripping out a bunch of obsolete functionality.'''
 
|-
 
|-
| [https://github.com/debtcompliance/mediawiki/tree/master/extensions/DcsEmailLink DcsEmailLink]
+
|13
| Allows you to send a link to a page in the wiki. Activated by the "Email Link" item in the primary navigation across the top of the page. Similar to the "Email Page" extension by Aran, which is also used.
+
|[https://github.com/debtcompliance/mediawiki/tree/master/extensions/DcsEmailLink DcsEmailLink]
| 11 months ago
+
|Allows you to send a link to a page in the wiki. Activated by the "Email Link" item in the primary navigation across the top of the page. Similar to the "Email Page" extension by Aran, which is also used.
| visit any page
+
|11 months ago
 +
|no
 +
|no
 +
|no
 +
|visit any page
 
|-
 
|-
| [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsexportterms DcsExportTerms]
+
|14
| Allows terms to be downloaded in Comma Separated Value (CSV) format. CSV is easily imported to a spreadsheet.
+
|[https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsexportterms DcsExportTerms]
| recent
+
|Allows terms to be downloaded in Comma Separated Value (CSV) format. CSV is easily imported to a spreadsheet.
| Visit https://clienttest.dm.dcstemporary.com/Category:Terms and you will see a "Export Terms" action in the primary navigation across the top of the page.
+
|recent
 +
|no
 +
|no
 +
|no
 +
|Visit https://clienttest.dm.dcstemporary.com/Category:Terms and you will see a "Export Terms" action in the primary navigation across the top of the page.
 
|-
 
|-
| [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsfindtitle DcsFindTitle]
+
|15
| helps to find a title regardless of case-sensitivity of the system.
+
|[https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsfindtitle DcsFindTitle]
| recent
+
|helps to find a title regardless of case-sensitivity of the system.
| integrates with the API, however I'm unsure where it's visible/usable to the user. I believe it's used from the Ruby side to create links that will match a wiki page even if there is a case mismatch.  If you wish to navigate to https://clienttest.dm.dcstemporary.com/ARCA14:TOC but request https://clienttest.dm.dcstemporary.com/arca14:toc instead, you'll get a 404 Not Found error. If you request https://clienttest.dm.dcstemporary.com/arca14:toc?action=findtitle then you will be redirected to the proper article.
+
|recent
 +
|no
 +
|no
 +
|no
 +
|integrates with the API, however I'm unsure where it's visible/usable to the user. I believe it's used from the Ruby side to create links that will match a wiki page even if there is a case mismatch.  If you wish to navigate to https://clienttest.dm.dcstemporary.com/ARCA14:TOC but request https://clienttest.dm.dcstemporary.com/arca14:toc instead, you'll get a 404 Not Found error. If you request https://clienttest.dm.dcstemporary.com/arca14:toc?action=findtitle then you will be redirected to the proper article.
 +
 
 +
'''This uses ApiBeforeMain and APIAfterExecute hooks to modify the API query prop=info to make it case-insensitive.'''
 
|-
 
|-
| [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsgroupadmin DcsGroupAdmin]
+
|16
| Leverages the DcsBlockPageAccess hook to allow/disallow access to files and namespaces.
+
|[https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsgroupadmin DcsGroupAdmin]
| recent
+
|Leverages the DcsBlockPageAccess hook to allow/disallow access to files and namespaces.
| https://clienttest.dm.dcstemporary.com/Special:DcsGroupAdmin/equality
+
|recent
 +
|no
 +
|no
 +
|no
 +
|https://clienttest.dm.dcstemporary.com/Special:DcsGroupAdmin/equality
 
|-
 
|-
| [https://github.com/debtcompliance/mediawiki/tree/master/extensions/DcsJobAdmin DcsJobAdmin]
+
|17
| See [https://github.com/debtcompliance/mediawiki/wiki/Background-jobs Background info on Background jobs]. Creates a Special Page [https://clienttest.dm.dcstemporary.com/Special:DcsJobAdmin Special:DcsJobAdmin] where you can start a new job; or view current and historical jobs.  Each job type loads it's own form into the Admin page. The job runner extends the Maintenance class, and loops over running jobs to provide some progress reporting. It saves the most recent 10 jobs to a 'history' list.
+
|[https://github.com/debtcompliance/mediawiki/tree/master/extensions/DcsJobAdmin DcsJobAdmin]
 +
|See [https://github.com/debtcompliance/mediawiki/wiki/Background-jobs Background info on Background jobs]. Creates a Special Page [https://clienttest.dm.dcstemporary.com/Special:DcsJobAdmin Special:DcsJobAdmin] where you can start a new job; or view current and historical jobs.  Each job type loads it's own form into the Admin page. The job runner extends the Maintenance class, and loops over running jobs to provide some progress reporting. It saves the most recent 10 jobs to a 'history' list.
 
There are functions in the code for:
 
There are functions in the code for:
 +
 
* Return a list of the currently running jobs sorted by start time.
 
* Return a list of the currently running jobs sorted by start time.
 
* Add a job to the 'history' list of jobs executed (list is limited to 10 items).
 
* Add a job to the 'history' list of jobs executed (list is limited to 10 items).
Line 417: Line 220:
 
** UpgradeAttachments
 
** UpgradeAttachments
  
Each (or almost all?) PHP file is backed by a perl file which was the basis for the PHP development. Everything is written twice because it all started back when the best framework for handling MediaWiki jobs was a perl bot framework. Things have changed significantly over the recent past for [https://www.mediawiki.org/wiki/Manual:Job_queue MediaWiki's job queue].
+
Each (or almost all?) PHP file is backed by a perl file which was the basis for the PHP development. Everything is written twice because it all started back when the best framework for handling MediaWiki jobs was a perl bot framework. Things have changed significantly over the recent past for [[mw:Manual:Job_queue|MediaWiki's job queue]].
  
 
According to [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsjobadmin the documentation], it allows you to manage jobs. But, I'm wondering how much this is actually used? The job queue should be run automatically by cron, and the administrative user shouldn't have to worry about it really. If there is a usage pattern where job execution is time sensitive, there is a use for an Admin function; but I'm curious about the usage patterns that create large or numerous jobs.  Otherwise, set wgJobRunRate to zero, and put it into cron `0 0 * * * root /usr/bin/php /var/www/example.com/www/w/maintenance/runJobs.php > /var/log/runJobs.log 2>&1`
 
According to [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsjobadmin the documentation], it allows you to manage jobs. But, I'm wondering how much this is actually used? The job queue should be run automatically by cron, and the administrative user shouldn't have to worry about it really. If there is a usage pattern where job execution is time sensitive, there is a use for an Admin function; but I'm curious about the usage patterns that create large or numerous jobs.  Otherwise, set wgJobRunRate to zero, and put it into cron `0 0 * * * root /usr/bin/php /var/www/example.com/www/w/maintenance/runJobs.php > /var/log/runJobs.log 2>&1`
| 2018-05-25
+
 
| yes
+
'''These jobs aren't just  the standard MW maintenance jobs, they're DCS-specific jobs that need to run in the background as they often need to do intensive manipulation of thousands of articles. The special page is the interface to these jobs allowing parameters to be set for them and stopping/starting/cancelling/pausing them etc, as well as getting feedback on their progress or errors etc.'''
 +
|2018-05-25
 +
|no
 +
|no
 +
|no
 +
|
 
|-
 
|-
| [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsloanpages DcsLoanPages]
+
|18
| creates "backlinks" which are links to content that contain a particular keyword or phrase found in a loan document. It also creates the <nowiki>"< Prev" and "Next >"</nowiki> navigation links (called 'breadcrumbs' in the code, but actually these are 'pager' links not breadcrumbs).
+
|[https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsloanpages DcsLoanPages]
| recent
+
|creates "backlinks" which are links to content that contain a particular keyword or phrase found in a loan document. It also creates the <nowiki>"< Prev" and "Next >"</nowiki> navigation links (called 'breadcrumbs' in the code, but actually these are 'pager' links not breadcrumbs).
| If you go to a page like https://clienttest.dm.dcstemporary.com/ARCA14:Agreement You will see a large section of content called '''Index to ARCA14 pages containing "Agreement""'' So, in other words, it's a list of links to pages of the ARCA14 loan that have the word "Agreement" in them. These links are created by the extension.
+
|recent
 +
|no
 +
|no
 +
|no
 +
|If you go to a page like https://clienttest.dm.dcstemporary.com/ARCA14:Agreement You will see a large section of content called '''Index to ARCA14 pages containing "Agreement""'' So, in other words, it's a list of links to pages of the ARCA14 loan that have the word "Agreement" in them. These links are created by the extension.
 +
 
 +
'''They wanted the backlinks at the bottom of the page not in a separate special page'''
 
|-
 
|-
| [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsnamespaces DcsNamespaces]
+
|19
| Manages the segregation of loan documents into their own separate namespaces. Also provides some functionality around moving/deleting/renaming namespaces via the https://clienttest.dm.dcstemporary.com/Special:DcsNamespaces special page.
+
|[https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsnamespaces DcsNamespaces]
| recent
+
|Manages the segregation of loan documents into their own separate namespaces. Also provides some functionality around moving/deleting/renaming namespaces via the https://clienttest.dm.dcstemporary.com/Special:DcsNamespaces special page.
| e.g. https://clienttest.dm.dcstemporary.com/Special:DcsNamespaces
+
|recent
 +
|no
 +
|no
 +
|no
 +
|e.g. https://clienttest.dm.dcstemporary.com/Special:DcsNamespaces
 
|-
 
|-
| DcsNuke
+
|20
| purpose?
+
|DcsNuke
| release?
+
|purpose?
| yes. REPLACE with [https://www.mediawiki.org/wiki/Extension:Nuke standard Nuke extension]
+
|release?
|-
+
|no
| DcsSearch
+
|no
| Extends the Elasticsearch backend with additional business logic, and new features and UX (saving search "favorites" and indexing link paths traversed in connection with a search query). See https://github.com/debtcompliance/mediawiki/wiki/Search-&-sorting
+
|no
| a year ago
+
|REPLACE with [[mw:Extension:Nuke|standard Nuke extension]]
| e.g. See the "heart" symbol next to the search box which implements the "favorites" feature.
+
 
|-
+
'''See notes in Nuke above, this is not a replica of Nuke'''
| [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcssection DcsSection]
 
| Allows for loan documents to be imported into the wiki as multiple articles.  Creates a 'section reference' capability.
 
| in progress (v2)
 
|
 
|-
 
| DcsSection2
 
| purpose?
 
| release?
 
| NO - at least not on the development machine which is a clone of production.
 
|-
 
| [https://github.com/debtcompliance/mediawiki/wiki/SSO-2017-specification DcsSingleSignOn]
 
| Create a master/slave relationship with the Ruby on Rails application as the authentication and group mangement source; with the MediaWiki application synchronizing user information into it's local database.
 
| 2017 major update
 
| For testing, you can access /wiki/extensions/dcs/DcsSingleSignOn/testLogin.php
 
|-
 
| [https://github.com/debtcompliance/mediawiki/wiki#the-dcs-skin DcsSkin]
 
| Custom 'style' to match DCS website / frontend
 
| recent
 
| Yes
 
|-
 
| [https://github.com/debtcompliance/mediawiki/wiki/The-DcsTitle-class DcsTitle]
 
| Extends the regular MediaWiki title object class. Creates a custom cache of the TOC.
 
| recent
 
| yes
 
|-
 
| [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsuploadedfiles DcsUploadedFiles]
 
| Creates a special page listing all the files uploaded to loan documents orderd by loan namepsace then by article
 
| a year ago
 
| https://clienttest.dm.dcstemporary.com/Special:DcsUploadedFiles
 
 
|-
 
|-
| DcsUserDisable
+
|21
| Adds 'enable/disable' links to the User list
+
|DcsSearch
| a year ago
+
|Extends the Elasticsearch backend with additional business logic, and new features and UX (saving search "favorites" and indexing link paths traversed in connection with a search query). See https://github.com/debtcompliance/mediawiki/wiki/Search-&-sorting
| https://clienttest.dm.dcstemporary.com/Special:ListUsers Why not use the [https://clienttest.dm.dcstemporary.com/Special:Block Special:Block] functionality built into core?I believe it's every bit as accessible through the API and thus could be used from QAR.
+
|a year ago
 +
|no
 +
|no
 +
|no
 +
|e.g. See the "heart" symbol next to the search box which implements the "favorites" feature.
 
|-
 
|-
| [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcswatchcomments DcsWatchComments]
+
|22
| Adds subscription to talk pages.
+
|[https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcssection DcsSection]
| release?
+
|Allows for loan documents to be imported into the wiki as multiple articles.  Creates a 'section reference' capability.
| When I view my normal [https://clienttest.dm.dcstemporary.com/Special:EditWatchlist MediaWiki 'WatchList'], I don't see any loan talk pages added. I only see my user page.
+
|in progress (v2)
 +
|no
 +
|no
 +
|no
 +
|
 
|-
 
|-
|}
+
|23
 
+
|DcsSection2
== Organic Design extensions ==
+
|purpose?
ONLY extensions marked with ** are actually used by DCS
+
|release?
 
+
|no
# <span style="background:#90989e;">Accordian</span>
+
|no
# <span style="background:#90989e;">AddLinkClasses</span>
+
|no
# [https://github.com/OrganicDesign/extensions/tree/master/MediaWiki/AjaxComments AjaxComments] **
+
|Unused - at least not on the development machine which is a clone of production.
# <span style="background:#90989e;">ArticleProperties</span>
 
# <span style="background:#90989e;">Bliki</span>
 
# <span style="background:#90989e;">CodeTidy</span>
 
# <span style="background:#90989e;">CurrentPages</span>
 
# <span style="background:#90989e;">CurrentUsers</span>
 
# <span style="background:#90989e;">Download</span>
 
# [https://www.mediawiki.org/wiki/Extension:EmailPage EmailPage] ** Adds a special page that allows you to send the rendered contents of a wiki page to a recipient. Activated by the "Email" item in the primary navigation across the top of the page.
 
# <span style="background:#90989e;">EmailToWiki</span>
 
# <span style="background:#90989e;">EximMailList</span>
 
# [https://github.com/OrganicDesign/extensions/blob/master/MediaWiki/ExtraMagic/ExtraMagic_body.php ExtraMagic] ** Adds extra [https://www.mediawiki.org/wiki/Help:Magic_words Magic Words] and Parser functions.
 
# <span style="background:#90989e;">FaceBook</span>
 
# <span style="background:#90989e;">FileAttach</span>
 
# <span style="background:#90989e;">FormMailer</span>
 
# <span style="background:#90989e;">HighlightJS</span>
 
# <span style="background:#90989e;">InterWiki</span>
 
# [https://github.com/OrganicDesign/extensions/tree/master/MediaWiki/jQueryUpload jQueryUpload] ** v1.4.5, 2016-08-28
 
# <span style="background:#90989e;">jQueryUpload2</span>
 
# <span style="background:#90989e;">Ligmincha</span>
 
# <span style="background:#90989e;">LinkAttributes</span>
 
# <span style="background:#90989e;">LinkTree</span>
 
# <span style="background:#90989e;">NukeDPL</span>
 
# <span style="background:#90989e;">ODMaps</span>
 
# <span style="background:#90989e;">OrganicDesign</span>
 
# [https://www.mediawiki.org/wiki/Extension:PdfBook PdfBook] ** The PdfBook extension composes a book from articles in a category and exports as a PDF file.
 
# <span style="background:#90989e;">RecentActivity</span>
 
# <span style="background:#90989e;">SimpleCalendar</span>
 
# <span style="background:#90989e;">TransformChanges</span>
 
# [https://www.mediawiki.org/wiki/Extension:TreeAndMenu TreeAndMenu] ** makes bullet lists into folder trees or dynamic drop-down menus.<br /><br />The drop-down menu functionality uses Son of Suckerfish which is 99% CSS, and the tree component is now using the FancyTree jQuery plugin rather than the dTree used in previous version of the TreeAndMenu extension. The new FancyTree has many options and plugins and is very extendable, please view the site and examples for more detail.
 
# <span style="background:#90989e;">UserLoginLog</span>
 
# <span style="background:#90989e;">UserProfiles</span>
 
# <span style="background:#90989e;">Variables</span>
 
# <span style="background:#90989e;">WebSocket</span>
 
# <span style="background:#90989e;">WikiaAdmin</span>
 
# <span style="background:#90989e;">WikiaInfo</span>
 
 
 
 
 
 
 
  
 
+
'''There is a lot of obsolete and patched functionality in this extension, a version 2 was about to be started to strip all this out'''
== Double Check ==
 
This is what you'll see reported by the "[https://clienttest.dm.dcstemporary.com/Special:Version Special:Version]" page of the wiki.  This page shows you exactly what extensions and versions of software are installed and activated on your wiki.
 
 
 
=== Installed skins ===
 
 
 
{| class="wikitable sortable"
 
|-
 
| align=center| '''Skin'''
 
| align=center| '''Version'''
 
| align=center| '''License'''
 
| align=center| '''Description'''
 
| align=center| '''Authors'''
 
 
|-
 
|-
| | [https://www.mediawiki.org/wiki/Skin:Cologne_Blue Cologne Blue]
+
|24
| |
+
|[https://github.com/debtcompliance/mediawiki/wiki/SSO-2017-specification DcsSingleSignOn]
| | [https://clienttest.dm.dcstemporary.com/Special:Version/License/Cologne_Blue GPL-2.0+]
+
|Create a master/slave relationship with the Ruby on Rails application as the authentication and group mangement source; with the MediaWiki application synchronizing user information into it's local database.
|  | A lightweight skin with minimal formatting
+
|2017 major update
|  | Lee Daniel Crocker and others
+
|no
 +
|no
 +
|no
 +
|For testing, you can access /wiki/extensions/dcs/DcsSingleSignOn/testLogin.php
 
|-
 
|-
| | [http://www.debtcompliance.com/ DcsSkin]
+
|25
| | 3.0.2, 2016-07-01
+
|[https://github.com/debtcompliance/mediawiki/wiki#the-dcs-skin DcsSkin]
| | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
+
|Custom 'style' to match DCS website / frontend QAR app
| | DCS skin desgined to match the QAR app
+
|3.0.2, 2016-07-01
| | [http://www.organicdesign.co.nz/aran Aran Dunkley]
+
|no
 +
|no
 +
|no
 +
|Skin by Aran Dunkley
 
|-
 
|-
| | [https://www.mediawiki.org/wiki/Skin:Modern Modern]
+
|26
| |
+
|[https://github.com/debtcompliance/mediawiki/wiki/The-DcsTitle-class DcsTitle]
| | [https://clienttest.dm.dcstemporary.com/Special:Version/License/Modern GPL-2.0+]
+
|Extends the regular MediaWiki title object class. Creates a custom cache of the TOC.
| | A blue/gray theme with sidebar and top bar. Derived from MonoBook
+
|recent
| | River Tarnell and others
+
|no
 +
|no
 +
|no
 +
|yes
 
|-
 
|-
| | [https://www.mediawiki.org/wiki/Skin:MonoBook MonoBook]
+
|27
| |
+
|[https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsuploadedfiles DcsUploadedFiles]
| | [https://clienttest.dm.dcstemporary.com/Special:Version/License/MonoBook GPL-2.0+]
+
|Creates a special page listing all the files uploaded to loan documents orderd by loan namepsace then by article
|  | The classic MediaWiki skin since 2004, named after the black-and-white photo of a book in the page background
+
|a year ago
|  | Gabriel Wicke and others
+
|no
 +
|no
 +
|no
 +
|https://clienttest.dm.dcstemporary.com/Special:DcsUploadedFiles
 
|-
 
|-
| | [https://www.mediawiki.org/wiki/Skin:Vector Vector]
+
|28
| |
+
|DcsUserDisable
| | [https://clienttest.dm.dcstemporary.com/Special:Version/License/Vector GPL-2.0+]
+
|Adds 'enable/disable' links to the User list
|  | Modern version of MonoBook with fresh look and many usability improvements
+
|a year ago
|  | Trevor Parscal, Roan Kattouw and others
+
|no
 
+
|no
 
+
|no
 +
|https://clienttest.dm.dcstemporary.com/Special:ListUsers Why not use the [https://clienttest.dm.dcstemporary.com/Special:Block Special:Block] functionality built into core?I believe it's every bit as accessible through the API and thus could be used from QAR.
 
|-
 
|-
|}
+
|29
 +
|[https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcswatchcomments DcsWatchComments]
 +
|Adds subscription to talk pages.
 +
|release?
 +
|no
 +
|no
 +
|no
 +
|When I view my normal [https://clienttest.dm.dcstemporary.com/Special:EditWatchlist MediaWiki 'WatchList'], I don't see any loan talk pages added. I only see my user page.
  
=== Installed extensions ===
+
'''This functionality doesn't apply to the MW watchlist, it's on the Company Comments page'''
 
 
{| class="wikitable sortable"
 
|-
 
| colspan="5"  align=center| '''Special pages'''
 
|- style="background-color:#f2f2f2;border:0.05pt solid #aaaaaa;padding:0.0194in;"
 
| align=center| '''Extension'''
 
| align=center| '''Version'''
 
| align=center| '''License'''
 
| align=center| '''Description'''
 
| align=center| '''Authors'''
 
|-
 
|  | [http://www.debtcompliance.com/ DcsGroupAdmin]
 
|  | 1.2.0, 2015-06-26
 
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
 
|  | A special page for managing DCS groups and access
 
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
 
|-
 
|  | [http://www.debtcompliance.com/ DcsJobAdmin]
 
|  | 4.0.0, 2017-06-28
 
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
 
|  | A special page for managing DCS jobs that run in the background
 
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
 
|-
 
|  | [http://www.debtcompliance.com/ DcsSearch]
 
|  | 2.4.2, 2017-01-27
 
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
 
|  | Renders the search dropdown with favourite terms list, and allows users to track the pages they've visited from search results of their favorite terms
 
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
 
|-
 
|  | [http://www.debtcompliance.com/ DcsUploadedFiles]
 
|  | 1.3.0, 2017-07-08
 
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
 
|  | A special page for listing the files uploaded to loan pages
 
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
 
 
|-
 
|-
| | [https://www.mediawiki.org/wiki/Extension:EmailPage EmailPage]
+
|30
| | 2.4.4, 2017-04-26
+
|[https://github.com/OrganicDesign/extensions/tree/master/MediaWiki/AjaxComments AjaxComments]
| | [https://clienttest.dm.dcstemporary.com/Special:Version/License/EmailPage GPL-2.0+]
+
|
| | Send rendered HTML page to an e-mail address or list of addresses using&nbsp;[http://phpmailer.sourceforge.net/ phpmailer]
+
|
| | [http://www.organicdesign.co.nz/aran Aran Dunkley]
+
|
 +
|
 +
|
 +
|
 
|-
 
|-
| | [http://www.organicdesign.co.nz/jQueryUpload jQueryUpload]
+
|31
| | 1.4.5, 2016-08-28
+
|[[mw:Extension:EmailPage|EmailPage]]
| | [https://www.gnu.org/licenses/gpl-2.0.html GNU ][https://www.gnu.org/licenses/gpl-2.0.html General Public Licence 2.0]&nbsp;or later
+
|Adds a special page that allows you to send the rendered HTML contents of a wiki page to a recipient (or list). Dependant on PHPMailer (5.2.23)
| | Allows files to be uploaded to the wiki or to specific pages using the jQueryFileUpload module
+
|2.4.4 (2017-04-26)
|  | [http://www.organicdesign.co.nz/aran Aran ][http://www.organicdesign.co.nz/aran Dunkley]&nbsp;and&nbsp;[http://blueimp.net/ Sebastian Tschan]
+
|Used by [[wikiapiary:Extension:EmailPage|at least 38 wikis]]
 +
|no
 +
|no
 +
|Activated by the "Email" item in the primary navigation across the top of the page.
 
|-
 
|-
| | [https://www.mediawiki.org/wiki/Extension:Nuke Nuke]
+
|32
|  | 1.2.0
+
|[https://github.com/OrganicDesign/extensions/blob/master/MediaWiki/ExtraMagic/ExtraMagic_body.php ExtraMagic]
|  | [https://clienttest.dm.dcstemporary.com/Special:Version/License/Nuke GPL-2.0+]
+
|Adds extra [[mw:Help:Magic_words|Magic Words]] and Parser functions.
| | Gives administrators the ability to&nbsp;[https://clienttest.dm.dcstemporary.com/Special:Nuke mass delete]&nbsp;pages
+
|
|  | Brion Vibber and Jeroen De Dauw
+
|
|-
+
|
| colspan="5" |
+
|
|- style="background-color:#f2f2f2;border:0.05pt solid #aaaaaa;padding:0.0194in;"
+
|
| colspan="5"  align=center| '''Parser hooks'''
 
|- style="background-color:#f2f2f2;border:0.05pt solid #aaaaaa;padding:0.0194in;"
 
| align=center| '''Extension'''
 
| align=center| '''Version'''
 
| align=center| '''License'''
 
| align=center| '''Description'''
 
| align=center| '''Authors'''
 
 
|-
 
|-
|  | [http://www.debtcompliance.com/ DcsComplianceChecklist]
 
|  | 1.24.2, 2016-05-10
 
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
 
|  | Creates the #ComplianceChecklist parser-function
 
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
 
 
|-
 
|-
| | [http://www.organicdesign.co.nz/Extension:ExtraMagic.php ExtraMagic]
+
|33
| | 3.8.0, 2015-010-04
+
|[https://github.com/OrganicDesign/extensions/tree/master/MediaWiki/jQueryUpload jQueryUpload]
| | [https://www.gnu.org/licenses/gpl-2.0.html GNU General Public Licence 2.0]&nbsp;or later
+
|
| | Adds useful variables and parser functions
+
|v1.4.5, 2016-08-28
| | [http://www.organicdesign.co.nz/aran Aran Dunkley]
+
|
 +
|no
 +
|no
 +
|
 
|-
 
|-
| | [https://www.mediawiki.org/wiki/Extension:ParserFunctions ParserFunctions]
+
|34
| 1.6.0
+
|[[mw:Extension:PdfBook|PdfBook]]
| | [https://clienttest.dm.dcstemporary.com/Special:Version/License/ParserFunctions GPL-2.0]
+
|The PdfBook extension composes a book from articles in a category, bullet list, or DPL query; and exports as a PDF file. Depends on [https://www.msweet.org/projects.php?Z1 HTMLDoc]
| | Enhance parser with logical functions
+
|1.5.1 (2017-05-14)
| | Tim Starling, Robert Rohde, Ross McClure and Juraj Simlovic
+
|Used by [[wikiapiary:Extension:PdfBook|at least 154 wikis]]
 +
|no
 +
|no
 +
|
 
|-
 
|-
| | [http://www.mediawiki.org/wiki/Extension:TreeAndMenu PdfBook]
+
|35
|  | 1.5.2, 2017-05-15
+
|[[mw:Extension:TreeAndMenu|TreeAndMenu]]
|  | [https://www.gnu.org/licenses/gpl-2.0.html GNU General Public Licence 2.0]&nbsp;or later
+
|Makes bullet lists into folder trees or dynamic drop-down menus.<br /><br />The drop-down menu functionality uses Son of Suckerfish which is 99% CSS, and the tree component is now using the FancyTree jQuery plugin rather than the dTree used in previous version of the TreeAndMenu extension. The new FancyTree has many options and plugins and is very extendable, please view the site and examples for more detail.
|  | pdfbook-desc
+
|4.2.2 (2018-01-31)
| [http://www.organicdesign.co.nz/aran Aran Dunkley]
+
|Used by [[wikiapiary:Extension:TreeAndMenu|at least 137 wikis]]
|-
+
|no
|  | [https://www.mediawiki.org/wiki/Extension:Pipe_Escape Pipe Escape]
+
|no
| | 2.0.0.&nbsp;[https://phabricator.wikimedia.org/r/revision/mediawiki/extensions/PipeEscape;a36d2d6969fa0b86e1ac293b34b6b77f2df26576 (a36d2d6)]23:54, 4 May 2016
+
|
|  | [https://clienttest.dm.dcstemporary.com/Special:Version/License/Pipe_Escape GPL-2.0+]
 
| | Parser function&nbsp;<span style="background-color:#f9f9f9;"><tt><nowiki>#!</nowiki></tt></span>&nbsp;for when you want a pipe character to be just a pipe character
 
|  | David M. Sledge and Purodha Blissenbach
 
|-
 
|  | [http://www.mediawiki.org/wiki/Extension:TreeAndMenu TreeAndMenu]
 
|  | 4.2.1, 2016-05-24
 
|  | [https://www.gnu.org/licenses/gpl-2.0.html GNU General Public Licence 2.0]&nbsp;or later
 
|  | Adds&nbsp;<span style="background-color:#f9f9f9;"><tt><nowiki>#tree</nowiki></tt></span>&nbsp;and&nbsp;<span style="background-color:#f9f9f9;"><tt><nowiki>#menu</nowiki></tt></span>&nbsp;parser functions which contain bullet-lists to be rendered as collapsible treeviews or dropdown menus. The treeviews use the&nbsp;[http://wwwendt.de/tech/fancytree FancyTree]&nbsp;JavaScript tree menu, and the dropdown menus use&nbsp;[http://www.htmldog.com/articles/suckerfish/dropdowns/ Son of Suckerfish]
 
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
 
|-
 
| colspan="5" |
 
|- style="background-color:#f2f2f2;border:0.05pt solid #aaaaaa;padding:0.0194in;"
 
| colspan="5"  align=center| '''Other'''
 
|- style="background-color:#f2f2f2;border:0.05pt solid #aaaaaa;padding:0.0194in;"
 
| align=center| '''Extension'''
 
| align=center| '''Version'''
 
| align=center| '''License'''
 
| align=center| '''Description'''
 
| align=center| '''Authors'''
 
|-
 
|  | [http://www.mediawiki.org/wiki/Extension:AjaxComments AjaxComments]
 
|  | 2.7.2, 2017-03-08
 
|  | [https://www.gnu.org/licenses/gpl-2.0.html GNU General Public Licence 2.0]&nbsp;or later
 
|  | Add comments to the end of the page that can be edited, deleted or replied to instead of using the talk pages
 
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
 
|-
 
|  | [https://www.mediawiki.org/wiki/Extension:CirrusSearch CirrusSearch]
 
|  | 0.2&nbsp;[https://phabricator.wikimedia.org/r/revision/mediawiki/extensions/CirrusSearch;dcb0cf934a76a326aee728166e517fd1b74422e2 (dcb0cf9)]21:22, 4 May 2016
 
|  | [https://clienttest.dm.dcstemporary.com/Special:Version/License/CirrusSearch GPL-2.0+]
 
|  | Elasticsearch-powered search for MediaWiki
 
|  | Nik Everett, Chad Horohoe, Erik Bernhardson and&nbsp;[https://clienttest.dm.dcstemporary.com/Special:Version/Credits/CirrusSearch others]
 
|-
 
|  | [http://www.debtcompliance.com/ DcsAmmendments]
 
|  | 1.1.0, 2018-01-20
 
|  | [http://www.debtcompliance.com/ Copyright © 2015-2018 Debt Compliance Services]
 
|  | Adds ammendments section to DCS loan pages
 
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
 
|-
 
|  | [http://www.debtcompliance.com/ DcsBaskets]
 
|  | 1.4.2, 2016-08-08
 
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
 
|  | Allows fields in Baskets table to be updated via AJAX
 
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
 
|-
 
|  | [http://www.debtcompliance.com/ DcsCommon]
 
|  | 5.1.1, 2018-01-25
 
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
 
|  | DCS common functionality
 
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
 
|-
 
|  | [http://www.debtcompliance.com/ DcsEmailLink]
 
|  | 0.0.1, 2017-07-12
 
|  | [http://www.debtcompliance.com/ Copyright © 2017-2018 Debt Compliance Services]
 
|  | Adds a new "EmailLink" action which can match a title case-insensitvely
 
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
 
|-
 
|  | [http://www.debtcompliance.com/ DcsExportTerms]
 
|  | 2.0.1, 2017-03-20
 
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
 
|  | Add an export action to the that allows terms to be downloaded in CSV format
 
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
 
|-
 
|  | [http://www.debtcompliance.com/ DcsFindTitle]
 
|  | 1.1.0, 2017-01-30
 
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
 
|  | Adds a new "find" action which can match a title case-insensitvely
 
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
 
|-
 
|  | [http://www.debtcompliance.com/ DcsLoanPages]
 
|  | 2.5.2, 2016-05-17
 
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
 
|  | Adds breadcrumbs, comments and backlinks to DCS loan pages
 
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
 
|-
 
|  | [http://www.debtcompliance.com/ DcsNamespaces]
 
|  | 2.5.0, 2015-12-12
 
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
 
|  | A special page for administering loan documents in their own namepsaces
 
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
 
|-
 
|  | [http://www.debtcompliance.com/ DcsNuke]
 
|  | 1.2.2, 2017-01-19
 
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
 
|  | Gives administrators the ability to mass delete pages
 
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
 
|-
 
|  | [http://www.debtcompliance.com/ DcsSection2]
 
|  | 2.0.0, 2018-01-12
 
| | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
 
|  | DCS article section handling extension - new version 2 with individual sub-section article support removed
 
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
 
|-
 
|  | [http://www.debtcompliance.com/ DcsSingleSignOn]
 
|  | 5.1.5, 2017-07-14
 
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
 
| Allows the Rails application to manage the login, logout and session expiry for the DCS wikis
 
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
 
|-
 
|  | [http://www.debtcompliance.com/ DcsTitle]
 
|  | 1.0.0, 2017-02-13
 
|  | [http://www.debtcompliance.com/ Copyright © 2017-2018 Debt Compliance Services]
 
|  | Creates a new DCS-specific Title class that includes TOC info such as sortkey, next and prev
 
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
 
|-
 
|  | [http://www.debtcompliance.com/ DcsUserDisable]
 
|  | 1.3.0, 2015-06-26
 
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
 
|  | Adds acount enable/disable links to the user list
 
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
 
|-
 
|  | [http://www.debtcompliance.com/ DcsWatchComments]
 
|  | 1.4, 2017-03-09
 
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
 
|  | Removes default watchlist functionality and makes all loan comment articles auto-watched
 
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
 
|-
 
|  | [https://www.mediawiki.org/wiki/Extension:Elastica Elastica]
 
|  | 1.3.0.0&nbsp;[https://phabricator.wikimedia.org/r/revision/mediawiki/extensions/Elastica;4607acf9efef0ad5cc236352ada9afe2f1dfdc2b (4607acf)]22:52, 4 May 2016
 
|  | [https://clienttest.dm.dcstemporary.com/Special:Version/License/Elastica GPL-2.0+]
 
|  | Base&nbsp;[http://www.elasticsearch.org/ Elasticsearch]&nbsp;functionality for other extensions by providing&nbsp;[http://elastica.io/ Elastica]&nbsp;library
 
| | Nik Everett and Chad Horohoe
 
|-
 
| | [https://www.mediawiki.org/wiki/Extension:WikiEditor WikiEditor]
 
|  | 0.5.0
 
|  | [https://clienttest.dm.dcstemporary.com/Special:Version/License/WikiEditor GPL-2.0+]
 
|  | Provides an extendable wikitext editing interface and many feature-providing modules
 
|  | Derk-Jan Hartman, Trevor Parscal, Roan Kattouw, Nimish Gautam and Adam Miller
 
 
|-
 
|-
 
|}
 
|}
 +
== Double Check ==
 +
You can visit the "[https://clienttest.dm.dcstemporary.com/Special:Version Special:Version]" page of the wiki.  This page shows you exactly what extensions and versions of software are installed and activated on your wiki.
 +
  
 
== References ==
 
== References ==

Latest revision as of 11:19, 20 June 2018

This page serves to inventory and assess the mix of extensions that are in use for the DCS wiki:

Regular
Code for "regular" extensions are hosted on Gerrit at the WMF (which is also mirrored to GitHub) with documentation at https://www.mediawiki.org/wiki. Regular is in quotes because all extensions modify the behavior and capabilities of MediaWiki. Those that are used by the WMF in their projects or are distributed in the official download should be considered stable, tested, and maintained. Over time, some extensions become part of MediaWiki core; and rarely core features are extracted into extensions.
DCS Custom
Code for the DCS extensions is in the private Debt Compliance GitHub repo
Organic Design
Organic Design extensions are in the 'MediaWiki' tree of the Organic Design GitHub repo. Just because it's an OD extension doesn't mean it's not used by the wider MediaWiki community. We try to note usage below.


The ultimate goal is two-fold: not only understand 'What does it do?', but also understand related questions like:

  • "How critical is it? (Used all the time / occasionally, but still essential / never)"
  • "Does it need work? (known bugs or missing functionality)"
  • "Can or should this extension be replaced (with a more widely supported "regular" extension) to improve maintainability, features, security and lower cost?

Of course some features or functions are not really "user-centric" but might provide security or other features important to stakeholders like "Owner" or "Developer". For example: The DcsSkin provides a look and feel that is consistent with the company brand and makes the user experience more seamless while navigating between Website / Rails App / Wiki.

I've put information about "Source lines of code" into a sub-article.

# Extension What does it do? (explain functionality by role: regular-user, talk-editor, client-admin, or sysop) Maintenance / Last release Used by WMF Used by Meza Used by QualityBox Example / Notes / Alternatives?
1 CirrusSearch Extends the core search for MediaWiki to be able to use Elasticsearch. Elasticsearch provides a much better search capability to all users of the wiki. In particular, it allows DCS to index documents (file uploads). Continuous Yes Yes Yes CirrusSearch (Elasticsearch) is vital to the ability to index uploaded files
2 Elastica Base Elasticsearch functionality by providing the Elastica library; required by CirrusSearch. Continuous Yes Yes Yes Required as part of Search
3 Nuke The Nuke extension makes it possible for sysops to mass delete pages. Continuous Bundled No Yes For whatever reason, the DCSNuke extension intercepts page requests for the Nuke special page. DCSNuke has no added functionality. The DCSNuke code is roughly equivalent to the REL1_20 release of Nuke; and the current Nuke extension offers more functionality. I thought that potentially the reason to use a cloned extension was to totally customize the interface language strings, but that's not the case[1]. Remove DCSNuke.

DcsNuke is not just a clone, as described in the Github wiki Extensions page: it adds a new field for supplying a title pattern to select the deletion candidates by. Other criteria could be added later such as restricting to category.

The custom DcsNuke extension does not provide features different from the regular Nuke extension. The regular Nuke extension shall be included for DCS.

4 ParserFunctions Enhances the wikitext parser with helpful functions, mostly related to logic and string-handling. Continuous maintenance Bundled Yes Yes At the bottom of the Special:Version page, you'll see a list of "Parser Function Hooks" that includes the following custom parser functions defined by DCS extensions: amendments, companycomments, compliancechecklist, loans, loansinuse, section. Many of the others are provided by the Parser Functions extension: if, ifeq, switch, ifexist, ifexpr, iferror, time, timel, expr, rel2abs, titleparts, len, pos, rpos, sub, count, replace, explode
5 PipeEscape The Pipe Escape extension allows for pipe characters in parser function arguments (and template argument calls) avoid being interpreted as an argument delimiter. This is primarily for the purpose of using wiki tables (or parts thereof) inside parser function calls or templates. Old but stable Bundled Yes Yes Included via DcsSetup
6 SimpleMathJax The SimpleMathJax extension enables MathJax, a Javascript library, for typesetting TeX formula in MediaWiki inside math environments. This extension will load resources from cdnjs.cloudflare.com on all wiki pages that have math or chem tags. Regular maintenance No, WMF uses the Math extension Yes Yes included by DcsSetup.php
7 WikiEditor The WikiEditor extension provides an improved interface for editing wikitext. It is the wikitext editing interface that Wikipedia started using in 2010 for desktop users, and so it is sometimes called the "2010 wikitext editor". 0.5.1 (2016-04-15) some oversight by WMF Bundled Yes Yes
8 DcsAmmendments Adds ammendments section to DCS loan pages. Sysop (only) can add/delete/edit/re-order (up/down) the ammendments; UX implemented in JavaScript. Extends the API with the same functions. Adds new log type: amendments; and logs all actions. Jan 2018 - new sort functionality ready for testing no no no https://clienttest.dm.dcstemporary.com/ARCA14:1.5_Time_References
9 DcsBaskets This extension allows the utilization column of the Baskets tables to be edited directly using AJAX and saving values into 'basket' tables rather than in the traditional wiki-text revision tables. 1.4.3, 2018-05-25 no no no "Baskets" can be found in the hierarchy list of the leftnav under the 'Compliance' folder. The page name, by convention, is 'Baskets' e.g. https://clienttest.dm.dcstemporary.com/Baskets This is really neat, and very advanced. However, now that Visual Editor is available, I'd suspect that the user experience of editing large tables in Visual Editor would be much better. Replace Baskets with Visual Editor

We've tested the Visual Editor and found it to be to "clunky" for practical use, that was a year or so back, but based on my own experience I think it would still be considered that way if it was tested again now

10 DcsCommon Cookie handling was added on June 14, 2017. The code (the cookie.js part) is from a project called js-cookie. So, we could update that code. Or, we could replace it with internal functions so we don't rely on 3rd party code. See the API documentation for mw.cookie (Does not use the $wgCookieSecure configuration variable since 'detect' could not work with

ResourceLoaderStartUpModule; as module cache is not fragmented by protocol.) The mw.cookie (JavaScript) code is syntactically and functionally similar to the server-side cookie API (`WebRequest#getCookie` and `WebResponse#setcookie`).

https://www.mediawiki.org/wiki/Manual:Hooks/UserSetCookies is deprecated as of REL1_27, and session-handling extensions should be subclassing CookieSessionProvider. $wgSessionProviders

The class creates methods for outputting messages, notices, dates, getting raw content.

It loads some javascript (through resource loader). That javascript could more easily be maintained as MediaWiki:Common.js? although there may be load order issues. The JS defines like-named methods with varying features. E.g.

Check if the passed page title string is in a loan namespace, returns boolean. Note that this function only checks if the namespace is in the list of all loan namespaces, it doesn't do any checks for whether the namespace is in use, or whether the title is in a DCS_TOC article like the DcsCommon::isLoanPage PHP function.

The series of extensions create DcsInit() (in DcsEmailLink), DcsBlockPageAccess(), and DcsReady() hook functions. DcsReady() implementations are different across different classes from Basket to DcsSingleSignOn.

The 'common' extension creates a singleton instance of the DcsCommon class that does a bunch of things according to notes in the wiki. The permissions shouldn't really be hidden away in the class code. They should simply be in LocalSettings.php. onUserGetRights() is a big function. The 'self:cache' is mostly called in connection with 'isLocal'. Any true caching should just be offloaded to APC and memcache. Although there is no 'dcs' table in the database on dcsTemporary, the setData() method is used throughout the codebase so should update wiki about where this data is stored.

set/getData is for storing arbitrary DCS data in the dcs db table. Agreed that this extension needs cleaning up.

recent no no no pervasive
11 DcsComplianceChecklist Provides a dropdown list of loans and responsibility terms by which the table can be filtered on the Checklist page (by convention). The parser function creates the page contents and form controls. recent (2017 - 2018) no no no e.g. https://clienttest.dm.dcstemporary.com/Checklist
12 DcsComplianceChecklist2 purpose? release? no no no only used in the checktest subdomain, or when `wgLocalTesting`; intention is to use a timestamp condition.

This is in progress, the requirements of the checklist are simpler now and version 2 is just about stripping out a bunch of obsolete functionality.

13 DcsEmailLink Allows you to send a link to a page in the wiki. Activated by the "Email Link" item in the primary navigation across the top of the page. Similar to the "Email Page" extension by Aran, which is also used. 11 months ago no no no visit any page
14 DcsExportTerms Allows terms to be downloaded in Comma Separated Value (CSV) format. CSV is easily imported to a spreadsheet. recent no no no Visit https://clienttest.dm.dcstemporary.com/Category:Terms and you will see a "Export Terms" action in the primary navigation across the top of the page.
15 DcsFindTitle helps to find a title regardless of case-sensitivity of the system. recent no no no integrates with the API, however I'm unsure where it's visible/usable to the user. I believe it's used from the Ruby side to create links that will match a wiki page even if there is a case mismatch. If you wish to navigate to https://clienttest.dm.dcstemporary.com/ARCA14:TOC but request https://clienttest.dm.dcstemporary.com/arca14:toc instead, you'll get a 404 Not Found error. If you request https://clienttest.dm.dcstemporary.com/arca14:toc?action=findtitle then you will be redirected to the proper article.

This uses ApiBeforeMain and APIAfterExecute hooks to modify the API query prop=info to make it case-insensitive.

16 DcsGroupAdmin Leverages the DcsBlockPageAccess hook to allow/disallow access to files and namespaces. recent no no no https://clienttest.dm.dcstemporary.com/Special:DcsGroupAdmin/equality
17 DcsJobAdmin See Background info on Background jobs. Creates a Special Page Special:DcsJobAdmin where you can start a new job; or view current and historical jobs. Each job type loads it's own form into the Admin page. The job runner extends the Maintenance class, and loops over running jobs to provide some progress reporting. It saves the most recent 10 jobs to a 'history' list.

There are functions in the code for:

  • Return a list of the currently running jobs sorted by start time.
  • Add a job to the 'history' list of jobs executed (list is limited to 10 items).
  • Get a 'history' list of the last 10 jobs
  • Get job data (both current and history)
  • shell_exec() to the process table to find DcsJobRunner. Return the currently running jobs by Process ID (PID)
  • register the PHP code classes for each job type:
    • Change Namespace
    • EditTest
    • Import
    • ImportXML
    • Links
    • PhpTest
    • ReplaceText
    • UpgradeAttachments

Each (or almost all?) PHP file is backed by a perl file which was the basis for the PHP development. Everything is written twice because it all started back when the best framework for handling MediaWiki jobs was a perl bot framework. Things have changed significantly over the recent past for MediaWiki's job queue.

According to the documentation, it allows you to manage jobs. But, I'm wondering how much this is actually used? The job queue should be run automatically by cron, and the administrative user shouldn't have to worry about it really. If there is a usage pattern where job execution is time sensitive, there is a use for an Admin function; but I'm curious about the usage patterns that create large or numerous jobs. Otherwise, set wgJobRunRate to zero, and put it into cron `0 0 * * * root /usr/bin/php /var/www/example.com/www/w/maintenance/runJobs.php > /var/log/runJobs.log 2>&1`

These jobs aren't just the standard MW maintenance jobs, they're DCS-specific jobs that need to run in the background as they often need to do intensive manipulation of thousands of articles. The special page is the interface to these jobs allowing parameters to be set for them and stopping/starting/cancelling/pausing them etc, as well as getting feedback on their progress or errors etc.

2018-05-25 no no no
18 DcsLoanPages creates "backlinks" which are links to content that contain a particular keyword or phrase found in a loan document. It also creates the "< Prev" and "Next >" navigation links (called 'breadcrumbs' in the code, but actually these are 'pager' links not breadcrumbs). recent no no no If you go to a page like https://clienttest.dm.dcstemporary.com/ARCA14:Agreement You will see a large section of content called 'Index to ARCA14 pages containing "Agreement"" So, in other words, it's a list of links to pages of the ARCA14 loan that have the word "Agreement" in them. These links are created by the extension.

They wanted the backlinks at the bottom of the page not in a separate special page

19 DcsNamespaces Manages the segregation of loan documents into their own separate namespaces. Also provides some functionality around moving/deleting/renaming namespaces via the https://clienttest.dm.dcstemporary.com/Special:DcsNamespaces special page. recent no no no e.g. https://clienttest.dm.dcstemporary.com/Special:DcsNamespaces
20 DcsNuke purpose? release? no no no REPLACE with standard Nuke extension

See notes in Nuke above, this is not a replica of Nuke

21 DcsSearch Extends the Elasticsearch backend with additional business logic, and new features and UX (saving search "favorites" and indexing link paths traversed in connection with a search query). See https://github.com/debtcompliance/mediawiki/wiki/Search-&-sorting a year ago no no no e.g. See the "heart" symbol next to the search box which implements the "favorites" feature.
22 DcsSection Allows for loan documents to be imported into the wiki as multiple articles. Creates a 'section reference' capability. in progress (v2) no no no
23 DcsSection2 purpose? release? no no no Unused - at least not on the development machine which is a clone of production.

There is a lot of obsolete and patched functionality in this extension, a version 2 was about to be started to strip all this out

24 DcsSingleSignOn Create a master/slave relationship with the Ruby on Rails application as the authentication and group mangement source; with the MediaWiki application synchronizing user information into it's local database. 2017 major update no no no For testing, you can access /wiki/extensions/dcs/DcsSingleSignOn/testLogin.php
25 DcsSkin Custom 'style' to match DCS website / frontend QAR app 3.0.2, 2016-07-01 no no no Skin by Aran Dunkley
26 DcsTitle Extends the regular MediaWiki title object class. Creates a custom cache of the TOC. recent no no no yes
27 DcsUploadedFiles Creates a special page listing all the files uploaded to loan documents orderd by loan namepsace then by article a year ago no no no https://clienttest.dm.dcstemporary.com/Special:DcsUploadedFiles
28 DcsUserDisable Adds 'enable/disable' links to the User list a year ago no no no https://clienttest.dm.dcstemporary.com/Special:ListUsers Why not use the Special:Block functionality built into core?I believe it's every bit as accessible through the API and thus could be used from QAR.
29 DcsWatchComments Adds subscription to talk pages. release? no no no When I view my normal MediaWiki 'WatchList', I don't see any loan talk pages added. I only see my user page.

This functionality doesn't apply to the MW watchlist, it's on the Company Comments page

30 AjaxComments
31 EmailPage Adds a special page that allows you to send the rendered HTML contents of a wiki page to a recipient (or list). Dependant on PHPMailer (5.2.23) 2.4.4 (2017-04-26) Used by at least 38 wikis no no Activated by the "Email" item in the primary navigation across the top of the page.
32 ExtraMagic Adds extra Magic Words and Parser functions.
33 jQueryUpload v1.4.5, 2016-08-28 no no
34 PdfBook The PdfBook extension composes a book from articles in a category, bullet list, or DPL query; and exports as a PDF file. Depends on HTMLDoc 1.5.1 (2017-05-14) Used by at least 154 wikis no no
35 TreeAndMenu Makes bullet lists into folder trees or dynamic drop-down menus.

The drop-down menu functionality uses Son of Suckerfish which is 99% CSS, and the tree component is now using the FancyTree jQuery plugin rather than the dTree used in previous version of the TreeAndMenu extension. The new FancyTree has many options and plugins and is very extendable, please view the site and examples for more detail.
4.2.2 (2018-01-31) Used by at least 137 wikis no no

Double Check[edit | edit source]

You can visit the "Special:Version" page of the wiki. This page shows you exactly what extensions and versions of software are installed and activated on your wiki.


References[edit | edit source]