-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Phase 2] Usage of "Generation URL" should be made clear by UI #17920
Comments
Original comment by @LeeDr: Here's a kibana log line from when I tried it which shows the 404 response. Security in x-pack is enabled so when I paste the "Generation URL" into another tab I get the login screen, but then the 404.
|
Original comment by @epixa: I updated the title/description of this issue to offer proposed solutions to this ambiguity. |
Original comment by @cjcenizal: I was about to create an issue around this. Just to add my own experience, it's really confusing when you visit the URL in the browser and just get this: !LINK REDACTED This message could be made much clearer by explaining what happened and giving suggestions on what to do next:
We could also put a link the Reporting UI that provides more context on how to use this URL. Users have been confused by this too: https://discuss.elastic.co/t/kibana-report-api-405-error/67771 |
I agree this is pretty confusing. Not sure if there are any new designs for this reporting pane? cc @elastic/kibana-design. If not, maybe @gchaps could help us come up with some better text (lmk if you want to sync to go over the issue). |
There are no new designs for reporting yet, as far as I know. |
@stacey-gammon I actually did find some old designs for this, that I still think are viable today (I updated it slightly). The idea is that is would be housed in the Dashboard's overall "Options" context menu when all those top menu items get combined. The language could still be tweaked with @gchaps' help. I think the main things this shows are:
|
@joelgriffith @tsullivan I think the only thing missing from that dialog right now, is that the user still need to set the |
Yes, it is still applicable to reporting and I agree it should be made clear. A tooltip might not be the best approach though. I'd be ideal if there's something that could be copy/pasted into code. Maybe a collapsible container? Maybe have a
I don't want to get too hung up on the details of what it should look like. The way it looks currently has a vague look to it, unless you know what Watcher is. Hopefully by putting in the right amount of additional needed detail, we can make it not vague. |
Hi all. I'm also trying to use the "Copy POST Url" feature, but also having lots of problems with it. In the beginning was getting a Can you had an example or something to the feature? It is really not intuitive :( |
Is there any update on this issue? Does anyone have a working example of a curl command using the "Copy POST URL" output? |
Working example:
I am not aware that the Kibana server can send a |
Thank you @tsullivan , that works ! :) So I guess the |
@antoniocascais Glad to hear that it worked! Without the |
I don't remember which request I executed to get the 408 and can't reproduce it now. Maybe I did something really weird and that was the reason 🤔 |
I have no reason to question you, but I would make sense if it was actually a 400 instead of a 408 |
This seems pretty technical to include in a tooltip. I'm working on making it more clear in the documentation with: Would it make sense to link to the docs from the UI? I can't think of other examples in Kibana where we do that. |
@tsullivan we do include links to docs in a few places. |
Thanks @LeeDr I'll take a look at those to see how the links get connected to the correct docs version |
Pinging @elastic/kibana-stack-services |
I've now heard that this has come up in internal testing, so it wasn't something that you did. Filed #41594 |
Then I'm not going crazy! |
Proposal text for adding a link to the documentation:
|
Makes sense to me @tsullivan |
@tsullivan The text is fine as is, but I wonder if we might tighten it a bit. Here are some options. Alternatively, use this POST URL to generate reports outside Kibana. Learn about automatic report generation. Alternatively, use this POST URL to generate reports outside Kibana. See Reporting for how to automate report generation. |
Pinging @elastic/kibana-reporting-services (Team:Reporting Services) |
Pinging @elastic/kibana-app-services (Team:AppServices) |
Thank you for contributing to this issue, however, we are closing this issue due to inactivity as part of a backlog grooming effort. If you believe this feature/bug should still be considered, please reopen with a comment. |
Original comment by @Rasroh:
Build: 5.0.0-rc1-795f98e2
Installed x-plugins on both ES and Kibana .
I copied the
Reporting URL
to the clipboard and when I paste the sameURL
in another browser am hitting{"statusCode":404,"error":"Not Found"}
Encountered this issue on Dashboard , Discover tabs.
@lee.dr: too saw the same issue on his machine.
Edit by @epixa:
The UI should make it clear how to use the "Generation" URL by explaining it must be used in a
POST
request with proper authentication and akbn-xsrf: reporting
header. Alternatively, we can give a brief overview that this is to be used for automation and link to the docs, but we must do something. The current implementation does not at all add any clarity around that the purpose is, and if you copy it into your browser, you just get an error.Also, we should update GET requests to that route to return a 405 Method Not Allowed error with a useful error message instead of the current 404 behavior. The error message should suggest that the user use POST instead.
The text was updated successfully, but these errors were encountered: