Last modified: 2014-10-03 14:53:24 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 T73490, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71490 - Parsoid should set the prop parameter when calling API action=expandtemplates
Parsoid should set the prop parameter when calling API action=expandtemplates
Status: RESOLVED FIXED
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Marc Ordinas i Llopis
:
Depends on:
Blocks: 67540 70196
  Show dependency treegraph
 
Reported: 2014-09-30 23:58 UTC by Max Semenik
Modified: 2014-10-03 14:53 UTC (History)
6 users (show)

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


Attachments

Description Max Semenik 2014-09-30 23:58:37 UTC
Currently, all expandtemplates calls result in a warning about deprecated behaviour, see api-feature-usage.log on fluorine.
Comment 1 Gabriel Wicke 2014-10-01 00:15:09 UTC
  prop                - Which pieces of information to get
                         wikitext   - The expanded wikitext
                         categories - Any categories present in the input that are not represented in the wikitext output
                         volatile   - Whether the output is volatile and should not be reused elsewhere within the page
                         ttl        - The maximum time after which caches of the result should be invalidated
                         parsetree  - The XML parse tree of the input
                        Note that if no values are selected, the result will contain the wikitext,
                        but the output will be in a deprecated format.
                        Values (separate with '|'): wikitext, categories, volatile, ttl, parsetree
Comment 2 Gerrit Notification Bot 2014-10-01 11:01:57 UTC
Change 164044 had a related patch set uploaded by Marcoil:
Bug 71490: Set prop 'wikitext' when calling action=expandtemplates

https://gerrit.wikimedia.org/r/164044
Comment 3 Gerrit Notification Bot 2014-10-01 14:03:43 UTC
Change 164044 merged by jenkins-bot:
Bug 71490: Set prop 'wikitext' when calling action=expandtemplates

https://gerrit.wikimedia.org/r/164044
Comment 4 Gabriel Wicke 2014-10-03 01:19:29 UTC
We should also request and extract the categories.

Other bits we'd like to get:

- resourceloader modules added by parser functions (I *think* that's possible)
- html-ness of the output (can be set by the extension: https://www.mediawiki.org/wiki/Manual:Parser_functions#Controlling_the_parsing_of_output)
Comment 5 Gabriel Wicke 2014-10-03 01:21:56 UTC
To clarify, the "we'd like to get" bits are things that aren't exposed by the expandtemplates API yet. We'd need to add them to the PHP API.
Comment 6 Marc Ordinas i Llopis 2014-10-03 14:53:24 UTC
For the categories, there's bug #70196, and for the modules there's bug #67540. For the html-ness of the output I think it's better to open a new bug, specially if the current PHP API doesn't provide it yet.

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


Navigation
Links