Last modified: 2014-11-17 10:35:45 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 T35260, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33260 - WikiLove posts above LiquidThreads rather than within a thread
WikiLove posts above LiquidThreads rather than within a thread
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikiLove (Other open bugs)
unspecified
All All
: Normal trivial with 1 vote (vote)
: ---
Assigned To: Kunal Mehta (Legoktm)
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-19 21:47 UTC by varnent
Modified: 2014-11-17 10:35 UTC (History)
12 users (show)

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


Attachments

Description varnent 2011-12-19 21:47:02 UTC
Rather than posting a new thread - or perhaps allowing you to post a reply to an existing thread - WikiLove posts above the LT installation on the talk page.  Example:  http://www.mediawiki.org/wiki/User:Kghbln

Not exactly a priority, but if development of LT continues one day - something WikiLove or LT (not sure if this would be better under that extension) will want to address.

Would be handy to address for MW.org and the other sites currently running both LT and WikiLove.
Comment 1 Ryan Kaldari 2011-12-19 22:14:42 UTC
WikiLove just uses the MediaWiki API to post the message (via the appendtext parameter using action=edit). So this is actually an API bug.
Comment 2 Krinkle 2011-12-19 22:20:55 UTC
Hm.. it would be an API bug if it the canonical goal behind appending text to a page is to create a new thread, or even to participate in discussion at all.

However, for one, the header of an LQT-enabled page should be editable as well. And secondly, how can we distinguish from appending something to the last section and appending a new section ?

Instead of appendtext, it should probably use text=...&section=new, like the front-end. That would be closer to something that canonically means wanting to open a new discussion when used on a talk page.

Theoratically a bot could be using text=..&section=new to create a new section in the header of an LQT-enabled page, so we'd have to find a way to do that still.

Perhaps MediaWiki should get an additional parameter (or different action/module alltogether) for participating in discussions and letting extensions override this ? By default it would implement a 'raw wikitext' discussion thread, which is just sections on a talk page.
Comment 3 Ryan Kaldari 2011-12-19 22:40:58 UTC
We can't use section=new since that method doesn't allow us to specify the edit summary.

If someone fixes that, I'll gladly re-implement it.
Comment 4 Ryan Kaldari 2011-12-19 22:53:45 UTC
Actually that's only half true. You can specify an edit summary, but it doesn't respect what you specify. Instead it forces it into a "new section" message. We just need a way to override this.
Comment 5 Ryan Kaldari 2011-12-19 23:06:04 UTC
I'm going to file a new bug explaining that magically morphing the summary from an edit summary into a section title and then auto-generating an edit summary that is different than the summary makes no sense.

I bet you a dollar it will be closed within 24 hours as WONTFIX since it is written into the 10 Commandments "Thou shalt not change the MediaWiki API" :P
Comment 6 Ryan Kaldari 2011-12-19 23:34:53 UTC
Looks like Krinkle beat me to it and filed the bug last year:
https://bugzilla.wikimedia.org/show_bug.cgi?id=26312

I'll mark it as a dependency.

It looks like the essential problem is that action=edit relies on EditPage.php, which for some reason reuses the wpSummary input for both the edit summary and the section title, even though these should be separate inputs.
Comment 7 Ryan Kaldari 2011-12-20 04:26:09 UTC
I've tried to implement a workaround in r106754. I'll leave this open until the rev is approved.
Comment 8 Roan Kattouw 2011-12-20 14:34:12 UTC
(In reply to comment #2)
> Instead of appendtext, it should probably use text=...&section=new, like the
> front-end. That would be closer to something that canonically means wanting to
> open a new discussion when used on a talk page.
> 
I think that LQT actually hijacks section=new for adding a new thread, but I'm not sure.
Comment 9 MZMcBride 2012-05-31 18:05:36 UTC
I believe Werdna was rather adamant about &action=edit&section=new not being equivalent to posting a LiquidThreads thread. He sees the actions as distinct (cf. bug 21256 comment 3).

I thought WikiLove was using the MediaWiki API internally, so I was going to suggest simply checking the target talk page for LiquidThreads and then using the LiquidThreads action instead of &action=edit&section=new, however it looks like WikiLove isn't using the MediaWiki API (for whatever reason).

I glanced at r106754 and it feels very hackish and bad. Particularly these two lines:

$this->sectiontitle = $wgLang->truncate( $request->getText( 'wpSectionTitle' ), 250 );
$this->sectiontitle = preg_replace( '/^\s*=+\s*(.*?)\s*=+\s*$/', '$1', $this->sectiontitle );
Comment 10 Thorncrag 2012-05-31 18:08:16 UTC
Just as a side note, MZMcBride directed me toward this bug, because I found that a side-affect of this bug is that users who receive WikiLove when their user talk page has LQT enabled do not receive a new message notification.
Comment 11 Gerrit Notification Bot 2013-09-09 11:45:44 UTC
Change 83409 had a related patch set uploaded by Legoktm:
Create new LQT thread if possible

https://gerrit.wikimedia.org/r/83409
Comment 12 Kunal Mehta (Legoktm) 2013-09-09 11:47:20 UTC
(In reply to comment #6)
> Looks like Krinkle beat me to it and filed the bug last year:
> https://bugzilla.wikimedia.org/show_bug.cgi?id=26312
> 
> I'll mark it as a dependency.
> 

What does this have to do with LiquidThreads at all? I've removed it as a dependency.
Comment 13 Gerrit Notification Bot 2013-09-10 02:01:53 UTC
Change 83409 merged by jenkins-bot:
Create new LQT thread if possible

https://gerrit.wikimedia.org/r/83409

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


Navigation
Links