dgraph-io / ratel

Dgraph Data Visualizer and Cluster Manager
Apache License 2.0
120 stars 49 forks source link

[BUG]: Ratel UI add an index but not working #309

Closed 52learn closed 1 year ago

52learn commented 1 year ago

What version of Ratel are you using?

I run dgraph with command :

docker run --name dgraph-standalone -d -p "8080:8080" -p "9080:9080" -v /vagrant/dgraph-standalone:/dgraph dgraph/standalone:v23.0.1

and ratel :

docker run --name ratel  -d -p "8000:8000"  dgraph/ratel:latest

I make practise with the document link -- get-started-with-dgraph tutorial-3.

I want to add and index on the rating predicate in Rate UI: check the checkbox of index and click the update button. With the DevTools, it shows that the alter http request has successed. image

but it does not really work.

when i refresh the link , the rating predicate sitll does not have an index. image

I have try many times , but all failed .

What you did.

start dgraph-standalone , ratel docker. open ratel ui : http://ratel_ip:8000/ mutation add predicates:

{
    "set": [{
        "author_name": "John Campbell",
        "rating": 4.1,
        "published": [{
                "title": "Dgraph's recap of GraphQL Conf - Berlin 2019",
                "url": "https://blog.dgraph.io/post/graphql-conf-19/",
                "content": "We took part in the recently held GraphQL conference in Berlin. The experience was fascinating, and we were amazed by the high voltage enthusiasm in the GraphQL community. Now, we couldn’t help ourselves from sharing this with Dgraph’s community! This is the story of the GraphQL conference in Berlin.",
                "likes": 100,
                "dislikes": 4,
                "publish_time": "2018-06-25T02:30:00",
                "tagged": [{
                        "uid": "_:graphql",
                        "tag_name": "graphql"
                    },
                    {
                        "uid": "_:devrel",
                        "tag_name": "devrel"
                    }
                ]
            },
            {
                "title": "Dgraph Labs wants you!",
                "url": "https://blog.dgraph.io/post/hiring-19/",
                "content": "We recently announced our successful Series A fundraise and, since then, many people have shown interest to join our team. We are very grateful to have so many people interested in joining our team! We also realized that the job openings were neither really up to date nor covered all of the roles that we are looking for. This is why we decided to spend some time rewriting them and the result is these six new job openings!.",
                "likes": 60,
                "dislikes": 2,
                "publish_time": "2018-08-25T03:45:00",
                "tagged": [{
                        "uid": "_:hiring",
                        "tag_name": "hiring"
                    },
                    {
                        "uid": "_:careers",
                        "tag_name": "careers"
                    }
                ]
            }
        ]
    }]
}

click schema panel in Ratel UI. find the rating predicate .
check the index . click the update button

What happened.

not really work , the rating predicate sitll no index

What you expect to happen.

the rating predicate has an index

Can we reproduce the issue?

yes

Additional information

No response