Skip to content
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

Merged
merged 4 commits into from Dec 1, 2021

Conversation

mibragimov
Copy link
Contributor

@mibragimov mibragimov commented Nov 29, 2021

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

@mibragimov mibragimov added Feature:Console Dev Tools Console Feature Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more release_note:skip Skip the PR/issue when compiling release notes v7.13.0 auto-backport Deprecated: Automatically backport this PR after it's merged v8.1.0 labels Nov 29, 2021
@mibragimov mibragimov requested review from sabarasaba, alexwizp and a team November 29, 2021 12:24
@mibragimov mibragimov self-assigned this Nov 29, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-stack-management (Team:Stack Management)

Copy link
Member

@sabarasaba sabarasaba left a 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 🚀

@mibragimov mibragimov requested a review from a team as a code owner November 30, 2021 14:13
@mibragimov
Copy link
Contributor Author

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

@alexwizp alexwizp marked this pull request as draft December 1, 2021 10:41
@alexwizp alexwizp marked this pull request as ready for review December 1, 2021 10:41
@mibragimov
Copy link
Contributor Author

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

@alexwizp alexwizp removed the request for review from a team December 1, 2021 10:42
Copy link
Contributor

@alexwizp alexwizp left a 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

Copy link
Member

@sabarasaba sabarasaba left a 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!

@alexwizp alexwizp added backport:skip This commit does not require backporting release_note:fix and removed v7.13.0 auto-backport Deprecated: Automatically backport this PR after it's merged release_note:skip Skip the PR/issue when compiling release notes labels Dec 1, 2021
@mibragimov
Copy link
Contributor Author

@elasticmachine merge upstream

@mibragimov mibragimov enabled auto-merge (squash) December 1, 2021 11:22
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
console 157 158 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
console 366.5KB 372.3KB +5.8KB

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @mibragimov

@mibragimov mibragimov merged commit f9125c1 into elastic:main Dec 1, 2021
TinLe pushed a commit to TinLe/kibana that referenced this pull request Dec 22, 2021
* Replace json with hjson

Co-authored-by: Muhammad Ibragimov <muhammad.ibragimov@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
gbamparop pushed a commit to gbamparop/kibana that referenced this pull request Jan 12, 2022
* Replace json with hjson

Co-authored-by: Muhammad Ibragimov <muhammad.ibragimov@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@mibragimov mibragimov deleted the error-marker branch March 9, 2022 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Console Dev Tools Console Feature Feature:Dev Tools release_note:fix Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Console] Deprecation message triggers inline error marker
6 participants