Skip to content

Fix Duplicates in Fuzzy Search#938

Merged
ssalinas merged 1 commit into
masterfrom
fuzzy-search-dupplicates
Mar 8, 2016
Merged

Fix Duplicates in Fuzzy Search#938
ssalinas merged 1 commit into
masterfrom
fuzzy-search-dupplicates

Conversation

@Calvinp

@Calvinp Calvinp commented Mar 7, 2016

Copy link
Copy Markdown
Contributor

Fuzzy Search gave duplicates in certain situations. This is because there are two searches done, one based on task id and one based on host. Fuzzy returns an object containing the string it searched on. If both the task id and host match the filter, two non-equal fuzzy objects representing the same task are returned, and _.union doesn't see them as the same thing.

This fixes that problem by calling _.uniq after extracting the original object.

@Calvinp

Calvinp commented Mar 7, 2016

Copy link
Copy Markdown
Contributor Author

The duplicate 'p' in the branch name was a typo, though I wish it was an intentional pun.

@ssalinas

ssalinas commented Mar 8, 2016

Copy link
Copy Markdown
Contributor

Thanks for the fix @Calvinp , LGTM

ssalinas added a commit that referenced this pull request Mar 8, 2016
@ssalinas ssalinas merged commit 04a9115 into master Mar 8, 2016
@ssalinas ssalinas deleted the fuzzy-search-dupplicates branch March 8, 2016 14:32
@ssalinas ssalinas modified the milestone: 0.4.12 Apr 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants