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

Add folding in kbn-monaco and update some viewers #90152

Merged
merged 4 commits into from
Feb 9, 2021

Conversation

VladLasitsa
Copy link
Contributor

@VladLasitsa VladLasitsa commented Feb 3, 2021

Summary

Monaco-editor gives possibility for folding but this haven't worked for our CodeEditor. I added import for folding in @kbn/monaco so that fix it. Also I updated viewers (used 'xjson' language instead of 'json' because we don't load json language in @kbn/monaco) which we use in vega-debug and requests in inspector so that json will be highlighted.

Before

vega-map-spec-old

vega-map-spec-old1

After

vega-map-spec-new

vega-map-spec-new1

How to test it:

  • go to the 'inspector' in visualizations
  • choose 'requests' in right-top selector
  • choose 'request' or 'response' tab.

Release notes

Adds possibility to folding in CodeEditor. Updates 'spec viewer' in vega and 'request/response code viewer' in inspector.

@VladLasitsa VladLasitsa changed the title Add folding in kb-monaco and update some viewers Add folding in kbn-monaco and update some viewers Feb 3, 2021
@VladLasitsa
Copy link
Contributor Author

@elasticmachine merge upstream

@VladLasitsa VladLasitsa self-assigned this Feb 4, 2021
@VladLasitsa VladLasitsa added v7.12.0 v8.0.0 Team:Visualizations Visualization editors, elastic-charts and infrastructure release_note:enhancement labels Feb 4, 2021
@alexwizp alexwizp marked this pull request as ready for review February 4, 2021 09:17
@alexwizp alexwizp requested a review from a team as a code owner February 4, 2021 09:17
@alexwizp alexwizp requested a review from a team February 4, 2021 09:17
@alexwizp alexwizp requested a review from a team as a code owner February 4, 2021 09:17
@elasticmachine
Copy link
Contributor

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

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! Thank you

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.

Haven't tested locally. Rubber-stamping the one-line change to kbn-monaco to unblock ES UI as codeowner.

Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

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

LGTM

@VladLasitsa
Copy link
Contributor Author

@elasticmachine merge upstream

@alexwizp
Copy link
Contributor

alexwizp commented Feb 7, 2021

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 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
inspector 18.5KB 18.6KB +118.0B
visTypeVega 2.5MB 2.5MB +120.0B
total +238.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
inspector 44.1KB 44.1KB +69.0B
visTypeVega 57.4KB 57.4KB +69.0B
total +138.0B
Unknown metric groups

@kbn/ui-shared-deps asset size

id before after diff
css 677.2KB 680.5KB +3.4KB
kbn-ui-shared-deps.@elastic.js 2.4MB 2.4MB +2.0B
kbn-ui-shared-deps.js 7.0MB 7.0MB +31.6KB
total +34.9KB

History

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

Copy link
Contributor

@Dosant Dosant left a comment

Choose a reason for hiding this comment

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

Tested in Discover and Dashboard. LGTM

@VladLasitsa VladLasitsa merged commit cbe5f0d into elastic:master Feb 9, 2021
VladLasitsa added a commit to VladLasitsa/kibana that referenced this pull request Feb 9, 2021
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
jloleysens added a commit to jloleysens/kibana that referenced this pull request Feb 9, 2021
…timeline-and-rollover-info

* 'master' of github.com:elastic/kibana: (47 commits)
  [Fleet] Use TS project references (elastic#87574)
  before/beforeEach clean up (elastic#90663)
  [Vega] user should be able to set a specific tilemap service using the mapStyle property (elastic#88440)
  [Security Solution][Case] ServiceNow SIR Connector (elastic#88655)
  [Search Sessions] Enable extend from management (elastic#90558)
  [ILM] Delete phase redesign (rework) (elastic#90291)
  [APM-UI][E2E] use withGithubStatus step (elastic#90651)
  Add folding in kb-monaco and update some viewers (elastic#90152)
  [Grok Debugger] Changed test to wait for grok debugger container to exist to fix test flakiness (elastic#90543)
  Strongly typed EUI theme for styled-components (elastic#90106)
  Fix vega renovate label (elastic#90591)
  [Uptime] Migrate to TypeScript project references (elastic#90510)
  [Monitoring] Migrate data source for legacy alerts to monitoring data directly (elastic#87377)
  [Upgrade Assistant] Add A11y Tests (elastic#90265)
  [Time to Visualize] Adds functional tests for linking/unlinking panel from embeddable library (elastic#89612)
  [dev-utils/ship-ci-stats] fail when CI stats is down (elastic#90678)
  chore(NA): remove write permissions on Bazel remote cache for PRs (elastic#90652)
  chore(NA): move bazel workspace status from bash script into nodejs executable (elastic#90560)
  Use default ES distribution for functional tests (elastic#88737)
  [Alerts] Jira: Disallow labels with spaces (elastic#90548)
  ...

# Conflicts:
#	x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/components/timeline/timeline.tsx
#	x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/lib/absolute_timing_to_relative_timing.test.ts
#	x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/lib/absolute_timing_to_relative_timing.ts
VladLasitsa added a commit that referenced this pull request Feb 10, 2021
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@timroes timroes added the Feature:Inspector Inspector infrastructure and implementations label Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Inspector Inspector infrastructure and implementations release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.12.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants