ie3-institute / ie3-institute/PowerSystemDataModel

Include boolean flag for automatic Validation when constructing a `JointGridContainer` or even any Entity

Open
#751 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.