Skip to content

Conversation

basseche
Copy link
Contributor

@basseche basseche commented Sep 9, 2025

needs filter lib version : gridsuite/filter#84

@basseche basseche self-assigned this Sep 9, 2025
@basseche basseche changed the title Add endpoint to process filters and return Identifiables attributes list WIP : Add endpoint to process filters and return Identifiables attributes list Sep 9, 2025
@basseche basseche force-pushed the FilterBasedContingencyList branch from efb2158 to 6e9eda1 Compare September 11, 2025 09:00
@basseche basseche changed the title WIP : Add endpoint to process filters and return Identifiables attributes list Add endpoint to process filters and return Identifiables attributes list Sep 11, 2025
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));
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you mean requireNonNull ?

Copy link
Contributor Author

@basseche basseche Sep 22, 2025

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.

@basseche basseche removed the request for review from Mathieu-Deharbe September 22, 2025 11:13
Copy link

@basseche basseche merged commit 6def29d into main Sep 24, 2025
4 checks passed
@basseche basseche deleted the FilterBasedContingencyList branch September 24, 2025 13:18
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.

3 participants