Page MenuHomePhabricator

[wmf.12- regression] Add image - rejected image cannot be submitted
Closed, ResolvedPublic

Description

  1. On a image recommendation article click 'No' in the image inspector to reject a suggested image.
  2. "Why not?" popup can be left unchecked - click on "Submit".
  3. On "Save your changes" overlay click on "Submit" again - the error message will be displayed: "Captions must be 5 characters or longer"

wrong_no_caption_message.gif (659×371 px, 450 KB)

Note: the issue is present in betalabs too.

Event Timeline

Change 744893 had a related patch set uploaded (by MewOphaswongse; author: MewOphaswongse):

[mediawiki/extensions/GrowthExperiments@master] Add an image: Only validate caption if the recommendation is accepted

https://gerrit.wikimedia.org/r/744893

This regressed from T296962: Add image - caption can be published blank by entering white spaces . The issue is that the caption is being validated even when the recommendation is rejected.

Change 744896 had a related patch set uploaded (by MewOphaswongse; author: MewOphaswongse):

[mediawiki/extensions/GrowthExperiments@wmf/1.38.0-wmf.12] Add an image: Only validate caption if the recommendation is accepted

https://gerrit.wikimedia.org/r/744896

Change 744893 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] Add an image: Only validate caption if the recommendation is accepted

https://gerrit.wikimedia.org/r/744893

Change 744896 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@wmf/1.38.0-wmf.12] Add an image: Only validate caption if the recommendation is accepted

https://gerrit.wikimedia.org/r/744896

Checked after the fix was deployed on testwiki wmf.12 - the issue is fixed.