Page MenuHomePhabricator

Central Code Repository for code used on wikis (Templates, Lua modules, Gadgets)
Closed, DuplicatePublic


There's long been discussion about us setting up a dedicated service (a la commons) that could serve as a centralized repository for code used on the wikis. This is broadly construed to include:

  • Templates
  • Lua modules
  • Gadgets

Some of the proposed benefits to doing this would be:

  • Deduplication of effort
  • Easier to peer review

Scary transclusion was an attempt at this, but really is scary and not usable in its current form.

Related Objects

Declined Reguyla

Event Timeline

demon created this task.Nov 11 2014, 1:27 AM
demon updated the task description. (Show Details)
demon raised the priority of this task from to Needs Triage.
demon added a project: MediaWiki-Core-Team.
demon moved this task to Backlog on the MediaWiki-Core-Team board.
demon changed Security from none to None.
Legoktm updated the task description. (Show Details)Dec 2 2014, 11:41 PM
fbstj awarded a token.Dec 18 2014, 1:22 PM
Aklapper renamed this task from Central Code Repository to Central Code Repository for code used on wikis (Templates, Lua modules, Gadgets).Jan 27 2015, 9:19 PM
Aklapper triaged this task as Low priority.
Pasleim added a subscriber: Pasleim.Mar 2 2015, 5:02 PM
Qgil added a subscriber: Qgil.Mar 25 2015, 4:41 PM

Adding Developer-Advocacy because the lack of this feature has an impact in the way the communities of templates / modules / gadgets are (des)organized, duplicating plenty of work, and handling a lot of code that has a newer version somewhere.

Qgil added a comment.EditedJun 28 2015, 10:19 PM

Is Reading-Infrastructure-Team-Backlog considering to have this task as a quarterly goal? If not, how can we help pushing it to higher priority in our backlogs?

Qgil awarded a token.Jun 28 2015, 10:20 PM
Ltrlg added a subscriber: Ltrlg.Jul 26 2015, 4:30 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 26 2015, 4:30 PM
Elitre added a subscriber: Elitre.Oct 13 2015, 2:59 PM

"Central Code Repository" sounds like git, and then why not use gerrit/diffusion for review? Then, the gadget, template, Lua module page could transclude a particular revision from the repository, e.g.
{{#git include: |ProveIt_Wikipedia.js |mediawiki/gadgets/proveit-js |wmf/group1}}
(file, project, branch). At that point T91626: Technology to transclude git content into wiki pages might be relevant.

The alternative mentioned in the Global scripts RFC is a shadow namespace using ForeignFileRepos. I don't know how hard it would be to support http access to a git repo as a ForeignAPIRepo.

"Central Code Repository" sounds like git, and then why not use gerrit/diffusion for review?

Techniclly that is correct but note the social aspect here - people who know how to edit wiki pages might not all be keen on learning a system like git... Potential participation/contribution barriers, so to say.

Qgil added a comment.Oct 13 2015, 10:45 PM

Qgil moved this task to Proposed: July - September 2016 on the Developer-Relations workboard.

This would mean that a team includes this goal in their annual plan FY2016-17. I still wonder to which team would this goal belong, though.

greg added a subscriber: greg.Nov 11 2015, 4:03 PM
Ankry added a subscriber: Ankry.Nov 29 2015, 12:11 AM
555 added a subscriber: 555.Nov 29 2015, 9:15 PM
He7d3r added a subscriber: He7d3r.
Rical added a subscriber: Rical.Dec 15 2015, 7:23 PM
-jem- added a subscriber: -jem-.Dec 15 2015, 8:59 PM
Legoktm changed the status of subtask T91162: RFC: Shadow namespaces from Stalled to Open.Apr 20 2016, 10:35 PM
Rical removed a subscriber: Rical.Mar 20 2018, 10:51 AM