Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define behavior for when a Category does not have elements #43

Open
j-sal opened this issue Jul 1, 2022 · 4 comments
Open

Define behavior for when a Category does not have elements #43

j-sal opened this issue Jul 1, 2022 · 4 comments
Assignees
Labels
commons categories Related to Wikimedia Commons categories

Comments

@j-sal
Copy link
Collaborator

j-sal commented Jul 1, 2022

  • Should a message be displayed?
@j-sal j-sal added the commons categories Related to Wikimedia Commons categories label Jul 1, 2022
@j-sal j-sal self-assigned this Jul 1, 2022
@wetneb
Copy link
Sponsor Member

wetneb commented Jul 2, 2022

I would say:

  • if a category exists, but does not contain any elements, then we should just create an empty project
  • if a category does not exist, then we should display an error message in the form where the category name is input
  • if a category is a redirect to another category, we should probably follow that redirect and fetch the corresponding category

@trnstlntk
Copy link
Contributor

I would say:

  • if a category exists, but does not contain any elements, then we should just create an empty project
  • if a category does not exist, then we should display an error message in the form where the category name is input
  • if a category is a redirect to another category, we should probably follow that redirect and fetch the corresponding category

I agree with this 90%. Just the first bullet point: I can imagine that people will be confused / left in the dark with an empty project and no feedback at all, so if we can think of some message (however small) during the process, that would be great.

@trnstlntk
Copy link
Contributor

@trnstlntk
Copy link
Contributor

Fetching category redirects on Commons is not straightforward. Redirects are produced by adding the {{Category redirect}} template to a category and it'd need some very dirty and Commons-specific code in OpenRefine to accommodate this scenario (either give the user some feedback about the redirect, or transparently following the redirect).

For now, this is a too complex task for the time we still have in the SDC project (less than 2 weeks) and we're not sure how necessary this will be (how frequently will users want to retrieve redirected categories and will be confused by empty results?). So we stall this issue 'for the future' for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
commons categories Related to Wikimedia Commons categories
Projects
Status: Smaller feature requests for "later" (tackle somewhere after Oct 2022)
Development

No branches or pull requests

3 participants