Page MenuHomePhabricator

Deploy Safety Survey to EN, ES, FR, & PT wikis after March 21st - Beta
Closed, ResolvedPublic

Assigned To
Authored By
TAndic
Mar 16 2022, 2:30 PM
Referenced Files
F35022830: image.png
Mar 25 2022, 12:45 AM
F35022829: image.png
Mar 25 2022, 12:45 AM
F35022795: image.png
Mar 25 2022, 12:27 AM
F35022772: image.png
Mar 25 2022, 12:27 AM
F35022782: image.png
Mar 25 2022, 12:27 AM
F35022793: image.png
Mar 25 2022, 12:27 AM
F35022786: image.png
Mar 25 2022, 12:27 AM
F35022784: image.png
Mar 25 2022, 12:27 AM

Description

User Story

Deploy the Community Safety Survey to beta on EN, ES, FR, and PT wikis in preparation for T303736

Technical information

EN.WIKI

'enwiki' =>[
	// T303736
	'name' => 'internal-gdi-safety-survey',
	'type' => 'internal',
	'layout' => 'single-answer',
	'question' => 'ext-quicksurveys-internal-gdi-safety-survey-question',
	'privacyPolicy' => 'ext-quicksurveys-internal-gdi-safety-survey-privacy-policy',
	'answers' => [
		'ext-quicksurveys-internal-gdi-safety-survey-answer-positive',
		'ext-quicksurveys-internal-gdi-safety-survey-answer-negative',
		'ext-quicksurveys-internal-gdi-safety-survey-answer-neutral',
	],
	'audience' => [
		// T303736
		'minEdits' => 5
	],
	'enabled' => true,
	'coverage' => 0.05, // T303736
	'platforms' => [
		'desktop' => [ 'stable' ],
		'mobile' => [ 'stable', 'beta' ],
	],
],

–
ES.WIKI

'eswiki' =>[
	// T303736
	'name' => 'internal-gdi-safety-survey',
	'type' => 'internal',
	'layout' => 'single-answer',
	'question' => 'ext-quicksurveys-internal-gdi-safety-survey-question',
	'privacyPolicy' => 'ext-quicksurveys-internal-gdi-safety-survey-privacy-policy',
	'answers' => [
		'ext-quicksurveys-internal-gdi-safety-survey-answer-positive',
		'ext-quicksurveys-internal-gdi-safety-survey-answer-negative',
		'ext-quicksurveys-internal-gdi-safety-survey-answer-neutral',
	],
	'audience' => [
		// T303736
		'minEdits' => 5
	],
	'enabled' => true,
	'coverage' => 0.1, // T303736
	'platforms' => [
		'desktop' => [ 'stable' ],
		'mobile' => [ 'stable', 'beta' ],
	],
],

–
FR.WIKI

'frwiki' =>[
	// T303736
	'name' => 'internal-gdi-safety-survey',
	'type' => 'internal',
	'layout' => 'single-answer',
	'question' => 'ext-quicksurveys-internal-gdi-safety-survey-question',
	'privacyPolicy' => 'ext-quicksurveys-internal-gdi-safety-survey-privacy-policy',
	'answers' => [
		'ext-quicksurveys-internal-gdi-safety-survey-answer-positive',
		'ext-quicksurveys-internal-gdi-safety-survey-answer-negative',
		'ext-quicksurveys-internal-gdi-safety-survey-answer-neutral',
	],
	'audience' => [
		// T303736
		'minEdits' => 5
	],
	'enabled' => true,
	'coverage' => 0.1, // T303736
	'platforms' => [
		'desktop' => [ 'stable' ],
		'mobile' => [ 'stable', 'beta' ],
	],
],

–
PT.WIKI

'ptwiki' =>[
	// T303736
	'name' => 'internal-gdi-safety-survey',
	'type' => 'internal',
	'layout' => 'single-answer',
	'question' => 'ext-quicksurveys-internal-gdi-safety-survey-question',
	'privacyPolicy' => 'ext-quicksurveys-internal-gdi-safety-survey-privacy-policy',
	'answers' => [
		'ext-quicksurveys-internal-gdi-safety-survey-answer-positive',
		'ext-quicksurveys-internal-gdi-safety-survey-answer-negative',
		'ext-quicksurveys-internal-gdi-safety-survey-answer-neutral',
	],
	'audience' => [
		// T303736
		'minEdits' => 5
	],
	'enabled' => true,
	'coverage' => 0.1, // T303736
	'platforms' => [
		'desktop' => [ 'stable' ],
		'mobile' => [ 'stable', 'beta' ],
	],
],

Confirming coverage
EN: 0.05 (5%)
ES: 0.1 (10%)
FR: 0.1 (10%)
PT: 0.1 (10%)
All wikis should target logged in editors with a minimum of 5 edits.

