[Wikitech-l] Update Gadgets extension on WMF wikis

2011-06-07 Thread Ildefons Stułbia
Hi all,

I would like to ask for deployment of new version of Gadgets
extension. It would be great to get rid of MediaWiki:Common.js by
splitting it into separate gadgets, enabled for everyone by default.
Any registered user will be able to disable functionality he/she does
not like. What is more, it will simplify loading additional
dependencies - now it is done by importScript etc. and allow to take
advantage of Resource Loader.


Regards,
Ildefons Stułbia

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] Update Gadgets extension on WMF wikis

2011-06-07 Thread Roan Kattouw
2011/6/7 Ildefons Stułbia :
> Hi all,
>
> I would like to ask for deployment of new version of Gadgets
> extension. It would be great to get rid of MediaWiki:Common.js by
> splitting it into separate gadgets, enabled for everyone by default.
> Any registered user will be able to disable functionality he/she does
> not like. What is more, it will simplify loading additional
> dependencies - now it is done by importScript etc. and allow to take
> advantage of Resource Loader.
>
As far as I know, some version of Gadgets with ResourceLoader support
is already live, although more recent fixes may not be included. Max
or Krinkle can probably shed more light on this.

Roan Kattouw (Catrope)

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] Update Gadgets extension on WMF wikis

2011-06-07 Thread Max Semenik
On 07.06.2011, 17:52 Roan wrote:

> 2011/6/7 Ildefons Stułbia :
>> Hi all,
>>
>> I would like to ask for deployment of new version of Gadgets
>> extension. It would be great to get rid of MediaWiki:Common.js by
>> splitting it into separate gadgets, enabled for everyone by default.
>> Any registered user will be able to disable functionality he/she does
>> not like. What is more, it will simplify loading additional
>> dependencies - now it is done by importScript etc. and allow to take
>> advantage of Resource Loader.
>>
> As far as I know, some version of Gadgets with ResourceLoader support
> is already live, although more recent fixes may not be included. Max
> or Krinkle can probably shed more light on this.

Restrictions by permission, gadgets by default and API module aren't
deployed yet. There is some unreviewed stuff at [1], I believe that
trunk is sane enough for deployment once someone reviewed it.

[1] 
http://www.mediawiki.org/w/index.php?title=Special:Code/MediaWiki&path=%2Ftrunk%2Fextensions%2FGadgets

-- 
Best regards,
  Max Semenik ([[User:MaxSem]])


___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] Update Gadgets extension on WMF wikis

2011-06-07 Thread Chad
2011/6/7 Ildefons Stułbia :
> I would like to ask for deployment of new version of Gadgets
> extension. It would be great to get rid of MediaWiki:Common.js by
> splitting it into separate gadgets, enabled for everyone by default.
>

Well I'm not sure getting rid of Common.js is a good idea. But moving
optional features to Gadgets isn't a bad idea.

-Chad

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Update Gadgets extension on WMF wikis

2011-06-07 Thread Leo Koppelkamm
There's usually some code (general utility fn's, some legacy remappings etc.) 
in common.js that could break a lot of stuff if missing. +1 on moving optional 
stuff to gadgets

Leo
On Tuesday, June 7, 2011 at 6:23 PM, Chad wrote: 
> 2011/6/7 Ildefons Stułbia :
> > I would like to ask for deployment of new version of Gadgets
> > extension. It would be great to get rid of MediaWiki:Common.js by
> > splitting it into separate gadgets, enabled for everyone by default.
> 
> Well I'm not sure getting rid of Common.js is a good idea. But moving
> optional features to Gadgets isn't a bad idea.
> 
> -Chad
> 
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> 
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Update Gadgets extension on WMF wikis

2011-06-07 Thread Thomas Morton
Default gadgets would solve an issue I am facing at the moment :)

So +1 to deployment of updates.

Tom

On 7 June 2011 22:25, Leo Koppelkamm  wrote:

> There's usually some code (general utility fn's, some legacy remappings
> etc.) in common.js that could break a lot of stuff if missing. +1 on moving
> optional stuff to gadgets
>
> Leo
> On Tuesday, June 7, 2011 at 6:23 PM, Chad wrote:
> > 2011/6/7 Ildefons Stułbia :
> > > I would like to ask for deployment of new version of Gadgets
> > > extension. It would be great to get rid of MediaWiki:Common.js by
> > > splitting it into separate gadgets, enabled for everyone by default.
> >
> > Well I'm not sure getting rid of Common.js is a good idea. But moving
> > optional features to Gadgets isn't a bad idea.
> >
> > -Chad
> >
> > ___
> > Wikitech-l mailing list
> > Wikitech-l@lists.wikimedia.org
> > https://lists.wikimedia.org/mailman/listinfo/wikitech-l
> >
> ___
> Wikitech-l mailing list
> Wikitech-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Update Gadgets extension on WMF wikis

2011-06-08 Thread Ildefons Stułbia
2011/6/7 Leo Koppelkamm :
> There's usually some code (general utility fn's, some legacy remappings etc.) 
> in common.js that could break a lot of stuff if missing. +1 on moving 
> optional stuff to gadgets

It depends on project. General utility functions should be available
as modules, which can be loaded when there is such need (as a
dependency to a gadget or by user/script explicitly). It makes easier
to port gadget to other projects and maintain them, when its
dependencies are well defined, so all changes can be easily tracked.
Separate modules can be directly imported, which is impossible with
overbloated MediaWiki:Common.js.

Regards,
Ildefons Stułbia

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Update Gadgets extension on WMF wikis

2011-06-08 Thread Strainu
2011/6/8 Ildefons Stułbia :
> 2011/6/7 Leo Koppelkamm :
>> There's usually some code (general utility fn's, some legacy remappings 
>> etc.) in common.js that could break a lot of stuff if missing. +1 on moving 
>> optional stuff to gadgets
>
> It depends on project. General utility functions should be available
> as modules, which can be loaded when there is such need (as a
> dependency to a gadget or by user/script explicitly). It makes easier
> to port gadget to other projects and maintain them, when its
> dependencies are well defined, so all changes can be easily tracked.
> Separate modules can be directly imported, which is impossible with
> overbloated MediaWiki:Common.js.
>

Yes, it does depend on the project, but I'm pretty sure that in most
projects there are some chunks of js in Common.js that simply should
not be disabled.

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Update Gadgets extension on WMF wikis

2011-06-08 Thread Ildefons Stułbia
2011/6/8 Strainu :
> Yes, it does depend on the project, but I'm pretty sure that in most
> projects there are some chunks of js in Common.js that simply should
> not be disabled.

In my opinion any custom ui feature should be optional, because it
will never satisfy all users. It will also simplify developing and
testing new versions of a gadget, by giving users an ability to turn
off old version and turn on the new one. User having trouble with
interfering scripts will be able to find out which ones by selectively
disabling gadgets. Getting rid of MediaWiki:Common.js may not be
feasible for all projects, in the end it is all up to sysops how much
freedom they are willing to grant to contributors and viewers.


Regards,
Ildefons Stułbia

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l