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
Add filters LESSTHAN & GREATERTHAN to FilterMatchTypeEnum (#6319) #6437
Conversation
0164123
to
f28d265
Compare
NOTCONTAINS, | ||
BLANK, | ||
NOTBLANK, | ||
IN | ||
IN, | ||
LESSTHAN, | ||
GREATERTHAN |
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.
I propose to set the order as alphabetical to ease reading
NOTCONTAINS, | ||
BLANK, | ||
NOTBLANK, | ||
IN | ||
IN, | ||
LESSTHAN, | ||
GREATERTHAN | ||
} |
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.
I propose to set the order as alphabetical to ease reading
} catch (NumberFormatException | NoSuchFieldException | SecurityException e) { | ||
// Ignore criteria on wrong columns | ||
} |
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.
I suggest handling exceptions within each case of the getMatchingCriteria switch statement and adding a meaningful log.warn
.
This would make it easier to identify and resolve potential problems.
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.
After discussion it was decided to keep it as it is, because the behaviour is similar to the current implementation: if a wrong column is specified in the condition than the condition is ignored.
f28d265
to
3a96c45
Compare
Signed-off-by: Giovanni Ferrari <giovanni.ferrari@soft.it>
3a96c45
to
3c6ccdb
Compare
Quality Gate passedIssues Measures |
Fix #6319