HomePhabricator

fetch_page_wikiprojects: Fix page processing logic

Description

fetch_page_wikiprojects: Fix page processing logic

If 'lastrevid' or 'title' is not returned in response, the response
processing logic errors out.
Fix this by initializing 'lastrevid' with -1 and 'title' with a blank
string and only populating them after checking their presence in
response
Modified test case to catch this error

Details

Provenance
SumitAuthored on Nov 28 2017, 4:15 PM
Parents
rDRAFTTOPIC37e30f3c404d: Merge pull request #12 from wiki-ai/wpmappings
Branches
Unknown
Tags
Unknown
ChangeId
None