ie3-institute / ie3-institute/PowerSystemDataModel
Include boolean flag for automatic Validation when constructing a `JointGridContainer` or even any Entity
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26
- Forks
- 7
- Avg merge
- 2h 33m
- Merged PRs (30d)
- 15
Description
We have a lot of ValidationUtils that check assets and participants for validity of attributes (can be called by ValidationUtils.check() for any entity and delegates to the respective method). It would be nice to be able to trigger them automatically when creating a JointGridContainer by for example including a boolean flag validate. Which could be set to False by default to not break existing code.
This could even be done for every entity.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the JointGridContainer construction path and ValidationUtils.check(), then inspect how entities are created and validated. The issue leaves the scope open between JointGridContainer and every entity; completion would require an agreed optional validation flag that preserves existing behavior and triggers the relevant checks when enabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100