MER-C / wiki-java

A MediaWiki bot framework in Java
GNU Affero General Public License v3.0
66 stars 58 forks source link

Wiki.java FAQ/TODO/whinge list and thoughts #154

Open MER-C opened 6 years ago

MER-C commented 6 years ago

Pull requests are welcome on some of these, please ask for my thoughts first.

MediaWiki annoyances and wishlist

a.k.a. why can't I do X?

Missing features

Vectorization

General FIXMEs

Deprecated API removal

WMF specific

Utilities

Tools

Non-problems and implementation notes

Abbe98 commented 2 years ago

I was wondering if anyone else got a use case for having the two upload methods support warnings. Turning ignorewarnings into a method parameter and letting the methods return a list of warnings if it's not enabled.

https://www.mediawiki.org/wiki/API:Upload#Upload_warnings

This would be very useful for Pattypan as it could serve as a neat solution to detect duplicates and raise other potential issues.

MER-C commented 2 years ago

I did the obvious thing with fd9b2dd5.

Abbe98 commented 2 years ago

I'm afraid https://github.com/MER-C/wiki-java/commit/fd9b2dd51623220a197f5829c05bb4ada4757e72 won't solve it on our end as we want to detect duplicates prior to or during the upload. We can solve it by just sending the hash to the WM-API but I imagine more upload tools could benefit for a way to get upload warnings.