Skip to content

Conversation

flomillot
Copy link
Contributor

Refactored filter evaluation API: switched to POST method, added new DTOs (FiltersWithEquipmentTypes, EquipmentTypesByElement) to handle filters and equipment types

…DTOs (`FiltersWithEquipmentTypes`, `EquipmentTypesByElement`) to handle filters and equipment types

Signed-off-by: Florent MILLOT <[email protected]>
flomillot and others added 2 commits October 6, 2025 17:32
… of throwing an exception.

Signed-off-by: Florent MILLOT <[email protected]>
…y for substation/voltage level equipment filtering

Signed-off-by: Florent MILLOT <[email protected]>
… explicit field-specific methods. Updated copyright year.

Signed-off-by: Florent MILLOT <[email protected]>
@flomillot
Copy link
Contributor Author

flomillot commented Oct 13, 2025

Remarks fixed and tests added

Copy link
Contributor

@EtienneLt EtienneLt left a comment

Choose a reason for hiding this comment

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

minor thing

…earer semantics and update references accordingly.

Signed-off-by: Florent MILLOT <[email protected]>
@flomillot flomillot requested a review from EtienneLt October 14, 2025 14:29
@EtienneLt
Copy link
Contributor

you have sonar issue at least one can be resolved (switch instead of if)

…or improved readability and reduced duplication

Signed-off-by: Florent MILLOT <[email protected]>
@flomillot
Copy link
Contributor Author

flomillot commented Oct 15, 2025

you have sonar issue at least one can be resolved (switch instead of if)

Done, the other one is a false one because we are already in transactional function

@thangqp thangqp assigned thangqp and unassigned thangqp Oct 15, 2025
@thangqp thangqp self-requested a review October 15, 2025 15:45
@flomillot flomillot requested a review from EtienneLt October 16, 2025 10:15
List<ExpertFilter> filters = FilterWithEquipmentTypesUtils.createFiltersForSubEquipments(filterEquipmentType,
filteredEquipmentIds,
selectedEquipmentTypes);
filters.stream().flatMap(expertFilter -> evaluateFilter(expertFilter, networkUuid, variantId).stream())
Copy link
Contributor

Choose a reason for hiding this comment

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

Sonar high level while using @transactional method evaluateFilter()
=> you can try to use directly getIdentifiableAttributes

Copy link
Contributor

@EtienneLt EtienneLt left a comment

Choose a reason for hiding this comment

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

Test Ok Code Ok

…tion in `FilterService`.

Signed-off-by: Florent MILLOT <[email protected]>
Copy link

@flomillot flomillot merged commit 2a860f3 into main Oct 17, 2025
4 checks passed
@flomillot flomillot deleted the filter-with-equipment-types branch October 17, 2025 10:58
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.

4 participants