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

[BUG] getNestedAttribute is not performing correctly #6044

Closed
1 task done
davidradl opened this issue Dec 17, 2021 · 1 comment · Fixed by #6048
Closed
1 task done

[BUG] getNestedAttribute is not performing correctly #6044

davidradl opened this issue Dec 17, 2021 · 1 comment · Fixed by #6048
Assignees
Labels
bug Something isn't working triage New bug/issue which needs checking & assigning

Comments

@davidradl
Copy link
Member

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I have a tree of nested attributes. If I issue the call getNested attributes, I get back all of the schema attributes that are connected to the supplied guid, including the parent.

Expected Behavior

I have a tree of nested attributes. If I issue the call getNested attributes, I get back all of the schema attributes that are connected to the supplied guid, excluding the parent.

Steps To Reproduce

set up a Topic, EventType and some nested schema attributes. got example nested attributed A with child B with child C. Issue getNestedAttribute on B, and you expect to see only C in the response not A and C.

Environment

- Egeria:
- OS:
- Java:
- Browser (for UI issues):
- Additional connectors and integration:

Any Further Information?

In SchemaAttributeHandler method getNestedSchemaAttributes it calls this.getAttachedEntities. There appears to be no relationship end checking. It should only return children, i.e. connected schema attributes to the nestedAttributes and not the parentAttribute end.

@davidradl davidradl added bug Something isn't working triage New bug/issue which needs checking & assigning labels Dec 17, 2021
@mandy-chessell
Copy link
Contributor

I have extended the SchemaAttributeHandler to pass the end identifier of the relationship that it should navigate. This means that only children are returned.

mandy-chessell added a commit to mandy-chessell/egeria that referenced this issue Dec 21, 2021
Signed-off-by: Mandy Chessell <mandy.e.chessell@gmail.com>
mandy-chessell added a commit to mandy-chessell/egeria that referenced this issue Dec 21, 2021
Signed-off-by: Mandy Chessell <mandy.e.chessell@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage New bug/issue which needs checking & assigning
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants