Page MenuHomePhabricator

Ask users to add a (non hidden) category, if there are only hidden ones
Open, Needs TriagePublic

Description

Motivation
The FileImporter asks users to add a category to a file, if there is none yet (implemented via T189573). However, often times files have hidden categories (e.g. due to their licence template), so the warning is not triggered.

Acceptance Criteria

  • Show the advice to add at least one category to the file, if there is no visible one yet. Hidden categories have no effect on the "category count".

Event Timeline

Restricted Application added a project: archived--TCB-Team. · View Herald TranscriptJul 25 2019, 12:26 PM
awight added a subscriber: awight.Sep 9 2019, 9:34 AM

May be a duplicate and already fixed. Needs verification.

thiemowmde renamed this task from Ask users to add a category, if there are no visible ones yet to Ask users to add a (non hidden) category, if there are only hidden ones.Sep 9 2019, 10:05 AM
thiemowmde added a subscriber: thiemowmde.

The logic in FileImporter\Html\CategorySnippet almost does what we want, but it only fires when both the visible categories and hidden categories are both empty. When we change this to only test the visible categories, we'll also need to change the way the output is concatenated, and the message body itself, since there are cases when we want to show hidden categories and also this warning.

thiemowmde updated the task description. (Show Details)Sep 10 2019, 9:41 AM

I was surprised to not find any metrics for this under "recoverable errors". Maybe tracking is the next step?