Skip to content

Enhancement - EUICodeEditor for Visualize JSON - #58679

Merged
ThomThomson merged 15 commits into
elastic:masterfrom
ThomThomson:enhancement/jsonRawCodeEditor
Mar 10, 2020
Merged

ThomThomson merged 15 commits into
elastic:masterfrom
ThomThomson:enhancement/jsonRawCodeEditor

Conversation

@ThomThomson

@ThomThomson ThomThomson commented Feb 26, 2020 •

Copy link
Copy Markdown
Contributor

Summary

Replaced the text area for the JSON input in the advanced section of the visualize editor. with the EUI code editor.

closes #56488

Screen Shot 2020-02-28 at 11 44 03 AM

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@ThomThomson ThomThomson changed the title Enhancement - Enhancement - EUICodeEditor for Visualize JSON Feb 26, 2020
@ThomThomson
ThomThomson marked this pull request as ready for review March 2, 2020 18:32
@ThomThomson
ThomThomson requested a review from a team as a code owner March 2, 2020 18:32
@ThomThomson ThomThomson added Feature:Vis Editor Visualization editor issues v7.7.0 v8.0.0 Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// labels Mar 2, 2020
@elasticmachine

Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@ThomThomson

Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@maryia-lapata maryia-lapata left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall the changes look great.
I left some comments.

@maryia-lapata maryia-lapata left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
with small comments

@ThomThomson

Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@kibanamachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

History

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

@lukeelmers lukeelmers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

App arch code changes LGTM -- Thanks for taking the time to do this cleanup!

isStringType,
isType,
isValidInterval,
isValidJson,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had moved isValidJson into the default editor in #59605 since it is the only place where it is currently being used. Since this PR will likely merge first I'll go back and adjust #59605 accordingly.

@ThomThomson
ThomThomson merged commit 06999ec into elastic:master Mar 10, 2020
gmmorris added a commit to gmmorris/kibana that referenced this pull request Mar 10, 2020
* master:
  Add a retry to dashboard test for a sometimes slow async operation (elastic#59600)
  [Endpoint] Sample data generator for endpoint app (elastic#58936)
  [Vis Editor] Refactoring metrics axes (elastic#59135)
  [DOCS] Changed Discover app to Discover (elastic#59769)
  [Metrics Alerts] Add support for search query and groupBy on alerts (elastic#59388)
  Enhancement - EUICodeEditor for Visualize JSON  (elastic#58679)
  [ML] Transforms: Data grid fixes. (elastic#59538)
  [SIEM] Fix and consolidate handling of error responses in the client (elastic#59438)
  [Maps] convert tooltip classes to typescript (elastic#59589)
  [ML] Functional tests - re-activate date_nanos test (elastic#59649)
  Move canvas to use NP Expressions service (elastic#58387)
  Update misc dependencies (elastic#59542)
  [Unit Testing] Configure react-testing-library queries to use Kibana's data-test-subj instead of default data-testid (elastic#59445)
  [Console] Remove unused code (elastic#59554)
  [Logs / Metrics UI] Link handling / stop page reloads (elastic#58478)
  Add SavedObject management section registration in core  (elastic#59291)
@kibanamachine

Copy link
Copy Markdown
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create backports run node scripts/backport --pr 58679 or prevent reminders by adding the backport:skip label.

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Mar 11, 2020
ThomThomson added a commit to ThomThomson/kibana that referenced this pull request Mar 11, 2020
Switched out the textfield in the advanced JSON editor for the EUI code editor component. removed legacy import isValidJson in favor of using Ace Editor's default json validation.
@lizozom

lizozom commented Mar 11, 2020

Copy link
Copy Markdown
Contributor

Can these failures be related to this PR?
https://github.com/elastic/kibana/pull/59872/checks?check_run_id=501113961 @ThomThomson

@kibanamachine

Copy link
Copy Markdown
Contributor

Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.

lukeelmers added a commit to lukeelmers/kibana that referenced this pull request Mar 12, 2020
ThomThomson added a commit that referenced this pull request Mar 13, 2020
Switched out the textfield in the advanced JSON editor for the EUI code editor component. removed legacy import isValidJson in favor of using Ace Editor's default json validation.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Mar 13, 2020
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
Switched out the textfield in the advanced JSON editor for the EUI code editor component. removed legacy import isValidJson in favor of using Ace Editor's default json validation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Vis Editor Visualization editor issues release_note:enhancement Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v7.7.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use code editor for json input

9 participants