Call-for-Code-for-Racial-Justice / Call-for-Code-for-Racial-Justice/TakeTwo-WebAPI

unset categories can't be returned by analyse

Abierto
#1 4 comentarios 0 reacciones 1 asignado Asignado a @nitekon1 Ver en GitHub
bug good first issue keep-open stale
Lenguaje dominante
Python
Estrellas
8
Forks
8
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**Describe the bug**
When there is already a category 'unset' string that is the same or contains any character within another string, the analyse endpoint will not color by category.

**To Reproduce**
Steps to reproduce the behavior:
1. In the highlighter, select just the letter "p" and leave it **uncategorised**.
2. Highlight another word that has "p" within it (e.g "leap") and **categorize** it.
3. Go to 'TakeTwo web api' text creator page and type in the second word you highlighted ("leap").
4. See that the category color does not show.

**Expected behavior**
Should highlight all matches, for example both "p" and "pappa".

**Additional context**
We can fix this by filtering out the "unset" categories when using the analyse endpoint. TO DO.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.