Page MenuHomePhabricator

Extract Hatnotes as a structured array
Closed, ResolvedPublic

Description

We should pull out hatnotes in an array identifying what section they belong to.
We should leave a marker in the content so we know where the hatnotes were removed from.

This should be almost identical to how we handle references.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 28 2017, 8:45 PM
Jdlrobson added a subscriber: Jdlrobson.EditedJul 28 2017, 9:03 PM

We have code that does this already in MCS in the experimental 'formatted' endpoint

e.g. http://0.0.0.0:6927/en.wikipedia.org/v1/page/formatted/Military order (society)

We should leave a marker in the content so we know where the hatnotes were removed from.

Any reason for this requirement? Why do we need that information?

Change 409173 had a related patch set uploaded (by Mholloway; owner: Mholloway):
[mediawiki/services/mobileapps@master] Metadata: Add hatnotes

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

Change 409173 merged by jenkins-bot:
[mediawiki/services/mobileapps@master] Metadata: Add hatnotes

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

Mholloway closed this task as Resolved.Feb 12 2018, 11:20 PM

Change 410545 had a related patch set uploaded (by Mholloway; owner: Mholloway):
[mediawiki/services/mobileapps@master] Handle hatnotes and issues in any section

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

Change 410545 merged by jenkins-bot:
[mediawiki/services/mobileapps@master] Handle hatnotes and issues in any section

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

Change 413053 had a related patch set uploaded (by Mholloway; owner: Mholloway):
[mediawiki/services/mobileapps@master] Metadata: remove 'text' property from hatnotes and page issues

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

Change 413053 merged by jenkins-bot:
[mediawiki/services/mobileapps@master] Metadata: remove 'text' property from hatnotes and page issues

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