Page MenuHomePhabricator

Return {{SERVERNAME}} to GDI Safety Survey question now that it is supported in mw.message
Closed, ResolvedPublic

Assigned To
Authored By
jsn.sherman
Mar 14 2022, 7:42 PM
Referenced Files
F35008816: image.png
Mar 16 2022, 4:21 PM
F35008818: image.png
Mar 16 2022, 4:21 PM
F35008906: image.png
Mar 16 2022, 4:21 PM
F35008821: image.png
Mar 16 2022, 4:21 PM
F35008904: image.png
Mar 16 2022, 4:21 PM
F35008455: Screen Shot 2022-03-16 at 10.11.10.png
Mar 16 2022, 9:16 AM
F35007512: image.png
Mar 15 2022, 9:40 PM
F35007499: image.png
Mar 15 2022, 9:40 PM

Description

As of MW 1.38+, mw.messages now supports the {{SERVERNAME}} magic word.
https://www.mediawiki.org/wiki/Manual:Messages_API#Feature_support_in_JavaScript
It was always our intention to include that magic word in the question, in order to improve clarity about the scope of the question.
We need to add it back in before we roll out the survey to other projects.

Event Timeline

Restricted Application added a subscriber: Aklapper. ยท View Herald TranscriptMar 14 2022, 7:42 PM

Change 770578 had a related patch set uploaded (by Jsn.sherman; author: Jsn.sherman):

[mediawiki/extensions/WikimediaMessages@master] Update question for the GDI safety internal survey

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

Change 770578 merged by jenkins-bot:

[mediawiki/extensions/WikimediaMessages@master] Update question for the GDI safety internal survey

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

@mepps... I am not for sure why you moved this to QA... There is no way for me to verify this fix from a QA standpoint... And also according to https://gerrit.wikimedia.org/r/c/mediawiki/extensions/WikimediaMessages/+/770578/ its showing a status that the Post-merge build failed.

https://integration.wikimedia.org/ci/job/mwext-phpunit-coverage-docker-publish/54400/console : FAILURE in 1m 15s

So I am moving this ticket back to Review status.

Hey @Djackson-ctr, I just wanted to speak to the post-merge build status in particular: that's a CICD foible of this repository that happens on every merge; it's not indicative of a problem and doesn't block deployment.

@jsn.sherman thank you for explaining that status... Thats good for me to know for future reference, so going forward anytime I see that status with our tickets I will ignore it... Thanks again for the explanation.

@mepps and @Djackson-ctr I created a bit of a problem here, as I was trying to slip a change in under the wire, with the intention of making it quick and easy. I really wasn't thinking about how qa could work when I did that. I think the safety survey is now undeployed from beta, so we can't really qa it there as things stand.

@mepps, there a few paths forward that I can see:

  • we could skip qa on this change, since the only change is the addition of the magic word, which I verified with the current production version of mediawiki running locally. Obviously that does leave us exposed to some risk, because many a dev has uttered "it worked on my machine" with their dying breath
  • In my absence, Susana could stand up a demo for it, and we could qa against that
  • We could let it sit until I get back, and I could learn how to set up one of those demos or add the safety survey back in to fa beta.
  • If we deploy the new survey configs to beta, this would be a straightforward check to add on to those

Change 770997 had a related patch set uploaded (by Mepps; author: Mepps):

[mediawiki/extensions/WikimediaMessages@master] Update internal trust and safety survey question for testing

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

Change 770997 merged by jenkins-bot:

[mediawiki/extensions/WikimediaMessages@master] Update internal trust and safety survey question for testing

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

@mepps, @eigyan, @aminalhazwani, @Scardenasmolinar:

I have discovered 2 defects involving mobile devices in which the X (to exit/close the survey) has been pushed outside the boundary/border of the survey or the X is not displaying on the survey, below are screenshots of the defect...

From my point of view we have never had this type of screen layout issue before now (other than Susana's fix for the padding issue T296482
[Bug] Additional horizontal padding displayed in QuickSurvey on mobile devices
that has already passed QA testing)...

So the obvious question is this defect related to the fix for T296482, OR another obvious question could be that this defect is related to the addition of the servername fix that is causing this issue OR could the issue be caused by the long servername (en.wikipedia.beta.wmflabs.org) OR could the issue be caused by something totally different/unrelated to any of the above that I just mentioned?

In the meantime I am going to push this ticket back to Review/Feedback on our workboard.


When using Samsung FE 20 phone with Android Version 12 (Portrait orientation) / Apple iPhone 13 Pro Max with iOS version 15 (Landscape orientation) the X is pushed outside the boundary/border of the survey:

image.png (831ร—423 px, 127 KB)
image.png (474ร—787 px, 122 KB)


When using an Android version 12 Google API phone emulator (Portrait orientation) the X is not displaying on the survey:

image.png (757ร—439 px, 159 KB)

I don't know if this can be considered related to the this exact ticket (probably not), but what happens from my understanding is that long (non-breaking) text pushes the close button out of the bounding box. This still happens also if I revert the changes that @Scardenasmolinar did for the T296482.

Screen Shot 2022-03-16 at 10.11.10.png (2ร—1 px, 252 KB)

After speaking with the team regarding the defect, it has been decided that a bug will be filed for the issue regarding the X button being pushed outside the boundary/border of the survey...

As for this specific ticket (T303769) since no other issues were found that effected the functionality or behavior of the survey, then this ticket will be pushed to Product Sign Off.


Below are some screenshots of new code change(s):
(NOTE: please disregard blurriness of screenshots, this is due to device simulation and is not related to the code changes):

image.png (898ร—1 px, 185 KB)

image.png (910ร—1 px, 285 KB)

image.png (902ร—1 px, 276 KB)

image.png (848ร—619 px, 162 KB)

image.png (666ร—793 px, 179 KB)