[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Page MenuHomePhabricator

[M] CAT - show existing categories for an image in the SuggestedTags interface
Closed, ResolvedPublic

Description

User story: As a new SuggestedTags user, I want to see the list of categories on each image in the queue , so that I can have additional context on the image and pick accurate tags.

We have this:
The image's categories currently do not appear in the CAT interface

We want this:
A list of Image categories should appear somewhere in the interface, preferably above the list of tags

Acceptance Criteria:

  • Image categories (if any) appear with each image in Suggested tags (the categories don't need to be linked)
  • The most narrow category is shown, not broader categories

During development, please test the following:

  • Test this feature on at least one mobile browser

COVID-19 Deployment Criteria

  • Can you roll back this change without lasting impact?
    1. A recovery plan is required as this will help identify our capacity for recovering from the failure
    2. THIS IS A KEY QUESTION, if you can’t answer it, you shouldn’t deploy
  • Is specialized knowledge required to support this change in production? If so, are there multiple people with this knowledge?
  • Is there a way to increase confidence about the correctness of this change?
    1. Reviews (Design, Code, etc)
    2. Testing coverage (unit tests, integration tests)
    3. Manual testing (e.g. Beta, vagrant, docker)

Event Timeline

Assigning to Anne to start because she can probably just whip up a quick version of the code for this and show it to @mwilliams for quick design review. Feel free to flip that order if you guys prefer

Cparle renamed this task from CAT - show existing categories for an image in the SuggestedTags interface to [M] CAT - show existing categories for an image in the SuggestedTags interface.Feb 26 2020, 5:39 PM
CBogen added a subscriber: AnneT.

The most narrow category is shown, not broader categories

How are we defining "most narrow" from the API?

Fortunately, the API returns only the categories the page is actually tagged with, not the higher-level categories above those. So we can easily get a list of categories for each image. We could consider putting a limit on the number of categories to keep the list from getting too long; I don't know what the average number of categories is for images on Commons.

I think if we try to limit we'll probably get into trouble, as there's no way to tell programmatically which categories are more important than others

Here is the design we are considering for adding categories. They are placed below the file name. (Ignore other design changes in this screenshot)

Screen Shot 2020-03-12 at 2.59.17 PM.png (1×1 px, 2 MB)

Screen Shot 2020-03-12 at 3.37.26 PM.png (830×2 px, 563 KB)

Change 582146 had a related patch set uploaded (by Anne Tomasevich; owner: Anne Tomasevich):
[mediawiki/extensions/MachineVision@master] Show list of categories for each image

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

Change 582146 merged by jenkins-bot:
[mediawiki/extensions/MachineVision@master] Show list of categories for each image

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