Page MenuHomePhabricator

mediawiki_api client.create_page fails on Flow board
Closed, InvalidPublic

Description

With gerrit 151806, the Echo notifications.feature browser tests have a step "another user writes on my talk page" that uses MediawikiApi::Client.create_page.

This silently fails if the user's talk page is a Flow board, which is the default on the Flow team's test servers.

The action=edit API call returns successfully, but if you ask for the content of the page, e.g. Special:Export, you'll see that the revision ID is updated but the text content is an empty array. The moment someone visits the Flow board its content changes back to being {"flow-workflow":"<UUID>"}.

The Flow team needs to figure out what should happen when someone uses the action=edit API on a Flow board. It seems either it should fail, or it could succeed and modify the Flow board's header area.


Version: unspecified
Severity: normal

Details

Reference
bz69321

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:33 AM
bzimport set Reference to bz69321.
bzimport added a subscriber: Unknown Object (MLST).

I am not sure that it is even wise to consider parity between creating or editing a wiki page and creating or editing a Flow entity using the same API calls.

I strongly suspect manipulating aspects of Flow should have an API of its own.

SBisson claimed this task.
SBisson subscribed.

Not relevant anymore with the current state of those tests. The echo tests are being completely re-written.