aws / aws/graph-notebook

[BUG] Gremlin visualizer renders elementMaps incorrectly when custom `id` property is present

Open
#695 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Jupyter Notebook
Stars
819
Forks
179
PR merge metrics
No merged PRs in 30d

Description

**Community Note**
* Please use a 👍 reaction to provide a +1/vote. This helps the community and maintainers prioritize this request.
* If you are interested in working on this issue or have submitted a pull request, please leave a comment.

**Describe the bug**

This issue occurs running a `%%gremlin` query that returns path components in `elementMap` format. If the vertices in the path contain a custom `id` property, the visualizer confuses this with the default `T.id` token property, and renders the graph incorrectly.

When using WebSockets protocol, this issue manifests as duplicate, unconnected nodes in the graph.

![Screenshot 2024-09-17 at 10 05 14 PM](https://github.com/user-attachments/assets/ad9dcc77-393c-4f18-bf22-abdfbc4ba065)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.