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] Fix error markers in editor output #119831
Conversation
Pinging @elastic/kibana-stack-management (Team:Stack 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.
Hey @mibragimov, thanks for having a look at this! From what I could gather disabling the worker will disable the syntax checker from the editor, are we certain this won't change any existing behaviour from the editor? I'm just asking because there's no test coverage for this app and we need to make sure we don't modify any existing functionality. If so, would be nice to add a comment above this line explaining why we're disabling it 🚀
Hey @sabarasaba, I did not notice any difference in existing behavior of the editor output, when the worker is disabled. However, I am not certain that this won't affect anything. I think it needs more testing if we go for this solution. Alternatively, we can hide the element with css. I updated the changes to this. Let me know what you think |
...plugins/console/public/application/containers/editor/legacy/console_editor/editor_output.tsx
Show resolved
Hide resolved
Hi @sabarasaba, Please, ignore the previous comment. There seems to be a simple way to fix this by replacing json mode with hjson which allows to use comments |
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! Tested locally. Issue fixed
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.
code LGTM now! thanks @mibragimov!
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: cc @mibragimov |
* Replace json with hjson Co-authored-by: Muhammad Ibragimov <muhammad.ibragimov@elastic.co> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Replace json with hjson Co-authored-by: Muhammad Ibragimov <muhammad.ibragimov@elastic.co> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Resolve #99083
One way to fix this bug seems to be disabling workers for read-only editor. It get rids of the error markers and does not seem to affect the current behavior of the editor output