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

Import mnecs #925

Merged
merged 5 commits into from
Mar 21, 2024
Merged

Import mnecs #925

merged 5 commits into from
Mar 21, 2024

Conversation

benrejebmoh
Copy link
Collaborator

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem?

What kind of change does this PR introduce?

What is the current behavior?

What is the new behavior (if this is a feature change)?

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

If yes, please check if the following requirements are fulfilled

  • The Breaking Change or Deprecated label has been added
  • The migration steps are described in the following section

What changes might users need to make in their application due to this PR? (migration steps)

Other information:

Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com>
Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com>
Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com>
Comment on lines 128 to 129
return aeSecuredForRegion.map(rawRegionId -> rawRegionId.substring(rawRegionId.lastIndexOf("/") + 1).equals(regionEic)).orElse(false);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of lastIndexOf("/") I think it could be interesting to use the structure of an EIC code which is 16-character long and only accepts uppercase letters, digits, +, - and _. Maybe you could you get the EIC code with a regex like:

http://energy.referencedata.eu/energy/EIC/((?:[A-Z]|[0-9]|_|-|\+){16})

Comment on lines 133 to 134
return aeScannedForRegion.map(rawRegionId -> rawRegionId.substring(rawRegionId.lastIndexOf("/") + 1).equals(regionEic)).orElse(false);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same regex comment

Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com>
@bqth29 bqth29 merged commit 43679e2 into main Mar 21, 2024
6 checks passed
jipea pushed a commit that referenced this pull request Apr 2, 2024
* add csa crac creation parameters

Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com>

* mnec test

Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com>

* adapt unit test to new test structure after merge with master

Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com>

* fix after review

Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com>

---------

Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com>
Signed-off-by: jipea <arnould.jp@gmail.com>
@pet-mit pet-mit deleted the import-mnecs branch April 4, 2024 15:20
MartinBelthle pushed a commit that referenced this pull request May 28, 2024
* add csa crac creation parameters

Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com>

* mnec test

Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com>

* adapt unit test to new test structure after merge with master

Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com>

* fix after review

Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com>

---------

Signed-off-by: benrejebmoh <mohamed.ben-rejeb@rte-france.com>
Signed-off-by: belthlemar <martin.belthle@rte-france.com>
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.

None yet

2 participants