Skip to content

Correctly persist EmInput entities in CsvFileSink#1429

Open
pierrepetersmeier wants to merge 32 commits intodevfrom
pp/#1337-eminputs-arent-written-while-persisting-a-jointgridcontainer
Open

Correctly persist EmInput entities in CsvFileSink#1429
pierrepetersmeier wants to merge 32 commits intodevfrom
pp/#1337-eminputs-arent-written-while-persisting-a-jointgridcontainer

Conversation

@pierrepetersmeier
Copy link
Copy Markdown
Contributor

Resolves #1337

@pierrepetersmeier pierrepetersmeier self-assigned this Sep 1, 2025
@pierrepetersmeier pierrepetersmeier added the bug Something isn't working label Sep 1, 2025
@pierrepetersmeier pierrepetersmeier marked this pull request as ready for review September 19, 2025 07:44
@staudtMarius
Copy link
Copy Markdown
Member

@pierrepetersmeier Could you add a test that reads in the persisted grid and compares it with the original grid? There are some test for grids without ems in GridIoIT. Maybe you could simply add some ems to this existing grid.

@danielfeismann
Copy link
Copy Markdown
Member

Is this complete and only waiting for some review? @pierrepetersmeier

@pierrepetersmeier
Copy link
Copy Markdown
Contributor Author

complete :)

…ing-a-jointgridcontainer

# Conflicts:
#	CHANGELOG.md
Copy link
Copy Markdown
Member

@danielfeismann danielfeismann left a comment

Choose a reason for hiding this comment

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

Looks good except only little detail that may can be improved.

@danielfeismann
Copy link
Copy Markdown
Member

@pierrepetersmeier Could you add a test that reads in the persisted grid and compares it with the original grid? There are some test for grids without ems in GridIoIT. Maybe you could simply add some ems to this existing grid.

@pierrepetersmeier: is that done? Doesn't look like, to be honest :)

…use test failed with duplicate key exceptions due to shared output files
…while-persisting-a-jointgridcontainer' into pp/#1337-eminputs-arent-written-while-persisting-a-jointgridcontainer
Copy link
Copy Markdown
Member

@danielfeismann danielfeismann left a comment

Choose a reason for hiding this comment

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

I added the legacy energyManagementUnits which somehow got lost in another PR but should be here. However now some test is failing. It would be great if you could have a look on that.

@danielfeismann danielfeismann added this to the Version 8.2 milestone Mar 10, 2026
Copy link
Copy Markdown
Member

@danielfeismann danielfeismann left a comment

Choose a reason for hiding this comment

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

Great, you found it! Just minor improvements on CsvFileSink from my side. Please also have a look on the sonarcube issue and have a look into my previous comments above.

Copy link
Copy Markdown
Member

@danielfeismann danielfeismann left a comment

Choose a reason for hiding this comment

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

Almost there. I pushed a little addition to the docs and did minor adaptions. Besides that, there are only little things which would be nice to get included.

*/
class GridIoIT extends Specification implements CsvTestDataMeta {

@Shared
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

what caused these changes?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

also below

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

For the test isolation.

danielfeismann and others added 2 commits March 26, 2026 13:46
…ing-a-jointgridcontainer

# Conflicts:
#	src/test/groovy/edu/ie3/datamodel/io/sink/CsvFileSinkTest.groovy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EmInputs aren't written while persisting a JointGridContainer

3 participants