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

feat(#405): Remove LDname limitation #406

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

gleizesDor
Copy link
Contributor

No description provided.

@@ -169,8 +170,8 @@ public String getXPath() {
*/
public void updateLDName() throws ScdException {
String newLdName = parentAdapter.getCurrentElem().getName() + currentElem.getInst();
if (newLdName.length() > 33) {
throw new ScdException(newLdName + "(IED.name + LDevice.inst) has more than 33 characters");
if (newLdName.length() > MAXIMUM_LENGHT_LD_NAME_BY_XSD) {
Copy link
Contributor

@samirromdhani samirromdhani Jul 1, 2024

Choose a reason for hiding this comment

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

Knowing that the maxLength is an XSD constraint I think we shouldn't even care about verifying this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the problem is this occurs during the SCD creation

log.info(STEP_3);
sclEditor.importSTDElementsInSCD(scd, stds);

and the SCD XSD validation occurs far away, in this method :
com.rte_france.rspace.rconf.service.ScdService#createSCD

So maybe the users would like to be warned as soon as the error occurs ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay, In order to maintain traceability I would recommend discussing this with @hkaroun for related issues like #7 and Jira tickets.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

After discussing together, I will completely remove the check

Signed-off-by: gleizesDor <115622893+gleizesDor@users.noreply.github.com>
@gleizesDor gleizesDor force-pushed the 405-remove-ldname-limitation branch from 61a0d23 to 5e7ce2c Compare July 1, 2024 14:51
CoMPAS Pull Request Overview Board automation moved this from To do to In progress Jul 2, 2024
CoMPAS SCT Board automation moved this from To do to In progress Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Remove LdName limitation
2 participants