dgraph icon indicating copy to clipboard operation
dgraph copied to clipboard

Add GraphQL Subscription to Admin queries. To have a way to watch changes made in the cluster and etc.

Open MichelDiz opened this issue 4 years ago • 2 comments

Experience Report

What you wanted to do

As an administrator of Graph Database. I would like to have on hand, easy access to my cluster information dynamically. Than just running queries over and over. The subscription feature is more efficient for this.

The idea with this is to create a kind of "watcher" in Ratel (later after the implementation of the subs for admin). Where that instance subscribes for any change of administrative parameters or even background tasks.

e.g. Aman created a feature that does background indexing. Ratel is not able to keep up with this. But if we had a GQL Subs, it would be easy to implement a warning in the Ratel about the beginning and end of a bg index. As a form of logging and/or alerts.

It would even be possible to implement a small informal "log" system in the Ratel. Where when accessing the Ratel, the user (subscribes) sees the most recent activities of the Cluster. And you can leave the Ratel open to keep track of more logs (Maybe even append the logs to a file in Ratels container). This type of log exists by default in UIs of other DBs.

Why that wasn't great, with examples

I can only generate mutation queries, I cannot query by the current parameters. I can't keep track of tasks in the background except accessing the container and waiting for the logs to appear.

I'm adding to the Backlog. If this feature proves unnecessary, pls close this.

MichelDiz avatar Mar 23 '20 17:03 MichelDiz

This could solve this issue too https://github.com/dgraph-io/dgraph/issues/3857

MichelDiz avatar Mar 25 '20 18:03 MichelDiz

Github issues have been deprecated. This issue has been moved to discuss. You can follow the conversation there and also subscribe to updates by changing your notification preferences.

drawing

minhaj-shakeel avatar Jul 16 '20 13:07 minhaj-shakeel