Page MenuHomePhabricator

SchemaPopupsSamplingRate config variable is badly named
Closed, ResolvedPublic

Description

Thanks to @Krenair we avoided having no event logging during an A/B test.

We confusingly have a global config variable called wgSchemaPopupsSamplingRate that is passed to a mediawiki config variable called
'wgPopupsSchemaPopupsSamplingRate'

This can lead to confusion like seen today in https://gerrit.wikimedia.org/r/310483
We should probably rename the global config variable to wgPopupsSchemaSamplingRate and rename the mw.config value.

Event Timeline

Jdlrobson added a project: good first task.

For the benefit of someone who would want to make this change, what would the process of renaming a global variable like that be, without breaking existing behavior?

jhobs changed the task status from Open to Stalled.Dec 7 2016, 6:29 PM
jhobs subscribed.

Hi there @McIntireEvan, thanks for your interest in helping improve our codebase! Unfortunately, this task should have been marked "Stalled" a few weeks ago when we started working on a major rewrite of the Hovercards code, so I'm not sure there's much to be done here. There are, however, a few other tasks of similar complexity you could help us with, if you are so inclined!

If these don't interest you, another great place to look is the good first task project. Thanks!

Thanks for the response! I'll take a look at these for myself and to mentor for GCI :)

@McIntireEvan: Tell us if we should make this a Google-Code-In-2016 task! :)

Edit: Sorry. Just saw T146434#2854844.

ovasileva moved this task from Needs Analysis to Backlog on the Page-Previews board.
ovasileva moved this task from Backlog to Needs Analysis on the Page-Previews board.

Change 332151 had a related patch set uploaded (by Phuedx):
Hygiene: Rename SchemaPopupsSamplingRate

https://gerrit.wikimedia.org/r/332151

Change 332151 merged by jenkins-bot:
Hygiene: Rename SchemaPopupsSamplingRate

https://gerrit.wikimedia.org/r/332151