elastic / docs

246 stars 333 forks source link

OPEN IN CONSOLE should work against cloud! #631

Open nik9000 opened 5 years ago

nik9000 commented 5 years ago

I've just been told that the OPEN IN CONSOLE links don't work properly against cloud. That is terrible! We should make super sure that you can use cloud.

nrichers commented 5 years ago

@nik9000 I think this is the Copy as cURL issue?

nik9000 commented 5 years ago

I think we should make a way to trigger "cloud API" snippets and then build "copy as curl" for them. Console just isn't designed to work against anything but the Elasticsearch API so it might never support talking directly to cloud. But we'd get a nice copy-as-curl thing for these.

nik9000 commented 5 years ago

See also: https://github.com/elastic/elasticsearch/pull/31700

nrichers commented 5 years ago

The relevant bit from elastic/elasticsearch#31700:

The COPY AS CURL button used in the getting started section doesn't work against our hosted Elasticsearch Service as is, with no way to change that. To make our hosted Elasticsearch Service a viable alternative for people trying out these getting started steps, we would need:

On the upside, the current configuration modal lets you set the Kibana endpoint, which works just fine against Cloud when I tested it just now: image

haywoood commented 5 years ago

In lieu of recent conversations, and the new-found knowledge that curl will prompt for the password, should we close this? or redirect it?

nik9000 commented 4 years ago

I believe we've done this! @nrichers, can you confirm or deny?

nik9000 commented 4 years ago

I'm going to repurpose this issue to track deploying this to cloud's docs. That will:

  1. Come after converting cloud's docs to Asciidoctor.
  2. Require some engineering to separate the configuration of the "coordinating" server (ECE) from the cloud endpoint (SaaS).
nyurik commented 4 years ago

~This should be fixed by https://github.com/elastic/docs/pull/1719~ my mistake, this is unrelated.