Page MenuHomePhabricator

Add upstream test for html in announcements fields which don't presently support html (on iOS)
Closed, ResolvedPublic

Description

Screen Shot 2017-05-25 at 5.26.02 PM.png (1×862 px, 192 KB)

This survey T165546 introduced the tags seen above.

I noticed it and @bearND did a hot fix here: https://gerrit.wikimedia.org/r/#/c/355734/

We could:

Note: it was decided we would add test for now.

Event Timeline

Change 355865 had a related patch set uploaded (by Mhurd; owner: Mhurd):
[mediawiki/services/mobileapps@master] Add test for HTML in certain iOS announcement fields

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

@JoeWalsh @AMroczkowski

I added an upstream test for the feed announcement endpoint.

You can see it in the gerrit commit link in the comment above this one. @bearND is reviewing.

Could the iOS app be changed to handle HTML instead of plain text? The Android app seems to handle it fine.

I need to address the feedback on the gerrit ticket - will try to get to this tomorrow.

Hmm I updated the patch to address Michael's feedback, but Jenkins didn't like it - wasn't clear from the console output why... will check Monday.

@bearND

Could the iOS app be changed to handle HTML instead of plain text? The Android app seems to handle it fine.

iOS's UITextFields and UILabels don't handle HTML as efficiently as the Android equivalents do :(

We can add code to translate between HTML and the native attributed strings, but it would be easiest to test for unsupported HTML in the mean time.

@bearND I'm keeping my fingers crossed that they announce some improvements for this at WWDC this week :)

@bearND looks like michael gave it a thumbs-up :)

Change 355865 merged by jenkins-bot:
[mediawiki/services/mobileapps@master] Add test for HTML in certain iOS announcement fields

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

Mhurd renamed this task from Decide how to handle html break tags in announcements to Add upstream test for html in announcements fields which don't presently support html (on iOS).Jun 8 2017, 7:03 PM
Mhurd added a subscriber: JMinor.

@JMinor This got merged upstream today - moved directly to PM signoff since not really QA-testable.

JMinor moved this task from Needs Triage to Tracking on the Wikipedia-iOS-App-Backlog board.