-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
control-service: fix graphql NPE when sorting null description or team
why: Users reported that when trying to sort by a property that has a null value in the database, control service returns a 400 bad Request error. After some investigation I determined that this was caused by an incorrect implementation of the custom comparators for Description and Team which would throw NPE when comparing a property with a null value. what: Changed implementation so that it is null tolerant. Fixed indentation and removed unused imports in the classes that needed changing. testing: Added two new unit tests. Tested on a locally running control-service with the same request that previously returned 400 and it seems to be working as expected after the changes. Signed-off-by: Momchil Zhivkov [email protected]
- Loading branch information
Momchil Z
authored
Oct 28, 2021
1 parent
2c2bcbe
commit 875ca3d
Showing
4 changed files
with
55 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters