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

AtlasEntity::addRelationship fails silently due to a wrong check #280

Open
gse89 opened this issue Jan 19, 2024 · 0 comments · May be fixed by #281
Open

AtlasEntity::addRelationship fails silently due to a wrong check #280

gse89 opened this issue Jan 19, 2024 · 0 comments · May be fixed by #281
Labels
bug Something isn't working

Comments

@gse89
Copy link

gse89 commented Jan 19, 2024

Describe the bug
The AtlasEntity class method addRelationship checks if the relationship attributes are uninitialised by wrongly testing if the customAttributes attribute (instead of the relationshipAttributes one) was initialised.

To Reproduce
Steps to reproduce the behavior:

  1. Create an AtlasEntity
  2. Set a customAttribute
  3. Try to add a relationship by calling AtlasEntity::addRelationship
  4. Verify that AtlasEntity.relationshipAttributes is still empty

Expected behavior
The AtlasEntity object should have the added relationship.

Desktop (please complete the following information):

  • OS: Mac
  • PyApacheAtlas Version (python -m pyapacheatlas --version): 0.15.0
@gse89 gse89 added the bug Something isn't working label Jan 19, 2024
@gse89 gse89 linked a pull request Jan 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant