Skip to content
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

[GridDyna] Using gridsuite filter library for mapping #96

Merged
merged 36 commits into from
Jul 12, 2024

Conversation

thangqp
Copy link
Contributor

@thangqp thangqp commented May 6, 2024

@Mathieu-Deharbe Mathieu-Deharbe self-requested a review June 21, 2024 14:05
@thangqp thangqp requested a review from etiennehomer July 2, 2024 12:54
return filters;
}
@Schema(description = "Filter is dirty or not")
private boolean filterDirty;
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this boolean about ?
This should stay on client side nope ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

dirty is info received from front-end to help the back dot not update all filters in the mapping. I dont want send only touched filters to back because filter is inside a rule and we can have other modification in rule, like model, setGroup etc. Bref, I would like send a snapshot of the whole mapping from front-end to backend with some additional helping info

@Schema(description = "Filters")
private List<AbstractFilter> filters;
@JsonIgnore
private UUID filterUuid;
Copy link
Contributor

Choose a reason for hiding this comment

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

That information is redondant. You have the filter id in filter nope ?

Copy link
Contributor Author

@thangqp thangqp Jul 9, 2024

Choose a reason for hiding this comment

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

I use this field in dto when enrich dto's rules with filter charged from filter-server before return to front-end, see filterUuid, see https://github.com/gridsuite/dynamic-mapping-server/pull/96/files#diff-45ca266d2e1cd29d2cb9577adfa3f0dde3314d37d32cf2d511333c8caff3f053R68-R87

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Finally, filterUuid is removed as suggested: DONE in cd797b3

@@ -39,3 +39,7 @@ databaseChangeLog:
- include:
file: changesets/changelog_20231130T170646Z.xml
relativeToChangelogFile: true

- include:
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there some data to migrate ? Or it's too complicated and not so benefic ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Discussed with PO: no migration

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So complicated to migrate, all previous mappings should be deleted..

Copy link
Contributor

@etiennehomer etiennehomer left a comment

Choose a reason for hiding this comment

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

Please fix the sonar warnings

@thangqp
Copy link
Contributor Author

thangqp commented Jul 10, 2024

Please fix the sonar warnings

Three sonars waning are false positive on method name in parameterized test .

Only one Annotate this method with JUnit5 '@org.junit.jupiter.api.BeforeEach' instead of JUnit4 '@Before'. that relates to migration JUnit, we need adapt the test, if not test will be fail..

I will do it in a separated TS PR

Copy link

@jonenst
Copy link
Contributor

jonenst commented Jul 11, 2024

only read through it, nothing stands out as blocking

@thangqp thangqp merged commit 3acd796 into main Jul 12, 2024
3 checks passed
@thangqp thangqp deleted the griddyna_using_gridsuite_filter_for_mapping branch July 12, 2024 16:16
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