appbaseio / mirage

:art: GUI for simplifying Elasticsearch Query DSL
http://opensource.appbase.io/mirage
Other
2.21k stars 125 forks source link

No index/appname can be selected #10

Closed nellicus closed 7 years ago

nellicus commented 7 years ago

hello, first of all congrats for the great tool.

I've installed it on a es 2.3.x with ssl enabled, I can get it to connect to the cluster I see using chrome-dev-tools that the mappings are returned successfully, however I can't select any index after I hit "connect".

I'm using a admin user which can call all api on all indices so I'd exclude permission issues.

if I just hit run query I get a response

{
    "_body": "No handler found for uri [/] and method [POST]",
    "status": 400,
    "ok": false,
    "statusText": "Bad Request",
    "headers": {
        "Access-Control-Allow-Origin": [
            "https://myhostname:myport"
        ],
        "Access-Control-Allow-Credentials": [
            "true"
        ],
        "Content-Length": [
            "46"
        ],
        "Content-Type": [
            "text/plain; charset=UTF-8"
        ]
    },
    "type": 2,
    "url": "myhostname:myport"
}

(value for url is edited)

so connection seems to be fine....

any ideas on what I am missing or troubleshooting steps?

thanks and congrats again!

farhan687 commented 7 years ago

Hey @nellicus Did you select any type from the left side select box? this leads me to good UI issue that 'Run Query' button should show error if query is empty.

nellicus commented 7 years ago

@farhan687 after I've entered the url on the right side box and click connect if I click on "Data view" nothing happens, and the other box still displays in grey "Appname (aka index) goes here" and nothing happens if I click it.

if I hit "run query" I get the answer I've posted above...

farhan687 commented 7 years ago

@nellicus Do you see 'Select type to apply query' input box?

farhan687 commented 7 years ago

Can you just take a screenshot of after pressing connect?

nellicus commented 7 years ago

screen shot 2016-10-05 at 16 28 29

siddharthlatest commented 7 years ago

@nellicus I believe the issue is that the index name is not selected. Mirage only supports queries within a selected index at the moment.

A usability issue for us to work on is to not allow connecting if the index is not specified.

nellicus commented 7 years ago

however I can't select any index after I hit "connect".

and the other box still displays in grey "Appname (aka index) goes here" and nothing happens if I click it.

as I mentioned ^^

@nellicus I believe the issue is that the index name is not selected. Mirage only supports queries within a selected index at the moment.

@siddharthlatest how do you do that?

siddharthlatest commented 7 years ago

Enter an existing index in the first field (to the left of the Elasticsearch cluster URL) and then click connect.

nellicus commented 7 years ago

oohhhhhhhh I see.

I was assuming since you get the mapping that indices would be selectable after hitting connect rather than having to enter the single index name before connecting.

A usability issue for us to work on is to not allow connecting if the index is not specified.

I understand now, indeed looking forward to the day where this would work over wildcards ideally dinamically pulling detected indices list

thanks for your help