-
Notifications
You must be signed in to change notification settings - Fork 0
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
Migrate criteria filters to expert filters #137
Conversation
66b3f16
to
03e5f84
Compare
Signed-off-by: Thang PHAM <[email protected]>
… migration-equipment-filter
src/main/java/org/gridsuite/filter/server/migrations/MigrateEquipmentFilter.java
Outdated
Show resolved
Hide resolved
src/main/java/org/gridsuite/filter/server/migrations/MigrateEquipmentFilter.java
Outdated
Show resolved
Hide resolved
793b434
to
594fd42
Compare
594fd42
to
8807198
Compare
} | ||
|
||
@Test | ||
public void testExportFilters() throws Exception { |
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 should keep the parts that test identifier list filters
UUID filterId3 = UUID.fromString("42b70a4d-e0c4-413a-8e3e-78e9027d300c"); | ||
UUID filterId4 = UUID.fromString("42b70a4d-e0c4-413a-8e3e-78e9027d300d"); | ||
|
||
LineFilter lineFilter = LineFilter.builder().equipmentID("NHV1_NHV2_1").substationName1("P1").substationName2("P2") |
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.
should be replaced by some other filter type
UUID filterId2 = UUID.randomUUID(); | ||
UUID filterId3 = UUID.randomUUID(); | ||
|
||
LineFilter lineFilter1 = LineFilter.builder().equipmentID("NHV1_NHV2_1").substationName1("P1").substationName2("P2") |
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.
should be replaced by some other filter type
@@ -2148,120 +1409,4 @@ public void testExpertFilterLoadLinkToOtherFilterWithIsPartOfOperator() throws E | |||
checkFilterEvaluating(expertFilter, expectedResultJson); | |||
} | |||
|
|||
@Test | |||
public void testLineFiltersCrudInBatch() throws Exception { |
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.
@thangqp this test should be kept also nope ?
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.
but there are only criteria Filters inside
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.
In my opinion, every ancient tests for general features, but using criteria-based filters, should be replaced by equivalent expert filters
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.
ok
@@ -220,565 +219,6 @@ public String joinWithComma(Object... array) { | |||
return join(array, ","); | |||
} | |||
|
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.
Remove all ununsed methods
Signed-off-by: Etienne Homer <[email protected]>
Signed-off-by: Etienne Homer <[email protected]>
Signed-off-by: Etienne Homer <[email protected]>
Signed-off-by: Etienne Homer <[email protected]>
…dsuite/filter-server into delete_code_criteria_filters
Signed-off-by: Etienne Homer <[email protected]>
Signed-off-by: Etienne Homer <[email protected]>
Quality Gate passedIssues Measures |
migration all criteria based filters to expert filters, code clean will be done in the next PR