Page MenuHomePhabricator

Add <focus-area> parser function to save focus area data
Closed, ResolvedPublic5 Estimated Story Points

Description

Add a new parser function for storing focus area data in the focus area db tables

<focus-area
| title = "Focus on things"
| shortDescription = "Lorem ipsum…"
| status = draft
></focus-area>

This work does not include deleting or saving translations beyond the base language. There is currently visual representation for a focus area and changes can only be confirmed by examining the database. Page titles will use a similar nomenclature as wishes and will be handled in a different task

Acceptance Criteria

  • When using the tag directly or through a template, a new focus area should be saved.
  • When editing the arguments of the tag, changes should be reflected in their respective fields in the database.
  • Focus area should only be stored if the tag is being used within the allowed prefix. See $wgCommunityRequestsFocusAreaPrefix
  • Status should only be one of those allowed by $wgCommunityRequestsStatuses and default to draft (0) if not found

Event Timeline

Cparle updated the task description. (Show Details)
MusikAnimal renamed this task from Add {{#focus-area}} parser function to save FA data to Add {{#focus-area}} parser function to save focus area data.Mar 11 2025, 3:57 AM
MusikAnimal updated the task description. (Show Details)

Change #1074956 had a related patch set uploaded (by Cparle; author: Samwilson):

[mediawiki/extensions/CommunityRequests@master] Add focus areas saving and displaying

https://gerrit.wikimedia.org/r/1074956

MusikAnimal renamed this task from Add {{#focus-area}} parser function to save focus area data to Add <focus-area> parser function to save focus area data.May 29 2025, 6:09 AM
MusikAnimal updated the task description. (Show Details)

Change #1151796 had a related patch set uploaded (by MusikAnimal; author: Dmaza):

[mediawiki/extensions/CommunityRequests@master] [WIP] Add <focus-area> parser function to save focus area data

https://gerrit.wikimedia.org/r/1151796

dmaza updated the task description. (Show Details)

Change #1151796 had a related patch set uploaded (by MusikAnimal; author: Dmaza):

[mediawiki/extensions/CommunityRequests@master] Add focus area tag and store focus area data into the database

https://gerrit.wikimedia.org/r/1151796

Change #1151796 had a related patch set uploaded (by Dmaza; author: Dmaza):

[mediawiki/extensions/CommunityRequests@master] Add focus area tag and store focus area data into the database

https://gerrit.wikimedia.org/r/1151796

Change #1151796 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] Add focus area tag and store focus area data into the database

https://gerrit.wikimedia.org/r/1151796

Change #1074956 abandoned by Samwilson:

[mediawiki/extensions/CommunityRequests@master] Add focus areas saving and displaying

https://gerrit.wikimedia.org/r/1074956