Feature Request: Add history for pages too
Opened this issue · 4 comments
I can get at the revision data for a page by doing a custom query, which is fine, but it would be very helpful to add history data to the WikiPage class so it is easily accessible, similar to what is being done with files in the WikiFile class.
I can currently access history information for a page by doing a custom query, but if the history data can optionally be collected as part of of the getPage
functionality, that would reduce the number of API calls needed if someone actually needs to collect revision data on a large number of records.
The main reason why file history was easy to add in WikiFile is that it required just a few additional parameters to the existing prop=imageinfo API call, and the results fit within the same WikiFile model.
With page revisions, although I haven't studied it in detail yet, the rvprop= API call supports its own myriad of parameters. It would take a good look at which ones fit into the WikiPage model (e.g. rvdir doesn't, I think).
I may be able to look into this further when I have time and inspiration, but since I don't need this feature myself, I won't make any promises. 😉
Some time ago I came across a (non-forked) repo using Wikimate that contains a WikiRevisions module that may serve your needs.
Looking into revisions support is in the roadmap (#104) past the v1.0 release.
Thanks @Xymph !
You're welcome. But I prefer to keep this open as incentive to add revision support within the Wikimate library itself.