Skip to content
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

Merged
merged 1 commit into from May 14, 2024

Conversation

quinarygio
Copy link
Contributor

Fix #6319

@quinarygio quinarygio marked this pull request as draft May 8, 2024 15:18
@quinarygio quinarygio force-pushed the FE-6319-cards-filter-gt-lt branch 2 times, most recently from 0164123 to f28d265 Compare May 9, 2024 09:32
@quinarygio quinarygio marked this pull request as ready for review May 9, 2024 09:45
@freddidierRTE freddidierRTE self-assigned this May 13, 2024
Comment on lines 25 to 30
NOTCONTAINS,
BLANK,
NOTBLANK,
IN
IN,
LESSTHAN,
GREATERTHAN
Copy link
Contributor

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

Comment on lines 21 to 27
NOTCONTAINS,
BLANK,
NOTBLANK,
IN
IN,
LESSTHAN,
GREATERTHAN
}
Copy link
Contributor

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

Comment on lines +289 to +291
} catch (NumberFormatException | NoSuchFieldException | SecurityException e) {
// Ignore criteria on wrong columns
}
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Signed-off-by: Giovanni Ferrari <giovanni.ferrari@soft.it>
Copy link

sonarcloud bot commented May 14, 2024

@freddidierRTE freddidierRTE merged commit 306b4ad into develop May 14, 2024
8 checks passed
@freddidierRTE freddidierRTE deleted the FE-6319-cards-filter-gt-lt branch May 14, 2024 11:36
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.

Add filters LESS_THAN & GREATER_THAN to org.opfab.cards.model.FilterMatchTypeEnum class
2 participants