aws / graph-explorer

React-based web application that enables users to visualize both property graph and RDF data and explore connections between data without having to write graph queries.
https://github.com/aws/graph-explorer
Apache License 2.0
305 stars 46 forks source link

Ensure attributes are updated in schema when entities are updated #356

Closed kmcginnes closed 2 months ago

kmcginnes commented 2 months ago

Description

When entities are updated the logic in the setter was adding any node or edge types that were missing in the schema.

I've extended that logic to also add any attributes that are missing to the schema.

Validation

Node testing

  1. Add node to graph
  2. Take note of existing attributes on node in details pane
  3. Add property to node
    g.V({Node ID}).property("added-prop", 123)
  4. Clear graph
  5. Add same node to graph
  6. Notice new property in details pane

Edge testing

  1. Add node to graph
  2. Expand node and select edge
  3. Take note of existing attributes on edge in details pane
  4. Add property to edge
    g.E({Edge ID}).property("added-prop", 123)
  5. Clear graph
  6. Add same node to graph
  7. Expand
  8. Select edge
  9. Notice new property in details pane

Related Issues

Check List