ProfessionalWiki / ProfessionalWiki/Network

Cannot enable namespaces listed in extension.json as excluded

Open Beginner friendly
#21 7 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
33
Forks
10
PR merge metrics
No merged PRs in 30d

Description

extension.json includes:

"PageNetworkExcludedNamespaces": { "value": [ 2, 4, 8, 12 ] },

However, arrays defined in extension.json can only be added to (there isn't much documentation for this, but you can see
https://www.mediawiki.org/wiki/Manual:Extension.json/Schema#Merge_strategies). So, it is not possible to remove those four default namespaces from the exclude list. It would be better to set that to an empty array and allow site admins to add namespaces as needed.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with extension.json and the MediaWiki Extension.json schema merge-strategies documentation linked in the issue. Check how PageNetworkExcludedNamespaces is defined, then set its default value to an empty array so site administrators can add namespaces; verify that the extension configuration still accepts administrator-provided namespaces.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.