Page MenuHomePhabricator

[SF] 2.4; Add new parser function #queryformlink
Closed, ResolvedPublic

Description

Patch add's a new parser #querylink

This patch add's a new parser #querylink that allows the generate RunQuery Special page links using the same parameter notions as in #formlink.

Instead of generating links via [1] using #querylink [2] creates the same result and additionally allows to run the query as popup without leaving the current page content.

[1] [{{fullurl:Special:RunQuery/DMS|wpRunQuery=true&Query/DMS%5Blimit%5D=15}} Browse DMS]


Version: unspecified
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=33426

Attached:

Details

Reference
bz34309

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:18 AM
bzimport set Reference to bz34309.

Thanks for this, MWJames! I'm marking this as a duplicate for a previous enhancement request, and I'm linking to your patch on it too.

  • This bug has been marked as a duplicate of bug 33425 ***
Unknown Object (User) added a comment.Feb 10 2012, 12:51 AM

Even though this patch is related to the #formlink parser bug 33425 discussion, this bug was created with the intention to apply a patch for SF 2.4+ which adds new functionality and is therefore a tracking instrument rather than to discuss functionality.

One's the patch has been reviewed and is released it can be closed but not before that.

I don't quite understand, but I think you're talking about some sort of personal principle you have. Either way, I'm fine leaving this open since it is slightly different from bug 33425. Once again, thanks for putting that together.

Unknown Object (User) added a comment.Feb 20 2012, 5:20 PM

r111872 includes proposed changes to the new parser function #queryformlink

Unknown Object (User) added a comment.Feb 20 2012, 5:26 PM

see also r111940 which disables additional queries in case of popup

  • Bug 33425 has been marked as a duplicate of this bug. ***

There is something funny going on there. When running runJobs.php I get a warning:
"" is not a valid magic word for "queryformlink"

Not sure where it comes from.

Unknown Object (User) added a comment.Feb 23 2012, 1:22 PM

I think nikerabbit tried to solve this with r112191.

Indeed, that fixes it. Closing again.