Difference between revisions of "Extension inventory"

From Freephile Wiki
Jump to navigation Jump to search
(start auditing the DCS extensions)
(restore three rows that were accidentally removed)
 
(41 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:
 +
 
 +
; 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 [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.
 +
 
 +
{{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'''.}}
 +
 
 +
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 "[[Extension inventory/sloc|Source lines of code]]" into a sub-article.
  
== "Regular" Extensions ==
 
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 +
!#
 +
!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?
 
|-
 
|-
! Extension
+
|1
! Used by WMF projects?
+
|[[mw:Extension:CirrusSearch|CirrusSearch]]
! What does it do?
+
|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).
! Maintenance / Last release
+
|Continuous
! Used by Meza
+
|Yes
! Used by QualityBox
+
|Yes
! Alternative Extension
+
|Yes
|-
+
|CirrusSearch (Elasticsearch) is vital to the ability to index uploaded files
| [https://www.mediawiki.org/wiki/Extension:CirrusSearch CirrusSearch]  
 
| YES
 
| Extends the core search for MediaWiki to be able to use [https://en.wikipedia.org/wiki/Elasticsearch Elasticsearch]
 
| Continuous
 
| Yes
 
| Yes
 
|
 
|-
 
| [https://www.mediawiki.org/wiki/Extension:Cite Cite]
 
| Bundled
 
| Provides <nowiki><references /> and <ref></ref></nowiki> tags
 
| Continuous
 
| Yes
 
| Yes
 
|
 
|-
 
| [https://www.mediawiki.org/wiki/Extension:CiteThisPage CiteThisPage]  
 
| Bundled
 
| Provides [https://demo.qualitybox.us/wiki/Special:CiteThisPage Cite This Page] Special Page. Distributed by QualityBox (not Meza)
 
| Continuous  
 
| No
 
| Yes
 
| UNUSED
 
|-
 
| [https://www.mediawiki.org/wiki/Extension:ConfirmEdit ConfirmEdit]
 
| Bundled
 
| Adds CAPTCHAs for page saves and other user actions to protect against spam and password-guessing
 
| Continuous
 
| No
 
| Yes
 
| UNUSED
 
 
|-
 
|-
| [https://www.mediawiki.org/wiki/Extension:Elastica Elastica]  
+
|2
| YES
+
|[[mw:Extension:Elastica|Elastica]]
| Base Elasticsearch functionality by providing the Elastica library; required by CirrusSearch.
+
|Base Elasticsearch functionality by providing the Elastica library; required by CirrusSearch.
| Continuous
+
|Continuous
| Yes
+
|Yes
| Yes
+
|Yes
|  
+
|Yes
 +
|Required as part of Search
 
|-
 
|-
| [https://www.mediawiki.org/wiki/Extension:Gadgets Gadgets]
+
|3
| Bundled
+
|[[mw:Extension:Nuke|Nuke]]
| Provides a way for users to pick JavaScript or CSS based "gadgets" that other wiki users provide.
+
|The Nuke extension makes it possible for sysops to [https://demo.qualitybox.us/wiki/Special:Nuke mass delete pages].
| Continuous
+
|Continuous
| No
+
|Bundled
| Yes
+
|No
| UNUSED
+
|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.
| [https://www.mediawiki.org/wiki/Extension:ImageMap ImageMap]
 
| Bundled
 
| The ImageMap extension allows clickable image maps.
 
| Continuous
 
| Yes
 
| Yes
 
| UNUSED
 
|-
 
| [https://www.mediawiki.org/wiki/Extension:InputBox InputBox ]
 
| Bundled
 
| The InputBox extension adds already created HTML forms to wiki pages.
 
| Continuous
 
| Yes
 
| Yes
 
| UNUSED
 
|-
 
| [https://www.mediawiki.org/wiki/Extension:Interwiki Interwiki]
 
| Bundled
 
| 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
 
| Yes
 
| Yes
 
| UNUSED
 
|-
 
| [https://www.mediawiki.org/wiki/Extension:LocalisationUpdate LocalisationUpdate]
 
| Bundled
 
| allows to update the localizations for MediaWiki messages at any time, without needing to upgrade the MediaWiki software.
 
| Continuous
 
| No
 
| No
 
| UNUSED
 
|-
 
| [https://www.mediawiki.org/wiki/Extension:Nuke Nuke]  
 
| Bundled
 
| The Nuke extension makes it possible for sysops to [https://demo.qualitybox.us/wiki/Special:Nuke mass delete pages].
 
| Continuous
 
| No
 
| Yes
 
| For whatever reason, the DCSNuke extension intercepts page requests for the Nuke special page. DCSNuke has no added 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.
 
|-
 
| ParserFunctions
 
| Bundled?
 
| What does it do?
 
| Maintenance / Last release
 
| Meza?
 
| QB?
 
| UNUSED?
 
|-
 
| PdfHandler
 
| Bundled?
 
| What does it do?
 
| Maintenance / Last release
 
| Meza?
 
| QB?
 
| UNUSED?
 
|-
 
| PipeEscape
 
| Bundled?
 
| What does it do?
 
| Maintenance / Last release
 
| Meza?
 
| QB?
 
| UNUSED?
 
|-
 
| Poem
 
| Bundled?
 
| What does it do?
 
| Maintenance / Last release
 
| Meza?
 
| QB?
 
| UNUSED?
 
|-
 
| Renameuser
 
| Bundled?
 
| What does it do?
 
| Maintenance / Last release
 
| Meza?
 
| QB?
 
| UNUSED?
 
|-
 
| SimpleMathJax
 
| Bundled?
 
| What does it do?
 
| Maintenance / Last release
 
| Meza?
 
| QB?
 
| UNUSED?
 
|-
 
| SpamBlacklist
 
| Bundled?
 
| What does it do?
 
| Maintenance / Last release
 
| Meza?
 
| QB?
 
| UNUSED?
 
|-
 
| SyntaxHighlight_GeSHi
 
| Bundled?
 
| What does it do?
 
| Maintenance / Last release
 
| Meza?
 
| QB?
 
| UNUSED?
 
|-
 
| TitleBlacklist
 
| Bundled?
 
| What does it do?
 
| Maintenance / Last release
 
| Meza?
 
| QB?
 
| UNUSED?
 
|-
 
| WikiEditor
 
| Bundled?
 
| What does it do?
 
| Maintenance / Last release
 
| Meza?
 
| QB?
 
| UNUSED?
 
|-
 
|}
 
  
== Custom DCS Extensions ==
+
'''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.'''
  
{| style="border-spacing:0;"
+
The custom DcsNuke extension does not provide features different from the regular Nuke extension. The regular Nuke extension shall be included for DCS.
|- style="background-color:#f2f2f2;border:0.05pt solid #aaaaaa;padding:0.0194in;"
 
! Extension
 
! Purpose
 
! Last release
 
! Confirm used? + notes
 
 
|-
 
|-
| DcsAmmendments
+
|4
| 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.
+
|[[mw:Extension:ParserFunctions|ParserFunctions]]
| Jan 2018 - new sort functionality ready for testing
+
|Enhances the wikitext parser with helpful functions, mostly related to logic and string-handling.
| yes
+
|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
 
|-
 
|-
| DcsBaskets
+
|5
| purpose?
+
|[[mw:Extension:Pipe_Escape|PipeEscape]]
| release?
+
|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.
| yes
+
|Old but stable
 +
|Bundled
 +
|Yes
 +
|Yes
 +
|Included via DcsSetup
 
|-
 
|-
| DcsCommon
+
|6
| purpose?
+
|[[mw:Extension:SimpleMathJax|SimpleMathJax]]
| release?
+
|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.
| yes
+
|Regular maintenance
 +
|No, WMF uses the Math extension
 +
|Yes
 +
|Yes
 +
|included by DcsSetup.php
 
|-
 
|-
| DcsComplianceChecklist
+
|7
| purpose?
+
|[[mw:Extension:WikiEditor|WikiEditor]]
| release?
+
|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".
| yes
+
|0.5.1 (2016-04-15) some oversight by WMF
 +
|Bundled
 +
|Yes
 +
|Yes
 +
|
 
|-
 
|-
| DcsComplianceChecklist2
+
|8
| purpose?
+
|[https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsamendments DcsAmmendments]
| release?
+
|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.
| only used in the '''checktest''' subdomain, or when `wgLocalTesting`; intention is to use a timestamp condition
+
|Jan 2018 - new sort functionality ready for testing
 +
|no
 +
|no
 +
|no
 +
|https://clienttest.dm.dcstemporary.com/ARCA14:1.5_Time_References
 
|-
 
|-
| DcsEmailLink
+
|9
| purpose?
+
|[https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsbaskets DcsBaskets]
| release?
+
|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.
| yes
+
|1.4.3, 2018-05-25
|-
+
|no
| DcsExportTerms
+
|no
| purpose?
+
|no
| release?
+
|"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'''
| yes
+
 
|-
+
'''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'''
| DcsFindTitle
 
| purpose?
 
| release?
 
| yes
 
|-
 
| DcsGroupAdmin
 
| purpose?
 
| release?
 
| yes
 
|-
 
| DcsJobAdmin
 
| purpose?
 
| release?
 
| yes
 
|-
 
| DcsLoanPages
 
| purpose?
 
| release?
 
| yes
 
|-
 
| DcsNamespaces
 
| purpose?
 
| release?
 
| yes
 
 
|-
 
|-
| DcsNuke
+
|10
| purpose?
+
|[https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcscommon DcsCommon]
| release?
+
|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
| yes. REPLACE with [https://www.mediawiki.org/wiki/Extension:Nuke standard Nuke extension]
+
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]`).
|-
 
| DcsSearch
 
| purpose?
 
| release?
 
| yes
 
|-
 
| DcsSection
 
| purpose?
 
| release?
 
| yes
 
|-
 
| DcsSection2
 
| purpose?
 
| release?
 
| NO
 
|-
 
| DcsSingleSignOn
 
| purpose?
 
| release?
 
| yes
 
|-
 
| DcsSkin
 
| purpose?
 
| release?
 
| usage?
 
|-
 
| DcsTitle
 
| purpose?
 
| release?
 
| yes
 
|-
 
| DcsUploadedFiles
 
| purpose?
 
| release?
 
| yes
 
|-
 
| DcsUserDisable
 
| purpose?
 
| release?
 
| yes
 
|-
 
| DcsWatchComments
 
| purpose?
 
| release?
 
| yes
 
|-
 
|}
 
  
== Organic Design extensions ==
+
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]]
# Accordian
 
# AddLinkClasses
 
# AjaxComments
 
# ArticleProperties
 
# Bliki
 
# CodeTidy
 
# CurrentPages
 
# CurrentUsers
 
# Download
 
# EmailPage
 
# EmailToWiki
 
# EximMailList
 
# ExtraMagic
 
# FaceBook
 
# FileAttach
 
# FormMailer
 
# HighlightJS
 
# InterWiki
 
# jQueryUpload
 
# jQueryUpload2
 
# Ligmincha
 
# LinkAttributes
 
# LinkTree
 
# NukeDPL
 
# ODMaps
 
# OrganicDesign
 
# PdfBook
 
# RecentActivity
 
# SimpleCalendar
 
# TransformChanges
 
# TreeAndMenu
 
# UserLoginLog
 
# UserProfiles
 
# Variables
 
# WebSocket
 
# WikiaAdmin
 
# WikiaInfo
 
  
 +
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>
  
 +
The series of extensions create [https://github.com/debtcompliance/mediawiki/blob/bf8a1096e71d2e997c626b9d6e33b4799ba4a87e/extensions/DcsEmailLink/DcsEmailLink.php#L4 DcsInit()] (in DcsEmailLink), DcsBlockPageAccess(), and DcsReady() hook functions. DcsReady() implementations are different across different classes from Basket to [https://github.com/debtcompliance/mediawiki/blob/93999818fd46c2075638120b12d4f684968daa90/extensions/DcsSingleSignOn/DcsSingleSignOn.php#L42 DcsSingleSignOn].
  
 +
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.
  
== Special:Version ==
+
'''set/getData is for storing arbitrary DCS data in the dcs db table. Agreed that this extension needs cleaning up.'''
This is what you'll see reported by the "[https://clienttest.dm.dcstemporary.com/Special:Version Special:Version]" page of the wiki
+
|recent
 
+
|no
=== Installed skins ===
+
|no
 +
|no
 +
|pervasive
 +
|-
 +
|11
 +
|[https://github.com/debtcompliance/mediawiki/wiki/Compliance-Checklist 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.
  
{| style="border-spacing:0;"
+
'''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.'''
|- style="background-color:#f2f2f2;border:0.05pt solid #aaaaaa;padding:0.0194in;"
 
| 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]
+
|13
| | –
+
|[https://github.com/debtcompliance/mediawiki/tree/master/extensions/DcsEmailLink DcsEmailLink]
|  | [https://clienttest.dm.dcstemporary.com/Special:Version/License/Cologne_Blue GPL-2.0+]
+
|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.
| | A lightweight skin with minimal formatting
+
|11 months ago
| | Lee Daniel Crocker and others
+
|no
 +
|no
 +
|no
 +
|visit any page
 
|-
 
|-
| | [http://www.debtcompliance.com/ DcsSkin]
+
|14
| | 3.0.2, 2016-07-01
+
|[https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsexportterms DcsExportTerms]
| | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
+
|Allows terms to be downloaded in Comma Separated Value (CSV) format. CSV is easily imported to a spreadsheet.
| | DCS skin desgined to match the QAR app
+
|recent
| | [http://www.organicdesign.co.nz/aran Aran Dunkley]
+
|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://www.mediawiki.org/wiki/Skin:Modern Modern]
+
|15
| |
+
|[https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsfindtitle DcsFindTitle]
| [https://clienttest.dm.dcstemporary.com/Special:Version/License/Modern GPL-2.0+]
+
|helps to find a title regardless of case-sensitivity of the system.
|  | A blue/gray theme with sidebar and top bar. Derived from MonoBook
+
|recent
|  | River Tarnell and others
+
|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://www.mediawiki.org/wiki/Skin:MonoBook MonoBook]
+
|16
| |
+
|[https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsgroupadmin DcsGroupAdmin]
| | [https://clienttest.dm.dcstemporary.com/Special:Version/License/MonoBook GPL-2.0+]
+
|Leverages the DcsBlockPageAccess hook to allow/disallow access to files and namespaces.
|  | The classic MediaWiki skin since 2004, named after the black-and-white photo of a book in the page background
+
|recent
|  | Gabriel Wicke and others
+
|no
 +
|no
 +
|no
 +
|https://clienttest.dm.dcstemporary.com/Special:DcsGroupAdmin/equality
 
|-
 
|-
| | [https://www.mediawiki.org/wiki/Skin:Vector Vector]
+
|17
|  | –
+
|[https://github.com/debtcompliance/mediawiki/tree/master/extensions/DcsJobAdmin DcsJobAdmin]
|  | [https://clienttest.dm.dcstemporary.com/Special:Version/License/Vector GPL-2.0+]
+
|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.
|  | Modern version of MonoBook with fresh look and many usability improvements
+
There are functions in the code for:
| | Trevor Parscal, Roan Kattouw and others
 
  
 +
* 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 [[mw:Manual:Job_queue|MediaWiki's job queue]].
|}
 
  
=== Installed extensions ===
+
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`
  
{| style="border-spacing:0;"
+
'''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.'''
|- style="background-color:#f2f2f2;border:0.05pt solid #aaaaaa;padding:0.0194in;"
+
|2018-05-25
| colspan="5"  align=center| '''Special pages'''
+
|no
|- style="background-color:#f2f2f2;border:0.05pt solid #aaaaaa;padding:0.0194in;"
+
|no
| align=center| '''Extension'''
+
|no
| align=center| '''Version'''
+
|
| align=center| '''License'''
 
| align=center| '''Description'''
 
| align=center| '''Authors'''
 
 
|-
 
|-
| | [http://www.debtcompliance.com/ DcsGroupAdmin]
+
|18
| | 1.2.0, 2015-06-26
+
|[https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsloanpages DcsLoanPages]
| | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
+
|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).
| | A special page for managing DCS groups and access
+
|recent
| | [http://www.organicdesign.co.nz/aran Aran Dunkley]
+
|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'''
 
|-
 
|-
| | [http://www.debtcompliance.com/ DcsJobAdmin]
+
|19
| | 4.0.0, 2017-06-28
+
|[https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsnamespaces DcsNamespaces]
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
+
|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.
| | A special page for managing DCS jobs that run in the background
+
|recent
| | [http://www.organicdesign.co.nz/aran Aran Dunkley]
+
|no
 +
|no
 +
|no
 +
|e.g. https://clienttest.dm.dcstemporary.com/Special:DcsNamespaces
 
|-
 
|-
| | [http://www.debtcompliance.com/ DcsSearch]
+
|20
| | 2.4.2, 2017-01-27
+
|DcsNuke
| | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
+
|purpose?
| | 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
+
|release?
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
+
|no
 +
|no
 +
|no
 +
|REPLACE with [[mw:Extension:Nuke|standard Nuke extension]]
 +
 
 +
'''See notes in Nuke above, this is not a replica of Nuke'''
 
|-
 
|-
| | [http://www.debtcompliance.com/ DcsUploadedFiles]
+
|21
|  | 1.3.0, 2017-07-08
+
|DcsSearch
| | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
+
|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 special page for listing the files uploaded to loan pages
+
|a year ago
| | [http://www.organicdesign.co.nz/aran Aran Dunkley]
+
|no
 +
|no
 +
|no
 +
|e.g. See the "heart" symbol next to the search box which implements the "favorites" feature.
 
|-
 
|-
| | [https://www.mediawiki.org/wiki/Extension:EmailPage EmailPage]
+
|22
| 2.4.4, 2017-04-26
+
|[https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcssection DcsSection]
| | [https://clienttest.dm.dcstemporary.com/Special:Version/License/EmailPage GPL-2.0+]
+
|Allows for loan documents to be imported into the wiki as multiple articles. Creates a 'section reference' capability.
| | Send rendered HTML page to an e-mail address or list of addresses using&nbsp;[http://phpmailer.sourceforge.net/ phpmailer]
+
|in progress (v2)
| | [http://www.organicdesign.co.nz/aran Aran Dunkley]
+
|no
 +
|no
 +
|no
 +
|
 
|-
 
|-
| | [http://www.organicdesign.co.nz/jQueryUpload jQueryUpload]
+
|23
| | 1.4.5, 2016-08-28
+
|DcsSection2
| | [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
+
|purpose?
|  | Allows files to be uploaded to the wiki or to specific pages using the jQueryFileUpload module
+
|release?
|  | [http://www.organicdesign.co.nz/aran Aran ][http://www.organicdesign.co.nz/aran Dunkley]&nbsp;and&nbsp;[http://blueimp.net/ Sebastian Tschan]
+
|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'''
 
|-
 
|-
| | [https://www.mediawiki.org/wiki/Extension:Nuke Nuke]
+
|24
|  | 1.2.0
+
|[https://github.com/debtcompliance/mediawiki/wiki/SSO-2017-specification DcsSingleSignOn]
| [https://clienttest.dm.dcstemporary.com/Special:Version/License/Nuke 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.
| | Gives administrators the ability to&nbsp;[https://clienttest.dm.dcstemporary.com/Special:Nuke mass delete]&nbsp;pages
+
|2017 major update
|  | Brion Vibber and Jeroen De Dauw
+
|no
|-
+
|no
| colspan="5" |
+
|no
|- style="background-color:#f2f2f2;border:0.05pt solid #aaaaaa;padding:0.0194in;"
+
|For testing, you can access /wiki/extensions/dcs/DcsSingleSignOn/testLogin.php
| 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]
+
|25
| | 1.24.2, 2016-05-10
+
|[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
| | Creates the #ComplianceChecklist parser-function
+
|3.0.2, 2016-07-01
| | [http://www.organicdesign.co.nz/aran Aran Dunkley]
+
|no
 +
|no
 +
|no
 +
|Skin by Aran Dunkley
 
|-
 
|-
| | [http://www.organicdesign.co.nz/Extension:ExtraMagic.php ExtraMagic]
+
|26
| | 3.8.0, 2015-010-04
+
|[https://github.com/debtcompliance/mediawiki/wiki/The-DcsTitle-class DcsTitle]
| | [https://www.gnu.org/licenses/gpl-2.0.html GNU General Public Licence 2.0]&nbsp;or later
+
|Extends the regular MediaWiki title object class. Creates a custom cache of the TOC.
| | Adds useful variables and parser functions
+
|recent
| | [http://www.organicdesign.co.nz/aran Aran Dunkley]
+
|no
 +
|no
 +
|no
 +
|yes
 
|-
 
|-
| | [https://www.mediawiki.org/wiki/Extension:ParserFunctions ParserFunctions]
+
|27
| | 1.6.0
+
|[https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsuploadedfiles DcsUploadedFiles]
| | [https://clienttest.dm.dcstemporary.com/Special:Version/License/ParserFunctions GPL-2.0]
+
|Creates a special page listing all the files uploaded to loan documents orderd by loan namepsace then by article
|  | Enhance parser with logical functions
+
|a year ago
|  | Tim Starling, Robert Rohde, Ross McClure and Juraj Simlovic
+
|no
 +
|no
 +
|no
 +
|https://clienttest.dm.dcstemporary.com/Special:DcsUploadedFiles
 
|-
 
|-
| | [http://www.mediawiki.org/wiki/Extension:TreeAndMenu PdfBook]
+
|28
| | 1.5.2, 2017-05-15
+
|DcsUserDisable
| | [https://www.gnu.org/licenses/gpl-2.0.html GNU General Public Licence 2.0]&nbsp;or later
+
|Adds 'enable/disable' links to the User list
|  | pdfbook-desc
+
|a year ago
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
+
|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.
 
|-
 
|-
| | [https://www.mediawiki.org/wiki/Extension:Pipe_Escape Pipe Escape]
+
|29
| | 2.0.0.&nbsp;[https://phabricator.wikimedia.org/r/revision/mediawiki/extensions/PipeEscape;a36d2d6969fa0b86e1ac293b34b6b77f2df26576 (a36d2d6)]23:54, 4 May 2016
+
|[https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcswatchcomments DcsWatchComments]
| | [https://clienttest.dm.dcstemporary.com/Special:Version/License/Pipe_Escape GPL-2.0+]
+
|Adds subscription to talk pages.
|  | 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
+
|release?
|  | David M. Sledge and Purodha Blissenbach
+
|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.
 +
 
 +
'''This functionality doesn't apply to the MW watchlist, it's on the Company Comments page'''
 
|-
 
|-
| | [http://www.mediawiki.org/wiki/Extension:TreeAndMenu TreeAndMenu]
+
|30
|  | 4.2.1, 2016-05-24
+
|[https://github.com/OrganicDesign/extensions/tree/master/MediaWiki/AjaxComments AjaxComments]
| [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]
+
|31
| | 2.7.2, 2017-03-08
+
|[[mw:Extension:EmailPage|EmailPage]]
| | [https://www.gnu.org/licenses/gpl-2.0.html GNU 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)
| | Add comments to the end of the page that can be edited, deleted or replied to instead of using the talk pages
+
|2.4.4 (2017-04-26)
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
+
|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:CirrusSearch CirrusSearch]
+
|32
|  | 0.2&nbsp;[https://phabricator.wikimedia.org/r/revision/mediawiki/extensions/CirrusSearch;dcb0cf934a76a326aee728166e517fd1b74422e2 (dcb0cf9)]21:22, 4 May 2016
+
|[https://github.com/OrganicDesign/extensions/blob/master/MediaWiki/ExtraMagic/ExtraMagic_body.php ExtraMagic]
| | [https://clienttest.dm.dcstemporary.com/Special:Version/License/CirrusSearch GPL-2.0+]
+
|Adds extra [[mw:Help:Magic_words|Magic Words]] and Parser functions.
| | 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]
+
|33
| | 1.4.2, 2016-08-08
+
|[https://github.com/OrganicDesign/extensions/tree/master/MediaWiki/jQueryUpload jQueryUpload]
| | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
+
|
| | Allows fields in Baskets table to be updated via AJAX
+
|v1.4.5, 2016-08-28
| | [http://www.organicdesign.co.nz/aran Aran Dunkley]
+
|
 +
|no
 +
|no
 +
|
 
|-
 
|-
| | [http://www.debtcompliance.com/ DcsCommon]
+
|34
| | 5.1.1, 2018-01-25
+
|[[mw:Extension:PdfBook|PdfBook]]
| | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
+
|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]
| | DCS common functionality
+
|1.5.1 (2017-05-14)
| | [http://www.organicdesign.co.nz/aran Aran Dunkley]
+
|Used by [[wikiapiary:Extension:PdfBook|at least 154 wikis]]
 +
|no
 +
|no
 +
|
 
|-
 
|-
| | [http://www.debtcompliance.com/ DcsEmailLink]
+
|35
|  | 0.0.1, 2017-07-12
+
|[[mw:Extension:TreeAndMenu|TreeAndMenu]]
| [http://www.debtcompliance.com/ Copyright © 2017-2018 Debt Compliance Services]
+
|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.
|  | Adds a new "EmailLink" action which can match a title case-insensitvely
+
|4.2.2 (2018-01-31)
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
+
|Used by [[wikiapiary:Extension:TreeAndMenu|at least 137 wikis]]
|-
+
|no
|  | [http://www.debtcompliance.com/ DcsExportTerms]
+
|no
| 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 ==
 
<references />
 
<references />
 +
 +
[[Category:Remove table formatting]]
 +
[[Category:Replace with class wikitable]]

Latest revision as of 12: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]