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

[FIX kbss-cvut/fta-fmea-ui#226] Fix reading fault event properties in fault tree #78

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

kostobog
Copy link
Collaborator

Fixes kbss-cvut/fta-fmea-ui#226

  • fix in fault tree entity descriptor
  • explicitly read lazy relations
  • remove unnecessary eager relations before returning response

… fault tree

- fix in fault tree entity descriptor
- explicitly read lazy relations
- remove unnecessary eager relations before returning response
@@ -45,10 +46,28 @@ public EntityDescriptor getEntityDescriptor(URI uri) {
EntityType<FaultTree> ft = em.getMetamodel().entity(type);
EntityType<FaultEvent> fe = em.getMetamodel().entity(FaultEvent.class);
Attribute manifestingEvent = ft.getAttribute("manifestingEvent");
Attribute children = fe.getAttribute("children");
Copy link
Contributor

Choose a reason for hiding this comment

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

@ledsoft don't we have a generated metamodel in JOPA so we would not have to write the string "children"? If so I believe it is a good place to use it here.

@blcham blcham merged commit 9b3bc61 into main Apr 10, 2024
1 check passed
@blcham blcham deleted the fix/fta-fmea-ui-226-fix-reading-fault-event-properties branch May 6, 2024 16:16
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.

Add properties related to root node and SNS node
2 participants