yarl / pattypan

Upload files to Wikimedia Commons. The Spreadsheet Way.
https://commons.wikimedia.org/wiki/Commons:Pattypan
MIT License
56 stars 37 forks source link

overwriting 2500 svg-files, without description-change (bug-fix for renderissue) #83

Closed JoKalliauer closed 6 years ago

JoKalliauer commented 6 years ago
pattypan v.18.02
Linux 4.15.0-34-generic amd64 
Java 1.8.0_181

I want to bug-fix a renderissue: phab:T36947 for more than 2500+[1] svg-files:

How can I overwrite the files without changing the description? If I try to upload a empty template I get "Error: empty template!". Can I create a spreadsheed that contains the actual description? If I reupload the same, wikimedia should not create new history-version if it is completely identical.) Or is it possible to upload files without description?

This issue is maybe related to: https://github.com/ritschwumm/commonist/issues/19

Please provide an reasonable upload for minor (but necessary) mass-bug-fix-edits, such as User_talk:JoKalliauer#Text_rendering

[1] Category:SVG_maps_showing_history_in_Russian

JoKalliauer commented 6 years ago

I solved it with Command-line_upload, which seems to be the right choice for such cases.

lgelauff commented 4 years ago

@JoKalliauer does your workaround through the API still work? Could you describe it in more detail?

JoKalliauer commented 4 years ago

@lgelauff I use

python /data/project/shared/pywikipedia/core/scripts/upload.py Test.svg -keep -ignorewarn -noverify -descfile "new version"

see

https://github.com/JoKalliauer/cleanupSVG/blob/master/WorkaroundBotsvg2validsvg.sh#L232

lgelauff commented 4 years ago

Thanks. Figured out that I got stuck on having a too young (bot)account , for overwriting permissions you need to be autoconfirmed.