-
Notifications
You must be signed in to change notification settings - Fork 0
Add endpoint to process filters and return Identifiables attributes list #167
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
Conversation
Signed-off-by: basseche <[email protected]>
efb2158
to
6e9eda1
Compare
Signed-off-by: basseche <[email protected]>
if (filterIdentiables.getNotFoundIds() != null) { | ||
filterIdentiables.getNotFoundIds().forEach(element -> notFound.put(element.getId(), element)); | ||
} | ||
filterIdentiables.getEquipmentIds().forEach(element -> result.put(element.getId(), element)); |
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 would implement the same safety than upper
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.
you mean requireNonNull ?
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.
not a bad idea because if filter is absent we should better throw an exception than continue.
the problem is here we have the filter uuid and not abstract filter, so i think we should throw a custom exception since we can't make the same control on Optional.
src/main/java/org/gridsuite/filter/server/configs/RestTemplateConfig.java
Show resolved
Hide resolved
src/main/java/org/gridsuite/filter/server/FilterController.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Thang PHAM <[email protected]>
Co-authored-by: Thang PHAM <[email protected]>
|
needs filter lib version : gridsuite/filter#84