Last modified: 2014-08-18 03:06:29 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 T60664, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58664 - Get rid of $wgFlowParsoidTitle / using $wgTitle
Get rid of $wgFlowParsoidTitle / using $wgTitle
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Flow (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-18 19:55 UTC by Kunal Mehta (Legoktm)
Modified: 2014-08-18 03:06 UTC (History)
5 users (show)

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


Attachments

Description Kunal Mehta (Legoktm) 2013-12-18 19:55:55 UTC
From the code itself:

/*
 * $wgFlowParsoidTitle is an ugly hack. As long as posts only appear on 1
 * page, we can just omit $title parameter & fallback to $wgTitle.
 * For API calls, however, $wgTitle will not contain the Title
 * object for the page we're submitting Flow changes. That's where
 * $wgFlowParsoidTitle comes in to play, which will be set from API to
 * container the correct Title object.
 *
 * We should definitely think about a nicer way to pass the correct
 * title to this method, from wherever it is being called from.
 */

Using $wgTitle is already bad, working around the fact the API doesn't set it is blegh.
Comment 1 Bingle 2013-12-18 20:06:23 UTC
The WMF core features team tracks this bug on Mingle card https://mingle.corp.wikimedia.org/projects/flow/cards/637, but people from the community are welcome to contribute here and in Gerrit.
Comment 2 Erik Bernhardson 2013-12-18 20:22:03 UTC
There's currently a patch for this, but it has downsides:

https://gerrit.wikimedia.org/r/#/c/97060/

Basically the patch always loads entire topics, rather than occasionally loading just the topic title and the requested post.  Going in this direction we would most likely want to also flush out a second idea from gwicke: store a topic, all its posts, and all relevant metadata as an xml document.  Then when you want a complete topic you just grab the most recent xml. As you can imagine thats quite a large refactor though, we havn't figured out if we should tackle it or not.
Comment 3 Gerrit Notification Bot 2014-02-24 07:53:10 UTC
Change 115112 had a related patch set uploaded by Matthias Mullie:
Non-hacky way to feed title to Parsoid

https://gerrit.wikimedia.org/r/115112
Comment 4 Gerrit Notification Bot 2014-02-28 12:51:52 UTC
Change 116085 had a related patch set uploaded by Matthias Mullie:
Non-hacky way to feed title to Redlinker

https://gerrit.wikimedia.org/r/116085
Comment 5 Gerrit Notification Bot 2014-03-11 23:05:59 UTC
Change 115112 merged by jenkins-bot:
Non-hacky way to feed title to Parsoid

https://gerrit.wikimedia.org/r/115112
Comment 6 Gerrit Notification Bot 2014-03-20 18:48:14 UTC
Change 116085 abandoned by EBernhardson:
Non-hacky way to feed title to Redlinker

Reason:
alternate implementation was merged

https://gerrit.wikimedia.org/r/116085
Comment 7 Andre Klapper 2014-07-09 08:53:47 UTC
All patches mentioned in this report are either merged or abandoned - is there more work left to do here (if yes: please reset the bug report status to NEW or ASSIGNED), or can you close this ticket as RESOLVED FIXED?
Comment 8 Andre Klapper 2014-08-17 11:07:23 UTC
No reply to comment 7 - assuming this bug is FIXED.
If that is not the case: Please reopen and elaborate what is left to do here to get this report fixed.
Comment 9 Kunal Mehta (Legoktm) 2014-08-18 03:06:29 UTC
Sorry, this looks fixed to me:

km-mpb:Flow km$ ack wgTitle
tests/ContainerTest.php
13:		$this->setMwGlobals( 'wgTitle', \Title::newMainPage() );
km-mpb:Flow km$ ack FlowParsoidTitle

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


Navigation
Links