From 7ef9f7faa22bfcd7d70750c834ab515bfc18b250 Mon Sep 17 00:00:00 2001 From: Rich Evans <86021670+ndc-rkevans@users.noreply.github.com> Date: Mon, 8 Jan 2024 10:17:56 -0500 Subject: [PATCH 1/4] Update MezaCoreExtensions.yml disabled Semantic Drilldown until we know where to get a 35.x compatible version from --- config/MezaCoreExtensions.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/MezaCoreExtensions.yml b/config/MezaCoreExtensions.yml index 473f46e6..26fa0d84 100644 --- a/config/MezaCoreExtensions.yml +++ b/config/MezaCoreExtensions.yml @@ -299,11 +299,11 @@ list: # version: "{{ mediawiki_default_branch }}" # legacy_load: true - # SemanticDrilldown - Provides a page for "drilling down" through a site's data, using categories and filters on semantic properties - - name: SemanticDrilldown - repo: https://github.com/SemanticMediaWiki/SemanticDrilldown.git - version: master - legacy_load: true +# # SemanticDrilldown - Provides a page for "drilling down" through a site's data, using categories and filters on semantic properties +# - name: SemanticDrilldown +# repo: https://github.com/SemanticMediaWiki/SemanticDrilldown.git +# version: master +# legacy_load: true # Arrays - Creates an additional set of parser functions that operate on arrays. - name: Arrays From 98cb096631998ebfc58075dac0e502129d384245 Mon Sep 17 00:00:00 2001 From: Rich Evans <86021670+ndc-rkevans@users.noreply.github.com> Date: Mon, 8 Jan 2024 15:09:51 -0500 Subject: [PATCH 2/4] remove broken extensions in MezaCoreExtensions.yml disable UniversalLanguageSelector and SimpleMathJax Add them back later when they are known to work --- config/MezaCoreExtensions.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/config/MezaCoreExtensions.yml b/config/MezaCoreExtensions.yml index 26fa0d84..413d7123 100644 --- a/config/MezaCoreExtensions.yml +++ b/config/MezaCoreExtensions.yml @@ -224,12 +224,12 @@ list: repo: https://github.com/wikimedia/mediawiki-extensions-YouTube.git version: "{{ mediawiki_default_branch }}" - # ULS - Allows users to select a language and configure its support in an easy way. - - name: UniversalLanguageSelector - repo: https://github.com/wikimedia/mediawiki-extensions-UniversalLanguageSelector - version: "{{ mediawiki_default_branch }}" - config: | - $wgULSIMEEnabled = false; +# # ULS - Allows users to select a language and configure its support in an easy way. +# - name: UniversalLanguageSelector +# repo: https://github.com/wikimedia/mediawiki-extensions-UniversalLanguageSelector +# version: "{{ mediawiki_default_branch }}" +# config: | +# $wgULSIMEEnabled = false; # VE - Allows for editing pages as rich content - name: VisualEditor @@ -507,11 +507,11 @@ list: # ----------------------------------------------------------------------------------------------------- # ----------------------------------------------------------------------------------------------------- - # SimpleMathJax - Enables MathJax, a JavaScript library, for typesetting TeX formula in MediaWiki inside math environments - - name: SimpleMathJax - repo: https://github.com/jamesmontalvo3/SimpleMathJax.git - version: e94afaffcdde8d926b166fdd166162f9519beaa1 - legacy_load: True +# # SimpleMathJax - Enables MathJax, a JavaScript library, for typesetting TeX formula in MediaWiki inside math environments +# - name: SimpleMathJax +# repo: https://github.com/jamesmontalvo3/SimpleMathJax.git +# version: e94afaffcdde8d926b166fdd166162f9519beaa1 +# legacy_load: True # TalkRight - Adds the 'talk' right making a permission for editing talk pages distinct from the editing of articles - name: TalkRight From 7bc22b7bd8b5bf15715c78a865112d82c49416f6 Mon Sep 17 00:00:00 2001 From: Rich Evans <86021670+ndc-rkevans@users.noreply.github.com> Date: Thu, 8 Feb 2024 13:49:22 -0500 Subject: [PATCH 3/4] Update MezaCoreExtensions.yml removed portions of VE configuration that are no longer needed. --- config/MezaCoreExtensions.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/config/MezaCoreExtensions.yml b/config/MezaCoreExtensions.yml index 413d7123..fbf0575d 100644 --- a/config/MezaCoreExtensions.yml +++ b/config/MezaCoreExtensions.yml @@ -247,11 +247,6 @@ list: "Help" => true, "_merge_strategy" => "array_plus" ]; - $wgVirtualRestConfig['modules']['parsoid'] = array( - 'url' => "http://127.0.0.1:8080/$wikiId/rest.php", - ); - // Because we're manually setting the Virtual Rest Config above, need to load Parsoid manually - wfLoadExtension( 'Parsoid', '{{ m_mediawiki }}/vendor/wikimedia/parsoid/extension.json' ); # TemplateData - Adds a templatedata tag and an API which together allow editors to specify how templates should be invoked - name: TemplateData From 6f8d9f2eca3203a4e73985ca3a91ff204dc4a46e Mon Sep 17 00:00:00 2001 From: Rich Evans <86021670+ndc-rkevans@users.noreply.github.com> Date: Thu, 8 Feb 2024 15:54:09 -0500 Subject: [PATCH 4/4] Check if widgets compiled templates directory exists and if so change owner to apache The Widgets extension has a folder named complied_templates that apache must own in order for the widgets to execute in mediawiki pages --- src/roles/mediawiki/tasks/main.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/roles/mediawiki/tasks/main.yml b/src/roles/mediawiki/tasks/main.yml index f05b2d03..854d47c2 100644 --- a/src/roles/mediawiki/tasks/main.yml +++ b/src/roles/mediawiki/tasks/main.yml @@ -305,6 +305,19 @@ - local-skins - latest +- name: Check if the compiled_templates directory exists per the widgets extension + stat: + path: "{{ m_mediawiki }}/extensions/Widgets/compiled_templates/" + register: mw_ext_widgets_compiled_templates_folder + +- name: "Ensure compiled templates folder for widget extension is ownwed by apache" + file: + path: "{{ m_mediawiki }}/extensions/Widgets/compiled_templates/" + owner: apache + group: apache + mode: "0755" + when: mw_ext_widgets_compiled_templates_folder.stat.exists + # # LocalSettings.php #