Confirming Final question wording
β€œIn the last 30 days, have you felt unsafe or uncomfortable contributing to {{SITENAME}} ({{SERVERNAME}})?”

Testing and QA steps

Confirmations before deployment:

  • T303769 - return {{SERVERNAME}} to original en question.
  • @TAndic confirms translations to Spanish, French, and Portuguese are inputted on translatewiki
  • TST confirms translations have been committed and are functional before deployment
  • T303740 - TST to decide whether we can get initiation (impressions) to collect editCountBucket before deploying survey - @eigyan or @TAndic to confirm before deployment

Acceptance Criteria

  • Safety survey is deployed to beta on EN, ES, FR, and PT Wikipedias

Event Timeline

Madalina added a project: WMF-Safety-Survey.

Change 772433 had a related patch set uploaded (by Eigyan; author: Eigyan):

[operations/mediawiki-config@master] [wmf-config]: Deploy Safety Survey to EN, ES, FR, & PT wikis on BETA

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

Change 772433 merged by jenkins-bot:

[operations/mediawiki-config@master] [wmf-config]: Deploy Safety Survey to EN, ES wikis on BETA

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

Just checked the languages on English and Spanish beta. For English beta, I switched my language preferences to French (and switched gender to test whether gender magic word works) and Portuguese (switched between pt and pt-br to check both translations are working).

Note: there are other live quicksurveys on EN, including the testing safety survey; if you see it appear in another translation incorrectly (I think this happened for pt-br), try refreshing to get to the right one.

TLDR: Looking good!

Screenshots:
en. - en:

Screen Shot 2022-03-23 at 2.30.13 PM.png (678Γ—714 px, 83 KB)

en. fr - no gender setting:

Screen Shot 2022-03-23 at 2.19.27 PM.png (768Γ—850 px, 117 KB)

en. fr - gender set "elle":

Screen Shot 2022-03-23 at 2.20.49 PM.png (716Γ—796 px, 99 KB)

en. pt:

Screen Shot 2022-03-23 at 2.22.46 PM.png (716Γ—746 px, 100 KB)

en. pt-brazilian:

Screen Shot 2022-03-23 at 2.27.18 PM.png (724Γ—702 px, 91 KB)

es:

Screen Shot 2022-03-23 at 2.29.41 PM.png (756Γ—756 px, 91 KB)

I was able to confirm the Safety Survey was displaying and functioning at the Beta sites for English and Spanish using the urls that @eigyan provided : (https://es.wikipedia.beta.wmflabs.org/wiki/A_relaxing_cup_of_caf%C3%A9_con_leche?quicksurvey=true), (https://es.wikipedia.beta.wmflabs.org/wiki/Aaptamina?quicksurvey=true), (https://es.wikipedia.beta.wmflabs.org/wiki/Aaptamina?quicksurvey=true&uselang=fr), (https://es.wikipedia.beta.wmflabs.org/wiki/Aaptamina?quicksurvey=true&uselang=pt)

NOTE: Due to Coverage being low, I was not able to get the Safety Survey to display randomly for my editor account, which is why Essex’s specific urls were used to verify the Quick Survey.
NOTE: Wikimedia does not have Beta sites for the French wiki and Portuguese wiki, therefore the {{servername}} code change for those 2 wikis could not be verified.
NOTE: The defects with the Safety Survey X button (ticket T303980 [Bug] X button is displaying outside of the survey boundary/border for small mobile devices) were still occurring while testing was performed for this ticket, but presumably those defects may be resolved when that ticket is completed.

Compatibility Testing was performed on the following:
Desktop – Firefox version 98 Windows 10 & 11 / Chrome version 99 Windows 10 & 11 / Microsoft Edge version 99 Windows 10 & 11 / Safari version 15 Mac OS Monterey / Opera version 84 Windows 10.
Mobile Devices – iOS version 15.2 iPad Pro 5th generation / iOS version 15.2 iPhone 13 Pro Max / Android version 12 Samsung FE20 phone / Android version 8.1 Galaxy A10 tablet.


Below are screenshots of new code changes on various browsers and an iPad tablet:

(NOTE: please disregard blurriness of screenshots, this is due to device simulation and is not related to the code changes):

Screenshots for iPad Pro 5th Generation - iOS version 15.2:

image.png (879Γ—633 px, 385 KB)
image.png (882Γ—659 px, 398 KB)


Screenshots for Chrome version 99 / Windows 10:

image.png (951Γ—1 px, 244 KB)
image.png (582Γ—1 px, 172 KB)


Screenshots for Safari version 15 Mac OS Monterey:

image.png (863Γ—1 px, 409 KB)
image.png (754Γ—1 px, 397 KB)

image.png (899Γ—1 px, 499 KB)
image.png (705Γ—1 px, 386 KB)

image.png (890Γ—1 px, 408 KB)
image.png (737Γ—1 px, 323 KB)