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

--- Comment #1 from Jon <[email protected]> ---
Quoting discussions from those patches:

FOR (Jon)
It's mostly a matter of code hygiene from my perspective and consistency with
the rest of ResourceLoader.
ResourceLoader modules consistent of name value pairs.
The names tend to always be plural and the values tend to accept array or
strings with the exceptions of position and class.
Thus it is strange to me that schemas do not follow this pattern when there is
no reason they cannot.
I think the fact we can currently only have one schema per module is dangerous.
In mobile we currently have various active schemas but no central module they
are contained. I believe that by grouping all schemas in one module it becomes
clearer what schemas are currently active and encourages revisiting whether
they should still be active. When writing this patch for example I realised we
still have a schema active that measures watch star usage and as far as I know
nothing is currently happening with that data and makes me wonder if it should
be removed.
Although minimal and less of a concern every module added increases the size of
the MediaWiki startup module. As more teams create schemas this will balloon
and this is in my eyes unnecessary.

AGAINST (Ori):
I don't think the comparison to the ability to specify multiple CSS or JS files
in a single module declaration is apt. A module represents a discrete, logical
unit, not a bundle.  A collection of schemas is not a logical unit. "The set of
schemas we happen to be currently using" describes a group, not a unified
whole.
I agree that the current syntax for declaring schema modules is inelegant and
repetitive, but I don't think this is the right way to resolve it.
EventLogging falls outside the scope of my current role. The current method for
registering schemas as modules is stable and familiar. I am inclined to avoid
tampering with it until someone comes along and makes this work their primary
focus.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to