[ML] Transform: Support multi-line JSON notation in advanced editor#58015
Conversation
|
Pinging @elastic/ml-ui (:ml) |
walterra
left a comment
There was a problem hiding this comment.
Code LGTM, I'd just like to give this a local test too!
...s/transform/public/app/sections/create_transform/components/step_define/step_define_form.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
i wonder if it’s worth making a copy of use_x_json_mode
deep including from other x-pack plugins isn’t recommended, plus watcher isn't long for this world as kibana alerts are on the horizon.
There was a problem hiding this comment.
I agree we should copy the file. The inner imports of that file are more obvious to reimport because they come from the es_ui_shared folder.
|
Noticed the following: Copy pasting multi-line examples with script works now, great! I noticed though when clicking "Apply changes" we auto-enforce code formatting which then makes the multi-line scripts become single-line: I liked the auto-formatting in earlier versions but I think that's not useful here anymore. Do you agree we should disable it? |
a78c952 to
031023a
Compare
|
@elasticmachine merge upstream |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
…lastic#58015) * [ML] use xJsonMode * [ML] remove commented code * [ML] move use_x_json_mode hook, disable json formatting * [ML] mocks for shared_imports * [ML] ts-ignore worker import
…_improve-advanced-settings-save * commit '02efb01c481f9f24d8d707f06dfc68b2fb805001': (43 commits) [Endpoint] Add a flyout to alert list. (elastic#57926) Make sure index pattern has fields before parsing (elastic#58242) Sanitize workpad before sending to API (elastic#57704) [ML] Transform: Support multi-line JSON notation in advanced editor (elastic#58015) [Endpoint] Refactor Management List Tests (elastic#58148) [kbn/optimizer] include bootstrap cache key in optimizer cache key (elastic#58176) Do not refresh color scale on each lookup (elastic#57792) Updating to @elastic/lodash@3.10.1-kibana4 (elastic#54662) Trigger context (elastic#57870) [ML] Transforms: Adds clone feature to transforms list. (elastic#57837) [ML] New Platform server shim: update fields service routes (elastic#58060) [Endpoint] EMT-184: change endpoints to metadata up and down the code base. (elastic#58038) document difference between log record formats (elastic#57798) Expose elasticsearch config schema (elastic#57655) [ui/agg_response/tabify] update types for search/expressions/build_tabular_inspector_data.ts (elastic#58130) [SIEM] Cleans Cypress tests code (elastic#58134) fix: 🐛 make dev server Storybook builds work again (elastic#58188) Prevent core savedObjects plugin from being overridden (elastic#58193) Expose serverBasePath on client-side (elastic#58070) Fix legend sizing on area charts (elastic#58083) ...
…itor (#58015) (#58239) * [ML] Transform: Support multi-line JSON notation in advanced editor (#58015) * [ML] use xJsonMode * [ML] remove commented code * [ML] move use_x_json_mode hook, disable json formatting * [ML] mocks for shared_imports * [ML] ts-ignore worker import * [ML] remove unused imports
…-out-of-legacy * 'master' of github.com:elastic/kibana: [SIEM] [Case] Enable case by default. Snake to camel on UI (elastic#57936) [File upload] Update remaining File Upload dependencies for NP migration (elastic#58128) Use EuiTokens for ES field types (elastic#57911) Added UI support for the default action group for Alert Type Model (elastic#57603) force savedObject API consumers to define SO type explicitly (elastic#58022) Update dependency @elastic/charts to ^17.1.1 (elastic#57634) [Endpoint] Add a flyout to alert list. (elastic#57926) Make sure index pattern has fields before parsing (elastic#58242) Sanitize workpad before sending to API (elastic#57704) [ML] Transform: Support multi-line JSON notation in advanced editor (elastic#58015) [Endpoint] Refactor Management List Tests (elastic#58148) [kbn/optimizer] include bootstrap cache key in optimizer cache key (elastic#58176) Do not refresh color scale on each lookup (elastic#57792) Updating to @elastic/lodash@3.10.1-kibana4 (elastic#54662) Trigger context (elastic#57870) [ML] Transforms: Adds clone feature to transforms list. (elastic#57837) [ML] New Platform server shim: update fields service routes (elastic#58060) [Endpoint] EMT-184: change endpoints to metadata up and down the code base. (elastic#58038)
Fixes regression introduced by #58015 to correctly initialize the transform wizard advanced editor with the current configuration.
Fixes regression introduced by elastic#58015 to correctly initialize the transform wizard advanced editor with the current configuration.


Summary
Resolves #41870. Provides
XJsonModetoEuiCodeEditorwhich allows indenting painless code wrapped with""".Checklist