Last modified: 2014-10-31 21:32:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T74659, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72659 - Call Flow API with DerivativeRequest for server actions
Call Flow API with DerivativeRequest for server actions
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Flow (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-29 03:27 UTC by Matthew Flaschen
Modified: 2014-10-31 21:32 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Matthew Flaschen 2014-10-29 03:27:00 UTC
There is an apiResponse field in View.php.  Some of the contents come from renderApi (shared by the actual API).

However, some are put directly there, which means the data is only available in the template if it's a server rendering.  That in turn means the template output differs.

This is a major problem (the architecture is built on the assumption that individual templates behave exactly the same on client and server), and causes bugs like bug 72655.
Comment 1 Matthew Flaschen 2014-10-29 03:28:14 UTC
One approach to solve this is to have View call the actual API with a DerivativeRequest, and pass the API output directly to the template.

However, there are other approaches that still solve this problem.
Comment 2 Matthew Flaschen 2014-10-31 21:32:00 UTC
(In reply to Matthew Flaschen from comment #1)
> One approach to solve this is to have View call the actual API with a
> DerivativeRequest, and pass the API output directly to the template.

We're going to try this approach.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links