Skip to content

Commit

Permalink
PageAssessments: add WikiProject (NSID 102) as a supported namespace
Browse files Browse the repository at this point in the history
Bug: T360774
  • Loading branch information
MusikAnimal committed Mar 27, 2024
1 parent 440971a commit a374b19
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/Model/PageAssessments.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,23 @@
*/
class PageAssessments extends Model
{
/** Namespaces in which there may be page assessments. */
public const SUPPORTED_NAMESPACES = [0, 4, 6, 10, 12, 14, 100, 108, 118];
/**
* Namespaces in which there may be page assessments.
* @var int[]
* @todo Always JOIN on page_assessments and only display the data if it exists.
*/
public const SUPPORTED_NAMESPACES = [
// Core namespaces
...[0, 4, 6, 10, 12, 14],
// Custom namespaces
...[
100, // Portal
102, // WikiProject (T360774)
108, // Book
118, // Draft
828, // Module
],
];

/** @var array|null The assessments config. */
protected ?array $config;
Expand Down

0 comments on commit a374b19

Please sign in to comment.