https://bugzilla.wikimedia.org/show_bug.cgi?id=39852

Ryan Kaldari <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #8 from Ryan Kaldari <[email protected]> 2012-09-06 05:01:01 
UTC ---
22273 doesn't fix the problem, unfortunately. The problem is caused by the call
to showNext() that was added to mw.UploadWizardUpload.js here:
https://gerrit.wikimedia.org/r/#/c/20814/13/resources/mw.UploadWizardUpload.js

Unfortunately, removing that call breaks (in certain cases) the new warning
overriding feature that was added.

The basic problem is that the ordering of the images (and how they are added
into the uploads array) has been complicated by the fact that we now allow
users to override uploads that fail due to warnings. Because of this feature,
we don't actually know what images are going to get used until the user clicks
the Continue button and advances to the deeds step. There are a few different
ways this can be fixed.

1. Quick and dirty - disable warning overriding until we can rejigger the
relevant pieces.

2. A bit complicated - Rejigger things now. Mainly we need to un-overload the
showNext() function. This function is being used for several different purposes
now, and some of them conflict with each other. We should move the appending
functionality and the copyMetadata functionality out of showNext() and instead
trigger them when the user advances to the deeds step (see moveToStep).
Secondly, we shouldn't hard-code copyMetadata to uploads[0]. There are several
cases where this will fail. Instead, once the user had advanced to the deeds
step (or the details step), show the copyMetadataCtrlDiv for whichever upload
is currently first in the list (this might require a little retooling of the
copyMetadata functions as well).

3. There are a few hackish (but lower risk) ways we could patch things up
without significantly changing how showNext works. I haven't totally thought
these through, but one way would be to build a custom success handler for the
case where a warning is overridden and remove the showNext call from the
regular setSuccess method. This wouldn't solve all the issues, but it would
probably solve most of the common scenarios.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to