apache / apache/hugegraph-toolchain

[Bug] hubble 前端界面无法通过按钮添加 Vertex,已添加的 Vertex 无法编辑 property hugegraph/hubble cannot add node using 'button' in the UI when graph is empty

Open
#486 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
121
Forks
125
Avg merge
10d 10h
Merged PRs (30d)
3

Description

### Bug Type (问题类型)

dashboard render (前端渲染问题)

### Before submit

- [X] I had searched in the [issues](https://github.com/apache/hugegraph-toolchain/issues) and found no similar issues.

### Environment (环境信息)

- Server Version: v1.0.0:latest [Docker]
- Hubble Version: v1.6.0:latest [Docker]
- Data Size: 2 vertices, 1 edges

### Expected & Actual behavior (期望与实际表现)

As shown in pictures

1. when graph is empty (no vertex and edge), cannot using 'button' in the UI to add `vertex`
2. If vertex added without define some `key-value` (in picture's case the `description`)
then it cannot be edited after

![bug-1-pic](https://github.com/apache/incubator-hugegraph-toolchain/assets/62061729/f7c62356-de43-46db-ab6b-f8d8009900f4)
![bug-2-pic](https://github.com/apache/incubator-hugegraph-toolchain/assets/62061729/06f5fb4c-1bd9-4a5b-9708-259848b05510)

### Vertex/Edge example (问题点 / 边数据举例)

_No response_

### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

```javascript
# vertexlabels
{
"vertexlabels": [
{
"id": 2,
"name": "person",
"id_strategy": "PRIMARY_KEY",
"primary_keys": [
"name"
],
"nullable_keys": [
"description"
],
"index_labels": [],
"properties": [
"name",
"description"
],
"status": "CREATED",
"ttl": 0,
"enable_label_index": false,
"user_data": {
"~create_time": 1688625023126,
"~style": "{\"icon\":\"\",\"color\":\"#5c73e6\",\"size\":\"NORMAL\",\"display_fields\":[\"~id\"],\"join_symbols\":[\"-\"]}"
}
}
]
}

# edgelabels
{
"edgelabels": [
{
"id": 2,
"name": "friend",
"source_label": "person",
"target_label": "person",
"frequency": "SINGLE",
"sort_keys": [],
"nullable_keys": [
"description"
],
"index_labels": [],
"properties": [
"description"
],
"status": "CREATED",
"ttl": 0,
"enable_label_index": false,
"user_data": {
"~create_time": 1688625045042,
"~style": "{\"color\":\"#5c73e6\",\"with_arrow\":true,\"line_type\":\"SOLID\",\"thickness\":\"NORMAL\",\"display_fields\":[\"~id\"],\"join_symbols\":[\"-\"]}"
}
}
]
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the two behaviors in the Hubble UI with an empty graph and with a vertex that omits the nullable description property. Done means the button adds a vertex to an empty graph and vertices missing that property can be edited successfully.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.