-
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
[Console] Fixes Elasticsearch doc VIEW IN CONSOLE will clean local Kibana console form history. #127430
Conversation
@@ -105,7 +105,7 @@ function EditorUI({ initialTextValue }: EditorProps) { | |||
|
|||
const loadBufferFromRemote = (url: string) => { | |||
const coreEditor = editor.getCoreEditor(); | |||
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove spaces, because Checks has failed
@@ -121,7 +121,7 @@ function EditorUI({ initialTextValue }: EditorProps) { | |||
|
|||
// Fire and forget. | |||
$.ajax(loadFrom).done(async (data) => { | |||
await editor.update(data, true); | |||
await editor.update(`${initialTextValue }\n ${data}` , true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, remove empty space after initialTextValue
@hro-maker please make this PR green, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with green CI.
Tested in chrome. Console history is saved when opening new tab.
@hro-maker please remove empty space before comma ${data}' ,
to fix CI.
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before merging, please, wait for the feedback from me this time) I have worries about that, autocomplete is going to be broken after those changes. Need to check it) Thanks)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Autocomplete is working. Thanks for the changes Waiting for the fixes, which Maxim has requested, and then, Code LGTM 😃
…o Console-history-bug
@elasticmachine merge upstream |
Pinging @elastic/platform-deployment-management (Team:Deployment Management) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this issue @hro-maker! changes lgtm, tested locally
@elasticmachine merge upstream |
expected head sha didn’t match current head ref. |
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @hro-maker |
Closes: #12053
Summary
issue 1.click any command example's VIEW IN CONSOLE in Elasticsearch doc, such as https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-index.html
![Screenshot 2022-03-14 at 12 18 18](https://user-images.githubusercontent.com/69071631/158132298-02a9fd83-cfc6-4602-92e7-20390941dca9.png)
the link is http://localhost:5601/app/kibana#/dev_tools/console?load_from=https://www.elastic.co/guide/en/elasticsearch/reference/current/snippets/indices-delete-index/1.json
2.then all my kibana's console history gone
if we have opened some tab
for example:
and then if we open new tab with link similar this one
http://localhost:5620/app/dev_tools#/console?load_from=https://www.elastic.co/guide/en/elasticsearch/reference/current/snippets/2121.console
Screen:
before
![Screenshot 2022-03-14 at 12 17 25](https://user-images.githubusercontent.com/69071631/158132474-868562a4-6980-4782-8de1-42fb013d2f43.png)
now