Page MenuHomePhabricator

Fix response processing logic in drafttopic.fetch_page_wikiprojects
Closed, ResolvedPublic

Description

Currently, while processing page info, the code use the following logic to populate fields:

rev_doc_map[pageid] = \
                            {'talk_page_id': pageid,
                             'rev_id': page_doc['lastrevid'], 'templates': [],
                             'talk_page_title': page_doc['title']}

This logic is buggy and leads to exception if 'lastrevid' or 'title' is not present in response.