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

unset categories can't be returned by analyse

未关闭
#1 4 条评论 0 个 reaction 已指派 1 人 已指派给 @nitekon1 在 GitHub 查看
bug good first issue keep-open stale
主要语言
Python
星标
8
派生
8
PR 合并指标
30 天内没有已合并 PR

描述

**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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。