-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor sorting #261
Refactor sorting #261
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export function applyDropdownFilter(dropdownFilter: DropdownFilter): (a: Issue) => boolean { | ||
return (issue) => { | ||
export function applyDropdownFilter(dropdownFilter: DropdownFilter, data: Issue[]): Issue[] { | ||
const filteredData: Issue[] = data.filter((issue) => { | ||
let ret = true; | ||
|
||
if (dropdownFilter.status === 'open') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean filteredData
is never used in the return statement?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent catch. I must have had uncommited local changes. The error has been fixed and all filters should be working now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, slick PR and nice changes to integrate changes from filters! Just a few comments regarding SRP! 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done, LGTM! 🚀
Summary:
Fixes part of #249
Type of change:
Changes Made:
Proposed Commit Message:
Checklist: