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 摘要。