Issue with filter by
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- angular, javascript
- Domain
- frontend
Research direction
The issue is in the filterBy filter from the angular-filter library. Look at the filter's implementation, likely in a file like dist/angular-filter.js or the source files. The bug appears to be a substring matching issue where 'Incident1' matches 'Incident10'. Examine the filtering logic for exact vs. partial matching. Write a test to reproduce the issue with two incidents named 'Incident1' and 'Incident10' to verify the fix.
Written by the indexing model from the issue text.
Description
I have the following code: <li ng-repeat="subItem in vm.FAAFreqs | filterBy:['Incident.IncidentName'] : item.Incident.IncidentName" ui-tree-node>
I have 2 incidents named "Incident1" and "Incident10". The filtering is causing Incident10 to appear twice, so I can only assume that the filterBy finds Incident1 inside of Incident10 and thinks it is a match and doesn't finish the entire search.
The problem resolves 100% if I change the name of Incident10 to anything else.
- Dominant language
- JavaScript
- Stars
- 2.9k
- Forks
- 319
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from a8m/angular-filter
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
a8m/angular-filter#267 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
a8m/angular-filter#260 · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
a8m/angular-filter#254 · 2 comments · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
a8m/angular-filter#250 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
a8m/angular-filter#208 · 1 comment · 1 reaction ·
All issues in a8m/angular-filter
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
saadeghi/daisyui#4780 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
accessibility bug embed websites
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
quarto-dev/quarto-cli#14972 ·
Maintainers usually reply within 1 day
-
has-readme needs-attention new-tool repo-verified
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
shanselman/TinyToolTown#834 · 2 comments ·
Maintainers usually reply within 6 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
siderolabs/talos-design-system#16 ·
Maintainers usually reply within 1 day