User talk:MarkTraceur/More general frontend uploading tools

Thanks!
Hi Mark. Thanks for preparing this draft, much appreciated! I like the way you are thinking about refactoring the Upload Wizard to make it more usable by other tools. I think this is a good direction to aim for, though I lack the technical expertise to comment on the specific implementation details. I defer to other engineering team members to discuss those technical aspect.

From a product management and resource allocation standpoint, we committed to spend a few sprints each quarter to work on the Upload Wizard, so our goal would be to focus on incremental refactoring goals, starting in the places where there is the greatest need. So we may want to break up this plan into discrete chunks that can be staggered over time. That’s because we have other projects in the pipeline that will also need our attention.

Thanks again for doing this, and I look forward to comments from others. Fabrice Florin (WMF) (talk) 18:19, 20 December 2013 (UTC)

Context of UW
Hi, this is NeilK, the original author of UploadWizard. Sumana looped me in via email. I don't have any plans to help refactor this, but I'd help anyone who wanted to understand how the code worked. I believe when you use words like "convoluted", you probably meant to say "a model of crystalline clarity", but that's okay. ;)

UW is the way it is, not because it was the best way to solve the problem. Without going into too much detail the code is something like 40% actual functionality, 30% backwards compatibility with ancient browsers no longer relevant in 2014, and 30% internal Wikimedia political feuds. I can go into more detail if anyone cares.

That said, some of your use cases are supported by UW already, unless things have changed. It is designed to be "embeddable" in other pages, and with fairly simple configuration you can drop the more outré widgets, like custom licenses, and limit it to a single file. If I recall correctly such configuration is done at the MediaWiki configuration file, which isn't as convenient for obvious reasons. But I think we can work around that, or change it so it obtains configuration from some JSON on the page or something. So I can help you get many of your use cases by tomorrow, I think.

Still, I would support making a clean break with the past, to create a very simple file uploader. UW handles far too many use cases; everything from the single author own-work file, to uploading 20 different files simultaneously, all with different licenses. The simple case should be a single button.

You might run into political difficulty over that, however, since wiki maintainers (particularly Commons volunteers) get fed up with the flood of poorly-licensed images that result from that sort of interface. I have some ideas to mitigate that, but they would be out of scope for an interface change. And I have been out of the loop for two years; perhaps there are new practices in place to deal with this? I notice that Commons doesn't seem to be as afraid of UploadWizard as they once were, it's back in the sidebar, without a lot of preliminary "ZOMG, UPLOADING IMAGES? WHAT ARE YOU, MAD?!" NeilK (talk) 18:37, 4 April 2014 (UTC)