Git Product home page Git Product logo

Comments (4)

wetneb avatar wetneb commented on June 19, 2024 1

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

from commonsextension.

trnstlntk avatar trnstlntk commented on June 19, 2024

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.

from commonsextension.

trnstlntk avatar trnstlntk commented on June 19, 2024

For testing purposes, this is a list of redirected categories: https://commons.wikimedia.org/wiki/Special:WhatLinksHere?target=Template%3ACategory+redirect&namespace=14

One example: https://commons.wikimedia.org/wiki/Category:Professions

from commonsextension.

trnstlntk avatar trnstlntk commented on June 19, 2024

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.

from commonsextension.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.