chaoss / chaoss/grimoirelab-sortinghat

False positive check inserting inserting identities with l and ł values

Open
#163 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
58
Forks
89
Avg merge
3d 17h
Merged PRs (30d)
2

Description

Values with polish characters `l` and `ł` are considered equal in the database giving false positives when a similar identities with these characters are inserted. For example, having the next identity in the database:

```
AAAAAAAA Michał Smith michalsmith@example.com msmith unknown
```

The call to the next command fails when the name is written with latin characters:
```
sortinghat add --name "Michal Smith" --email "michalsmith@example.com" --username "msmith"
Error: unique identity 'Michal Smith-michalsmith@example.com-msmith-unknown' already exists in the registry

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with the `sortinghat add` command using `Michal Smith` and `Michał Smith`, and inspect how identity uniqueness is checked against the database. Done means identities differing by `l` and `ł` are handled distinctly without the reported false-positive error, with the behavior covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.