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

unset categories can't be returned by analyse

Đang mở
#1 4 bình luận 0 reaction 1 người được giao Được giao cho @nitekon1 Xem trên GitHub
bug good first issue keep-open stale
Ngôn ngữ chính
Python
Star
8
Fork
8
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.