Page MenuHomePhabricator

Design behavior when importing an uncategorized file
Closed, ResolvedPublic

Description

We need to decide what to do when FileImporter is used to import an uncategorized file. Currently, the code will do nothing special, and will happily import the file.

Some behaviors we might want to adopt:

  1. Show a warning box on the preview page when importing, saying "Please consider adding categories after import".
  2. More humble warning stating the above, but without an infobox.
  3. Add a configurable snippet of wikitext to the file info during preview, and during actual import. This could default to empty, but would probably be set to {{subst:unc}} on commonswiki.
  4. Ask for confirmation when importing an uncategorized file, in an additional step.

If we want to replicate UploadWizard functionality, I believe it does (3) and (4).

Event Timeline

awight created this task.May 9 2019, 10:58 AM
Restricted Application added a subscriber: Liuxinyu970226. · View Herald TranscriptMay 9 2019, 10:58 AM

I see two problems here:

  • The file-info sections contain many templates making it hard to spot any additions, warnings etc. (one can always 1-up this with popups etc., but it is just escalating the problems)
  • category editing is is, according to experienced editors best done with special tools or gadgets rather than via manual addition in Wikitext. So we could say: "Your file lacks categories" but could not offer a good way to add them (except we want to invest in a upload-wizard-like GUI implementation)

One possibility I see is having a rather humble pointer to it:

However, if the file has categories, they would also need to appear there. Currently, they don't:

One possibility I see is having a rather humble pointer to it:

Thanks, I'll add that option to the task description.

However, if the file has categories, they would also need to appear there. Currently, they don't:

FYI, this functionality is pending merge of 0ac06a4da052.

awight updated the task description. (Show Details)May 20 2019, 9:28 AM

After adding categories manually the warning/hint is still shown.

awight closed this task as Resolved.Tue, Sep 10, 10:18 PM

The last bit of this should be fixed with T228992: Ask users to add a (non hidden) category, if there are only hidden ones. Closing since the design work is complete.