Page MenuHomePhabricator

Make captions optional when inputting descriptions
Closed, ResolvedPublic

Description

Mostly self-explanatory title.

No visual change is expected, we're simply no longer going to prevent submissions with missing captions when descriptions are being provided.

Acceptance criteria

  • When "same as caption" is checked...
    • users can not proceed without entering at least 1 caption
    • captions are stored as usual and visible on the file page's caption section
    • wikitext descriptions are filled with captions' content, visible in the file page's summary section
  • When "same as caption" is unchecked...
    • users can not proceed without entering at least 1 description
    • wikitext descriptions are filled with descriptions' content, visible in the file page's summary section
    • captions are not required; empty captions input means no captions are stored
    • if captions are filled out, they are stored as usual and visible on the file page's caption section

Event Timeline

Change #1037476 had a related patch set uploaded (by Matthias Mullie; author: Matthias Mullie):

[mediawiki/extensions/UploadWizard@master] Make captions optional when adding descriptions

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

Change #1037476 merged by jenkins-bot:

[mediawiki/extensions/UploadWizard@master] Make captions optional when adding descriptions

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

Noticed an issue that the error (description is required) appears right away after unchecking "same as caption". And same for error message (caption is required) appears right away after checking "same as caption" box. The error messages are to be triggered only when uploaders try to publish. Before publishing, they may just be trying different options on the page and so showing error message too early can be unexpected and confusing specially to new users.
cc @Etonkovidova

Noticed an issue that the error (description is required) appears right away after unchecking "same as caption". And same for error message (caption is required) appears right away after checking "same as caption" box. The error messages are to be triggered only when uploaders try to publish. Before publishing, they may just be trying different options on the page and so showing error message too early can be unexpected and confusing specially to new users.
cc @Etonkovidova

@Sneha - I recall that that particular issue was brought up and filed as a separate task: T365067: UploadWizard - Describe step: message "Caption/Description is required" should appear only upon submitting . I added the scenario you described ("Caption is required" after un-checking and re-checking "same as caption" box) to that task.

Checked in commons betalabs - all specs are in place.

Note: it's still non-trivial to realize that captions are optional. If a user uploads a file (and doesn't enters captions or doesn't un-check the "Same as caption" box), clicks "publish files", the message "Caption is required" appears. At this point a user assumes that captions are, indeed, required. And there are also the cases in T365067 as it was mentioned in the comment above.

@Etonkovidova Captions remain required if "same as captions" has been unchecked. Only when they uncheck "same as captions" (and fill out a description) do they become optional.

T365067, however, still needs to be dealt with.