Page MenuHomePhabricator

Deploy user feedback gadget
Closed, ResolvedPublic


Few steps that might be needed to make this happen:

  • Work with a wiki administrator to create, manage and deploy gadget
  • Register Schema:UserFeedback on production wiki
  • Get quick design feedback
  • Ensure there aren't any privacy concerns associated with collecting data
  • Learn how to fetch data from production logs (this might work)

Event Timeline

srishakatux created this task.

Is this "on" or where will deployment(s) take place?

I think that wikitech would be the easier wiki to pilot it on. The "community" to work with there is pretty much... me and @Quiddity and a small number of others who may notice. I think we will want it on as well, but that conversation feels like it will be easier with a working deployment and data to show to folks.

Steps that we might need to deploy the Gadget on Wikitech:

"EventLoggingSchemas": {

"CentralAuth": 18716449 #Schema ID from


We deployed these changes on Wikitech:

Still to be done is registering a concrete version of the UserFeedback schema in EventLogging's EventLoggingSchemas settings on Wikitech. This should probably be done in the WikimediaEvents extension lacking a better place for it. Until this is done the js code will not actually send the votes to EventLogging. (sidenote: it would be nice to have something in the gadget spec that actually takes care of this rather than requiring a PHP code deployment.)

During initial testing we discovered that the current system for tracking prior votes is flawed. It is currently setting a single globally scoped cookie. This should be changed to either scope the cookie by full path to the page that the vote relates to or append some page identifier to the cookie name.

Change 492422 had a related patch set uploaded (by SrishtiSethi; owner: srish):
[mediawiki/extensions/WikimediaEvents@master] Register UserFeedback schema

Update > Now appending page ID to the cookie key which prevents overriding votes collected on one page with another. I've updated new changes to the JS file: and tested with them on Test wiki.

@bd808 As per our conversation, I've modified Schema:UserFeedback; it now has the page_name property, updated the patch with new revision id in extension.json and made necessary changes to MediaWiki:Gadget-userfeedback.js on Test wiki.

Change 492422 merged by jenkins-bot:
[mediawiki/extensions/WikimediaEvents@master] Register UserFeedback schema

Instructions to fetch eventlogging data are in:

Using the instructions listed in the Sandbox, here is what we've got from the data so far:


srishakatux updated the task description. (Show Details)