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

make id_shorts optional #130

Merged

Conversation

jkhsjdhjs
Copy link
Contributor

Since SubmodelElementLists require that their children elements don't
have id_shorts, they have to be made optional for all elements, but
required for NamespaceSets.

Furthermore, AASd-022 is changed from a KeyError to AASConstraintViolation and the
tests are adjusted accordingly.
Also, the NamespaceSet.add() identifier uniqueness check is moved
after the simple parent check for performance reasons, solely because
the parent check is a lot faster.

This PR depends on #127, #128 and #129.

@jkhsjdhjs jkhsjdhjs marked this pull request as draft October 2, 2023 16:58
@jkhsjdhjs jkhsjdhjs force-pushed the feature/optional_id_shorts branch 3 times, most recently from d62d158 to 340464a Compare October 2, 2023 17:35
Since `SubmodelElementLists` require that their children elements don't
have `id_shorts`, they have to be made optional for all elements, but
required for `NamespaceSets`.
Type is changed from `KeyError` to `AASConstraintViolation` and the
tests are adjusted accordingly.
Furthermore, the NamespaceSet.add() identifier uniqueness check is moved
after the simple parent check for performance reasons, solely because
the parent check is a lot faster.
@jkhsjdhjs jkhsjdhjs marked this pull request as ready for review October 4, 2023 13:06
@s-heppner
Copy link
Contributor

Looks good, as far as I can judge. Is it ready to be rebased?

@jkhsjdhjs
Copy link
Contributor Author

Yep 👍

@s-heppner s-heppner merged commit d5f4919 into eclipse-basyx:improve/V30 Oct 6, 2023
6 checks passed
@s-heppner s-heppner deleted the feature/optional_id_shorts branch October 6, 2023 06:42
@s-heppner s-heppner added the v3.0 label Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants