Wikimate icon indicating copy to clipboard operation
Wikimate copied to clipboard

Feature Request: Add history for pages too

Open lriggle-strib opened this issue 7 years ago • 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.

lriggle-strib avatar Feb 27 '17 16:02 lriggle-strib

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. :wink:

Xymph avatar Mar 12 '17 12:03 Xymph

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.

Xymph avatar Sep 02 '21 08:09 Xymph

Thanks @Xymph !

lriggle-strib avatar Sep 02 '21 17:09 lriggle-strib

You're welcome. But I prefer to keep this open as incentive to add revision support within the Wikimate library itself.

Xymph avatar Sep 02 '21 17:09 Xymph