Skip to content

[Index Management] Migrate code editors to Monaco#155598

Merged
sabarasaba merged 3 commits intoelastic:mainfrom
sabarasaba:IM-migrate_code_editors_to_monaco
Apr 25, 2023
Merged

[Index Management] Migrate code editors to Monaco#155598
sabarasaba merged 3 commits intoelastic:mainfrom
sabarasaba:IM-migrate_code_editors_to_monaco

Conversation

@sabarasaba
Copy link
Copy Markdown
Member

Partially addresses: #107215

Summary

This PR removes the dependency this plugin has on ace editor in favour of Monaco. Note that CodeEditor is a kibana wide abstraction built on top of Monaco and located at @kbn/kibana-react-plugin/public.

Migrated to Monaco

  • application/components/shared/components/wizard_steps/step_aliases.tsx
  • application/components/shared/components/wizard_steps/step_settings.tsx

How to test

  1. Start elasticsearch with yarn es snapshot --license=trial -E path.repo=/tmp/es-backups and kibana with yarn start
  2. Navigate to Stack Management -> Index Management -> Index Templates and create a new one
  3. Verify that step 3 and 5 have the Monaco editor
Screenshots

Screenshot 2023-04-24 at 10 25 16
Screenshot 2023-04-24 at 10 24 53

@sabarasaba sabarasaba added chore Feature:Index Management Index and index templates UI Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting v8.8.0 labels Apr 24, 2023
@sabarasaba sabarasaba self-assigned this Apr 24, 2023
@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

Async chunks

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

id before after diff
indexManagement 526.0KB 525.9KB -150.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 16 18 +2
securitySolution 395 398 +3
total +5

Total ESLint disabled count

id before after diff
enterpriseSearch 17 19 +2
securitySolution 475 478 +3
total +5

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

cc @sabarasaba

@sabarasaba sabarasaba marked this pull request as ready for review April 24, 2023 11:00
@sabarasaba sabarasaba requested a review from a team as a code owner April 24, 2023 11:00
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/platform-deployment-management (Team:Deployment Management)

Copy link
Copy Markdown
Contributor

@yuliacech yuliacech left a comment

Choose a reason for hiding this comment

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

Thanks a lot, @sabarasaba!
Changes LGTM, tested locally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting chore Feature:Index Management Index and index templates UI release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// v8.8.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants