Page MenuHomePhabricator

add title and/or pageid to action=parse output
Closed, ResolvedPublic

Description

Please add the pageid and/or the title to the parse output.

Thanks.


Version: unspecified
Severity: enhancement

Details

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:16 PM
bzimport set Reference to bz25134.
bzimport added a subscriber: Unknown Object (MLST).

Maybe all attributs like prop=info? The module cannot used as generator, so this can save a second query.

At least pageid/ns/title/revid/redirect. Thanks.

Bryan.TongMinh wrote:

(In reply to comment #1)

Maybe all attributs like prop=info? The module cannot used as generator, so
this can save a second query.

I think it should be able to be used as generator.

You can't use an action= module as a generator, that's impossible by design.

It sounds like parse should really be an action=query submodule rather than a separate module. Worth thinking about, I guess.

Bryan.TongMinh wrote:

(In reply to comment #3)

You can't use an action= module as a generator, that's impossible by design.

It sounds like parse should really be an action=query submodule rather than a
separate module. Worth thinking about, I guess.

Or allow ApiQuery to operate on the ApiParse result. That would require several work on the query modules though.

njh wrote:

I would really appreciate being able to get the data returned by action=query&prop=info.

It isn't currently possible to get the last modified/touched date from a action=parse (even through screen scraping) and it seems wasteful to do a second request to get it.

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

Would it be a good idea to make parse into an action=query module? It could break a lot of things.

Current status here is that we already have 'title', and adding 'pageid' wouldn't be terribly difficult.

Making a parse query module is an interesting idea, but has some things to consider. Presumably it would be a list module, with the ability to say which of the various page lists should be output in generator mode? Is that really a major advantage over an action=parse call then using pageids or titles, especially when continuation of any of the prop modules would mean a re-parse?

prop=revisions already allows to parse from an action=query, there is no need for a new parse module

action=parse is just needed, when parsing your own wikitext. To parse already existing version(s) it is easier to use prop=revisions, but action=parse also allow this with pageid or oldid. prop=revisions also allows to combine multiple web requests to action=query into one.

Ah, OK. Was just reading through the older comments and wasn't sure if the old suggestions were still relevant, thanks.

Change 227764 had a related patch set uploaded (by Sn1per):
Add pageid to API parse output

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

Change 227764 merged by jenkins-bot:
Add pageid to API parse output

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

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy