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

monaco-editor dependency with a more conservative semver range. #45133

Merged
merged 2 commits into from Sep 11, 2019

Conversation

jloleysens
Copy link
Contributor

@jloleysens jloleysens commented Sep 9, 2019

Summary

TL;DR perhaps we should use ~ instead of ^ for monaco-editor SemVer range.

After playing around with Monaco Editor in Console I installed the latest version in the root package.json as a dependency. I then encountered this bug for 0.18.0. I know for the most part we are safe because yarn.lock locks versions into place despite the SemVer range being specified in package.json but in the case of monaco-editor it may be better to specify a slightly more conservative SemVer range because it's not yet a full major release.

As an aside, later, when monaco is also used in not-x-pack code, we can move the dependency to just the root package.json so that we are not potentially using multiple versions of it?

[UPDATE]
Using selective resolution for @types/react due to version specified in react-monaco-editor being broad.

@jloleysens jloleysens added Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more Team:Code release_note:skip Skip the PR/issue when compiling release notes labels Sep 9, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/es-ui

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-canvas

@elasticmachine
Copy link
Contributor

Pinging @elastic/code

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@cjcenizal cjcenizal left a comment

Choose a reason for hiding this comment

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

The reasoning behind this change makes sense to me and the changes themselves look good. I think we should be proactive about bringing this to the Code team and requiring their approval before merging though, since AFAIK they're the primary consumers of Monaco right now.

@@ -78,6 +78,7 @@
},
"resolutions": {
"**/@types/node": "10.12.27",
"**/@types/react": "16.8.3",
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you explain this change for me?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I added this to the description:

[UPDATE]
Using selective resolution for @types/react due to version specified in react-monaco-editor being broad

@jloleysens jloleysens marked this pull request as ready for review September 11, 2019 08:23
…ditor

* 'master' of github.com:elastic/kibana: (76 commits)
  Upgrade EUI to 13.8.1 (elastic#45052)
  [ML] Add multi metric job wizard test (elastic#45279)
  [SIEM] Inject/apply KQL changed in refresh button (elastic#45065)
  [Graph] Type persistence (elastic#44985)
  Functional tests: convert more test/services to TS (elastic#45176)
  [ML] Fixes display of matching modules in index data visualizer (elastic#45261)
  [Console] Update indentation behaviour (elastic#45249)
  Convert value provided to PhraseValueInput to string to catch Exception (elastic#45259)
  [Region Map] Fix loading default vector map and base layer setting (elastic#43858)
  [ML] Fixing empty time range when cloning jobs (elastic#45286)
  [ML] Fixing wizard validation delay (elastic#45265)
  [Logs UI] Interpret finished analysis jobs as healthy (elastic#45268)
  [Console] SQL template with triple quote in completion (elastic#45248)
  [ML] Data Frames: Cards as links (elastic#45254)
  fix(code/frontend): should show updating instead of cloning when updating (elastic#45238)
  fix(code/frontend): fix document search result from (elastic#45236)
  disable another flaky suite (elastic#45323) (elastic#45330)
  disable flaky suite (elastic#45105)
  skip flaky suite (elastic#43069)
  skip flaky suite (elastic#45089)
  ...
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@jloleysens jloleysens merged commit 78cc334 into elastic:master Sep 11, 2019
@jloleysens jloleysens deleted the lock_monaco_editor branch September 11, 2019 19:39
jloleysens added a commit to jloleysens/kibana that referenced this pull request Sep 11, 2019
jloleysens added a commit that referenced this pull request Sep 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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 Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v7.5.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants