Last modified: 2014-02-26 12:53:45 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T58071, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56071 - Remove descriptions from declareSchema call to reduce bandwidth usage
Remove descriptions from declareSchema call to reduce bandwidth usage
Status: NEW
Product: Analytics
Classification: Unclassified
EventLogging (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-23 22:43 UTC by Matthew Flaschen
Modified: 2014-02-26 12:53 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Matthew Flaschen 2013-10-23 22:43:50 UTC
There's some interest (e.g. by Jon Robson at https://gerrit.wikimedia.org/r/#/c/91512) in reducing bandwidth usage of EventLogging RL schema modules.  Low-hanging fruit for this is removing the human-readable "description" property from the declareSchema call.
Comment 1 Jon 2013-10-24 17:44:48 UTC
My patch is not so much about bandwidth but more about consistency with the rest of ResourceLoader modules - the majority of keys are plural and allow strings or arrays (e.g. messages, scripts, styles)

I think removing description property might be a slight micro optimisation.

That said is the description used anywhere?
Comment 2 Matthew Flaschen 2013-10-24 18:44:53 UTC
True, you can have multiple script files, etc.  But at the same time, it's encouraged for a module to be a cohesive unit.  But that's another topic.

Anyway, the description is not used anywhere on the client side, unless some developer is looking at it in their JavaScript console.  The descriptions are for the aid of people reading and modifying the Meta (schema wiki) schema pages.  They're documentation.
Comment 3 Andre Klapper 2014-02-26 12:53:45 UTC
[moving from MediaWiki extensions to Analytics product - see bug 61946]

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links