The object of this task is to implement the Post.replies() method, as described in the design. Unlike the implementation of Board.topics(), this method will not have any parameters, making it suitable as a property. This method will load the list of reply posts from the cached internal data, loading it from APISite.view_post() if necessary, and create new Post objects using the called object's page and the UUIDs pulled from the cache. The contents of these posts will not be loaded at this point. The Post objects will be cached and returned to the caller.
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Load Flow object content in Pywikibot | pywikibot/core | master | +429 -31 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T107093 Bots and Flow living in harmony (tracking) | |||
Invalid | None | T110042 Pywikibot and Flow (tracking) | |||
Resolved | happy5214 | T67119 Implement Flow support in Pywikibot | |||
Resolved | happy5214 | T101258 Implement Flow support in Pywikibot (Phase 1: Reading and Posting) | |||
Resolved | happy5214 | T101262 Load replies to a Flow post in Pywikibot |
Event Timeline
Comment Actions
Since view-topic and view-topiclist both return entire topics (with all posts), it should preferably reuse this if available rather than loading each post individually with view-post. That approach requires T100244: view-topiclist and view-topic should support wikitext, to return wikitext.
Comment Actions
Sorry, just saw that you already addressed the caching issue.
The cache can presumably keep track of which variants and content are loaded (if any) (e.g. if you post as html, then request as wikitext, it won't be cached).
Comment Actions
Change 217717 had a related patch set uploaded (by Happy5214):
[WIP] Load Flow object content in Pywikibot