Page MenuHomePhabricator

Git integration for gadgets and user scripts
Closed, DuplicatePublic

Description

Problem

It's overly complicated to test and release user scripts and gadgets if you want to develop something more complicated. If you use any build scripts you have to push changes manually.

Who would benefit

Gadgets and user scripts developers.

Proposed solution

Allow hosting git/svn for scripts or integrate with Github (or similar service).

User script could then be a proxy to a certain file in the repository. For example I create a wiki page User:Nux/script.dev.js and write something like:

#PROXY [https://raw.githubusercontent.com/Eccenux/some.repo/master/script.js]

A release version is setup by an administrator by creating a Gadget pointing to something like:

#PROXY [https://raw.githubusercontent.com/Eccenux/some.repo/release/script.js]

Proxy would be used to both avoid cross-domain issues and cache scripts. Users would be able to use action=purge to download a fresh copy.

If git would be hosted on Wikimedia servers then you could add a nice auto-purge mechanism that would trigger purge when changes are pushed to the server.

Event Timeline

Nux created this task.Feb 5 2017, 9:58 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 5 2017, 9:58 AM
Tgr added a subscriber: Tgr.Feb 5 2017, 10:21 AM

The entry submission period for the developer wishlist ended on January 31. In any case, this is more or less contained in T71445: Implement a sane code-review process for MediaWiki JS/CSS pages on Wikimedia sites which is on the wishlist.