https://bugzilla.wikimedia.org/show_bug.cgi?id=30970

       Web browser: ---
             Bug #: 30970
           Summary: ExtensionDistributor should export revision/hash
                    information
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Unprioritized
         Component: ExtensionDistributor
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


ExtensionDistributor should check out a special hidden file for very extension
package that includes information from our repository (say call it .info):

For subversion it may be:
- Branch
- Revision (the important item)

For git it may be:
- Checkin ID (a hash)

This is following bawolff's suggestion on IRC and the discussion happening over
at
https://bugzilla.wikimedia.org/show_bug.cgi?id=30955
about this.

I'm not familiar with the systems, but one suggestion for how to go about it
would be to make ExtensionDistributor check in a default .info file to the
project (ensuring it has the right and latest format) then checking out the
extension for packaging. It would have to ensure the special auto-prop is set.

http://dev.juokaz.com/php/automatic-svn-revision-number-in-source-code

I don't see a need for the file to be .php, we can just as easily parse it,
however maybe .info.php would mean we could just include() it.

In the short term this would provide an audit trail for administrators on what
they installed (especially for extensions with no or inconsistent versioning).

In the longer term I am working on a ExtensionUpdate Special page which could
use these files, in combination with some new API calls (will file separate
reports for those) and report to administrators which extensions (or mediawiki
core!) need updating.

One day we might even get to installing them from the web ala wordpress.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to