apache / apache/age-viewer

Refresh button doesn't work properly

Open
#144 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
387
Forks
268
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
When you add a new node to a graph using the command line, and then click on the Refresh Button on the frame, it doesn't update the data on the screen (you need to rerun the query and create a new query-result frame to show new data).
In the screenshot below, although the two frames have the same query `SELECT * FROM cypher('test', $$ MATCH (v: Person) RETURN v $$) as (result agtype);`, but then don't show the same data even after clicking on the refresh button, the data is not updated on the screen (`ahmed` node is not displayed)

![Screenshot (789)](https://github.com/apache/age-viewer/assets/62694574/bba0a11f-30fb-40f1-b0c1-8344b7e95845)

**To Reproduce**

Data setup:
```
SELECT * FROM create_graph('test');
SELECT * FROM cypher('test', $$ CREATE (v: Person {name: 'ahmed'}) RETURN v $$) as (result agtype);
```
Steps to reproduce the behavior:
1. Open AGE Viewer tool
2. Connect to a database
3. Run a `MATCH` on the `test` graph we just created `SELECT * FROM cypher('test', $$ MATCH (v: Person) RETURN v $$) as (result agtype)`
4. Add a new node to the `test` graph from the command line `SELECT * FROM cypher('test', $$ CREATE (v: Person {name: 'ahmed'}) RETURN v $$) as (result agtype); `
5. Click on the refresh button on the screen frame (nothing updated)

**Expected behavior**
data should be updated after clicking on the refresh button

**Desktop (please complete the following information):**
- OS: [wsl2 Ubuntu 20.04]
- Browser [Chrome]
- Version Latest

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.