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

Fix conflicts 25809 #11

Merged
merged 96 commits into from
Nov 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
354d7cc
[ML] Add checkbox to enable model plot in Advanced job wizard (#25468)
alvarezmelissa87 Nov 16, 2018
df8514f
[kbn/es] add `--download` flag to snapshot command to warm the cache …
Nov 16, 2018
f7832a5
[ftr] add ability to get included/excluded test counts (#25760)
Nov 16, 2018
b0d11e5
[kbn/test] add support for using test groups (#25776)
Nov 17, 2018
01033c2
build bootstrap cache into ci image
Nov 17, 2018
6bebea4
Fix agent status lookup (#25557)
jasonrhodes Nov 17, 2018
d188597
Swallows errors on ml lookups that we know might fail (#25783)
jasonrhodes Nov 17, 2018
2ba0162
[ftr] only stub custom providers
Nov 17, 2018
85a6ec5
[ML] Fixes fill of minor markers in Single Metric Viewer (#25816)
peteharverson Nov 17, 2018
d319bd3
[ci] skip build in packer_cache.sh, run optimizer instead, avoid timeout
Nov 18, 2018
cf4996e
Fix vertical scroll on long legends (#23806)
markov00 Nov 19, 2018
43fdd0f
Feature/translate monitoring elasticsearch and kibana (part_ 1) (#24717)
Nox911 Nov 19, 2018
2257e06
[I18n] Translate Timelion - top navigation menu (#25801)
LeanidShutau Nov 19, 2018
0c6e619
[Monitoring] Adding security note about first-time setup (#25823)
ycombinator Nov 19, 2018
7e30709
[ML] Use ml as a prefix for the ML SCSS variables (#25858)
peteharverson Nov 19, 2018
a5e096e
Remove lab stage for visualizations (#25702)
timroes Nov 19, 2018
cc07aa2
[ML] Edits to fields used in auditbeat module configurations (#25866)
peteharverson Nov 19, 2018
1d7d603
Fixes loading component (#25819)
cqliu1 Nov 19, 2018
7086388
Feat: Support url params (#25828)
w33ble Nov 19, 2018
0958e1d
add comment about docvalue for date fields in getComputedFields (#25725)
nreese Nov 19, 2018
a5076b5
Vis public UI LESS to SASS (#25333)
cchaos Nov 19, 2018
6436aff
[ci/packer] remove optimize cache, it doesn't really help
Nov 19, 2018
a3ecbde
Swap jstimezonedetect with moment.tz.guess (#21800)
jbudz Nov 19, 2018
992daf5
[kbn/pm] Implement --prefer-offline flag (#25840)
Nov 19, 2018
7baea1d
Feature/dashboard translations (#24328)
pavel06081991 Nov 20, 2018
cf64825
Translate security/roles component (#23984)
tibmt Nov 20, 2018
0d310d3
[Tools] Exclude ts type files from i18n_check (#25799)
maryia-lapata Nov 20, 2018
43b1d00
move canvas interpreter to OSS (#25711)
ppisljar Nov 20, 2018
40960f9
[Infra UI] Refactor 'capabilites' to 'metadata'. (#25580)
skh Nov 20, 2018
973640c
Discover translations (#24079)
tibmt Nov 20, 2018
8104a02
translate InfraOps visualization component (Part 1 - folder pages) (#…
tibmt Nov 20, 2018
076e00b
[kbn-interpreter] ignore plugin build directory
Nov 20, 2018
682c50c
[APM] adds telemetry to APM (#25513)
ogupte Nov 20, 2018
7fbac45
[DOCS]fix typo in link to source code (#25968)
schersh Nov 20, 2018
70788a9
[es] remove alpha1 suffix (#25763)
jbudz Nov 20, 2018
88af88c
[chrome/breadcrumbs] migrate to the new platform (#25914)
Nov 20, 2018
ca77837
[babel-register] ignore built canvas plugins (#25913)
Nov 20, 2018
fad8d0c
[ci][ftr][kbn/test] split up CI jobs (#25838)
Nov 20, 2018
ff49a1c
[ci] load the boostrap_cache baked into CI images (#25841)
Nov 20, 2018
e8e05d8
Fix git dir discovery into the precommit hook setup (#25870)
mistic Nov 21, 2018
415c61b
apm: Update Kibana Index Pattern (#25929)
simitt Nov 21, 2018
360dd78
remove extra line from i18nrc.json
tibmt Nov 21, 2018
9ca8cff
[ML] Fixes font size regressions following less to sass conversion (#…
peteharverson Nov 21, 2018
ef4fa62
Feature/translate monitoring server (#25195)
Nox911 Nov 21, 2018
ac9c375
[ML] Fix cleanup of mlAnomaliesTableService listeners in Time Series …
walterra Nov 21, 2018
a3602f6
[i18n] Translations for Monitoring: Beats (#24976)
maryia-lapata Nov 21, 2018
7e57c10
[pageObjects/visualize] use retry to avoid stale element references (…
Nov 21, 2018
42feaaa
removing indexPattern from vega/tsvb/timelion request handler (#26007)
ppisljar Nov 21, 2018
1b3d6ae
[ML] Ensures jobs from saved searches are cloned in advanced wizard (…
peteharverson Nov 21, 2018
453e1f1
Changes APM home page to use route-based tabs (#25891)
jasonrhodes Nov 21, 2018
f56579d
[DOCS] Adds screenshot for monitoring jobs (#25904)
lcawl Nov 21, 2018
4d7c141
Test: canvas functional smoke test (#25262)
w33ble Nov 21, 2018
c8647f1
Add typings for new tags API (#26027)
timroes Nov 21, 2018
b3ef0c4
Fix: IE11 SVG elements have neither classList nor parentElement... (#…
monfera Nov 21, 2018
9ea7720
[ML] Ensure Anomaly Explorer and Single View do not hang by fixing Ty…
alvarezmelissa87 Nov 21, 2018
2b6769a
[Layout Engine] PC friendly element resize modifier keys; stuck key f…
monfera Nov 21, 2018
a6c6706
test: add tags to canvas functional suite (#26046)
w33ble Nov 21, 2018
7ae0d28
[canvas] skip functional tests for now
Nov 21, 2018
4f1ca7e
Fix: revert and enable canvas tests (#26054)
w33ble Nov 21, 2018
bdcccfb
[canvas/plugins] enable typescript support (#26050)
Nov 22, 2018
5e247f5
fix(NA): remove mutex from kbn bootstrap script as all jobs are runni…
mistic Nov 22, 2018
854757c
pass global filters from editor (#26009)
ppisljar Nov 22, 2018
8f88091
dont use schemas in aggconfigs to output dsl (#26010)
ppisljar Nov 22, 2018
bcb5ee0
Add en for numeral locale setting (#25948)
timroes Nov 22, 2018
acff23e
[APM] Migrate to Typescript and refactor backend apis (#25848)
sorenlouv Nov 22, 2018
43d4c22
[I18n] Translate Graph (#23987)
LeanidShutau Nov 22, 2018
8c14c25
New visualization type selection (#23833)
timroes Nov 22, 2018
e36767a
Move buildEsQuery to a package (#23345)
lukasolson Nov 22, 2018
f981cdf
remove x-pack/yarn.lock, accidentally added back in #23345
Nov 22, 2018
4b0893a
[babel-register] ignore packages directory when running from source (…
Nov 23, 2018
433c324
[bootstrap] run babel-cli with --quiet (#26097)
Nov 23, 2018
f82d732
Ref/canvas interpreter2 oss take5 (#26068)
ppisljar Nov 23, 2018
f19945a
Feature/translate monitoring server(part_2) (#25402)
Nox911 Nov 23, 2018
d58addc
Feature/translate monitoring apm and chart (#25063)
Nox911 Nov 23, 2018
b0a107f
show drop partial buckets option (#25520)
ppisljar Nov 23, 2018
56e27e6
Fix quotes in kbn-i18n build scripts (#26120)
LeanidShutau Nov 23, 2018
445ac2f
[ML] Adds support for kuery to job wizards (#26094)
peteharverson Nov 23, 2018
3717ff8
[Typescript]: Move elastic/eui typings to single file
sebelga Nov 23, 2018
2b10887
fix(NA): prettier throw rule error ocurring on master. (#26071)
mistic Nov 23, 2018
18ae6a4
[dev/build] use more performant copy implementation (#26109)
Nov 23, 2018
f90f534
Controls Visualization - Dates shown in milliseconds AFTER dates sele…
nreese Nov 23, 2018
54f1a73
[@kbn/interpreter] improve build/packaging (#26096)
Nov 23, 2018
6efd51e
readme: remove erroneous snapshot builds link
epixa Nov 25, 2018
28556bf
[i18n] Translate Visual Builder(part_2) (#25800)
Nox911 Nov 26, 2018
6b89748
Translations for Visual Builder (part 1) (#23988)
maryia-lapata Nov 26, 2018
876d7c3
translate InfraOps visualization component (Part 4 - server part) (#2…
tibmt Nov 26, 2018
cc7070d
[i18n] Translate Visual Builder(part_3) (#25923)
Nox911 Nov 26, 2018
8f871f9
[i18n] Translate Agg_types(part_1) (#24259)
Nox911 Nov 26, 2018
13eccd5
add timestamp to inspector request stats (#25667)
nreese Nov 26, 2018
a3414c9
[DOCS] Adds screenshots for CCR monitoring (#25979)
lcawl Nov 26, 2018
9ded760
kbn-interpreter package should not import from ui (#26161)
ppisljar Nov 26, 2018
cf04d17
Restructure user profile for granular app privs (#23750)
legrego Nov 5, 2018
aae0858
Introducing uiCapabilities, removing config providers & user profile …
legrego Nov 14, 2018
c4f7e7d
GAP - Actions Restructured and Extensible (#25347)
kobelb Nov 16, 2018
60a2e70
update snapshot
legrego Nov 26, 2018
a624025
Merge branch 'granular-app-privileges' into pr/25809
legrego Nov 27, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
25 changes: 22 additions & 3 deletions .ci/jobs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,26 @@
JOB:
- selenium
- intake
- x-pack
- kibana-intake
- x-pack-intake
# make sure all kibana-ciGRoups are listed in tasks/function_test_groups.js
- kibana-ciGroup1
- kibana-ciGroup2
- kibana-ciGroup3
- kibana-ciGroup4
- kibana-ciGroup5
- kibana-ciGroup6
- kibana-ciGroup7
- kibana-ciGroup8
- kibana-ciGroup9
- kibana-ciGroup10
- kibana-ciGroup11
- kibana-ciGroup12
# make sure all x-pack-ciGroups are listed in test/scripts/jenkins_xpack_ci_group.sh
- x-pack-ciGroup1
- x-pack-ciGroup2
- x-pack-ciGroup3
- x-pack-ciGroup4
- x-pack-ciGroup5
- x-pack-ciGroup6

# `~` is yaml for `null`
exclude: ~
13 changes: 13 additions & 0 deletions .ci/packer_cache.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
#!/usr/bin/env bash

# run setup script that gives us node, yarn, and bootstraps the project
source "src/dev/ci_setup/setup.sh";

# cache es snapshots
node scripts/es snapshot --download-only;

# archive cacheable directories
mkdir -p "$HOME/.kibana/bootstrap_cache"
tar -cf "$HOME/.kibana/bootstrap_cache/master.tar" \
node_modules \
packages/*/node_modules \
x-pack/node_modules \
x-pack/plugins/*/node_modules \
.es;
17 changes: 12 additions & 5 deletions .ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,23 @@ set -e
# move to Kibana root
cd "$(dirname "$0")/.."

./src/dev/ci_setup/load_bootstrap_cache.sh;

case "$JOB" in
"selenium")
./test/scripts/jenkins_selenium.sh
;;
"intake")
kibana-intake)
./test/scripts/jenkins_unit.sh
;;
"x-pack")
kibana-ciGroup*)
export CI_GROUP="${JOB##kibana-ciGroup}"
./test/scripts/jenkins_ci_group.sh
;;
x-pack-intake)
./test/scripts/jenkins_xpack.sh
;;
x-pack-ciGroup*)
export CI_GROUP="${JOB##x-pack-ciGroup}"
./test/scripts/jenkins_xpack_ci_group.sh
;;
*)
echo "JOB '$JOB' is not implemented."
exit 1
Expand Down
6 changes: 3 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ bower_components
/src/fixtures/vislib/mock_data
/src/ui/public/angular-bootstrap
/src/ui/public/flot-charts
/src/ui/public/kuery/ast/kuery.js
/src/ui/public/kuery/ast/legacy_kuery.js
/test/fixtures/scenarios
/src/core_plugins/console/public/webpackShims
/src/core_plugins/console/public/tests/webpackShims
Expand All @@ -19,6 +17,8 @@ bower_components
/packages/*/target
/packages/eslint-config-kibana
/packages/eslint-plugin-kibana-custom
/packages/kbn-es-query/src/kuery/ast/kuery.js
/packages/kbn-es-query/src/kuery/ast/legacy_kuery.js
/packages/kbn-pm/dist
/packages/kbn-plugin-generator/sao_template/template
/packages/kbn-ui-framework/dist
Expand All @@ -27,7 +27,7 @@ bower_components
/x-pack/coverage
/x-pack/build
/x-pack/plugins/**/__tests__/fixtures/**
/x-pack/plugins/canvas/common/lib/grammar.js
/packages/kbn-interpreter/src/common/lib/grammar.js
/x-pack/plugins/canvas/canvas_plugin
/x-pack/plugins/canvas/canvas_plugin_src/lib/flot-charts
**/*.js.snap
Expand Down
4 changes: 3 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ module.exports = {
* Files that ARE NOT allowed to use devDependencies
*/
{
files: ['packages/kbn-ui-framework/**/*', 'x-pack/**/*'],
files: ['packages/kbn-ui-framework/**/*', 'x-pack/**/*', 'packages/kbn-interpreter/**/*'],
rules: {
'import/no-extraneous-dependencies': [
'error',
Expand All @@ -124,6 +124,8 @@ module.exports = {
'packages/kbn-ui-framework/generator-kui/**/*',
'packages/kbn-ui-framework/Gruntfile.js',
'packages/kbn-es/src/**/*',
'packages/kbn-interpreter/tasks/**/*',
'packages/kbn-interpreter/src/plugin/**/*',
'x-pack/{dev-tools,tasks,scripts,test,build_chromium}/**/*',
'x-pack/**/{__tests__,__test__,__jest__,__fixtures__,__mocks__}/**/*',
'x-pack/**/*.test.js',
Expand Down
10 changes: 9 additions & 1 deletion .i18nrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,17 @@
"tableVis": "src/core_plugins/table_vis",
"regionMap": "src/core_plugins/region_map",
"statusPage": "src/core_plugins/status_page",
"tagCloud": "src/core_plugins/tagcloud",
"tagCloud": "src/core_plugins/tagcloud",
"tileMap": "src/core_plugins/tile_map",
"timelion": "src/core_plugins/timelion",
"tsvb": "src/core_plugins/metrics",
"tagCloud": "src/core_plugins/tagcloud",
"tsvb": "src/core_plugins/metrics",
"xpack.graph": "x-pack/plugins/graph",
"xpack.grokDebugger": "x-pack/plugins/grokdebugger",
"xpack.idxMgmt": "x-pack/plugins/index_management",
"xpack.infra": "x-pack/plugins/infra",
"xpack.licenseMgmt": "x-pack/plugins/license_management",
"xpack.monitoring": "x-pack/plugins/monitoring",
"xpack.rollupJobs": "x-pack/plugins/rollup",
Expand All @@ -25,6 +31,8 @@
},
"exclude": [
"src/ui/ui_render/bootstrap/app_bootstrap.js",
"src/ui/ui_render/ui_render_mixin.js"
"src/ui/ui_render/ui_render_mixin.js",
"x-pack/plugins/infra/public/utils/loading_state/loading_result.ts",
"x-pack/plugins/infra/server/lib/domains/log_entries_domain/log_entries_domain.ts"
]
}
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Kibana is your window into the [Elastic Stack](https://www.elastic.co/products).
- [Getting Started](#getting-started)
- [Using a Kibana Release](#using-a-kibana-release)
- [Building and Running Kibana, and/or Contributing Code](#building-and-running-kibana-andor-contributing-code)
- [Snapshot Builds](#snapshot-builds)
- [Documentation](#documentation)
- [Version Compatibility with Elasticsearch](#version-compatibility-with-elasticsearch)
- [Questions? Problems? Suggestions?](#questions-problems-suggestions)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ You should also register the visualization with `VisTypesRegistryProvider`.

["source","js"]
-----------
import { CATEGORY } from 'ui/vis/vis_category';
import { VisFactoryProvider } from 'ui/vis/vis_factory';
import { VisTypesRegistryProvider } from 'ui/registry/vis_types';

Expand All @@ -43,7 +42,6 @@ const MyNewVisType = (Private) => {
title: 'My New Vis',
icon: 'my_icon',
description: 'Cool new chart',
category: CATEGORY.OTHER
...
});
}
Expand All @@ -59,7 +57,7 @@ The list of common parameters:
- *image*: instead of an icon you can provide a SVG image (imported)
- *legacyIcon*: (DEPRECATED) <string> provide a class name (e.g. for a font awesome icon)
- *description*: description of your visualization as shown in kibana
- *category*: the category your visualization falls into (one of `ui/vis/vis_category` values)
- *hidden*: <bool> if set to true, will hide the type from showing up in the visualization wizard
- *visConfig*: object holding visualization parameters
- *visConfig.defaults*: object holding default visualization configuration
- *visualization*: A constructor function for a Visualization.
Expand All @@ -71,8 +69,8 @@ The list of common parameters:
- *options.showQueryBar*: <bool> show or hide query bar (defaults to true)
- *options.showFilterBar*: <bool> show or hide filter bar (defaults to true)
- *options.showIndexSelection*: <bool> show or hide index selection (defaults to true)
- *stage*: <string> Set this to "experimental" or "labs" to mark your visualization as experimental.
Labs visualizations can also be disabled from the advanced settings. (defaults to "production")
- *stage*: <string> Set this to "experimental" to mark your visualization as experimental.
Experimental visualizations can also be disabled from the advanced settings. (defaults to "production")
- *feedbackMessage*: <string> You can provide a message (which can contain HTML), that will be appended
to the experimental notification in visualize, if your visualization is experimental or in lab mode.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ The returned `EmbeddedVisualizeHandler` itself has the following methods and pro
- `removeRenderCompleteListener(listener)`: removes an event listener from the handler again

You can find the detailed `EmbeddedVisualizeHandler` documentation in its
{repo}blob/{branch}/src/ui/public/visualize/loader/embedded_visualize_handler.js[source code].
{repo}blob/{branch}/src/ui/public/visualize/loader/embedded_visualize_handler.ts[source code].
32 changes: 32 additions & 0 deletions docs/monitoring/elasticsearch-details.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,35 @@ image::monitoring/images/monitoring-index-advanced.png["Elasticsearch Index Adva

The Advanced index view can be used to diagnose issues that generally involve
more advanced knowledge of {es}, such as wasteful index memory usage.

[float]
[[jobs-page]]
==== Jobs

To view {ml} job metrics, click **Jobs**. For each job in your cluster, it shows
information such as its status, the number of records processed, the size of the
model, the number of forecasts, and the node that runs the job.

image::monitoring/images/monitoring-jobs.png["Machine learning jobs",link="images/monitoring-jobs.png"]

[float]
[[ccr-overview-page]]
==== CCR

beta[]

To view {ccr} metrics, click **CCR**. For each follower index on the cluster, it
shows information such as the leader index, an indication of how much the
follower index is lagging behind the leader index, the last fetch time, the
number of operations synced, and error messages. If you select a follower index,
you can view the same information for each shard. For example:

image::monitoring/images/monitoring-ccr.png["Cross-cluster replication",link="images/monitoring-ccr.png"]

If you select a shard, you can see graphs for the fetch and operation delays.
You can also see advanced information, which contains the results from the
{ref}/ccr-get-follow-stats.html[get follower stats API]. For example:

image::monitoring/images/monitoring-ccr-shard.png["Cross-cluster replication shard details",link="images/monitoring-ccr-shard.png"]

For more information, see {stack-ov}/xpack-ccr.html[Cross-cluster replication].
Binary file added docs/monitoring/images/monitoring-ccr-shard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/monitoring/images/monitoring-ccr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/monitoring/images/monitoring-jobs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions docs/settings/monitoring-settings.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
++++

By default, the Monitoring application is enabled, but data collection
is disabled. When you first start {kib} monitoring, you will be prompted to
enable data collection.
is disabled. When you first start {kib} monitoring, you are prompted to
enable data collection. If you are using {security}, you must be
signed in as a user with the `cluster:manage` privilege to enable
data collection. The built-in `superuser` role has this privilege and the
built-in `elastic` user has this role.

You can adjust how monitoring data is
collected from {kib} and displayed in {kib} by configuring settings in the
Expand Down
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,12 @@
"@kbn/babel-preset": "1.0.0",
"@kbn/config-schema": "1.0.0",
"@kbn/datemath": "5.0.0",
"@kbn/es-query": "1.0.0",
"@kbn/i18n": "1.0.0",
"@kbn/pm": "1.0.0",
"@kbn/test-subj-selector": "0.2.1",
"@kbn/ui-framework": "1.0.0",
"@kbn/interpreter": "1.0.0",
"JSONStream": "1.1.1",
"abortcontroller-polyfill": "^1.1.9",
"angular": "1.6.9",
Expand Down Expand Up @@ -145,7 +147,6 @@
"js-yaml": "3.4.1",
"json-stringify-pretty-compact": "1.0.4",
"json-stringify-safe": "5.0.1",
"jstimezonedetect": "1.0.5",
"leaflet": "1.0.3",
"leaflet-draw": "0.4.10",
"leaflet-responsive-popup": "0.2.0",
Expand Down Expand Up @@ -198,6 +199,8 @@
"rxjs": "^6.2.1",
"script-loader": "0.7.2",
"semver": "^5.5.0",
"socket.io": "^2.1.1",
"stream-stream": "^1.2.6",
"style-loader": "0.19.0",
"tar": "2.2.0",
"tinygradient": "0.3.0",
Expand Down Expand Up @@ -244,7 +247,7 @@
"@types/boom": "^7.2.0",
"@types/chance": "^1.0.0",
"@types/classnames": "^2.2.3",
"@types/d3": "^5.0.0",
"@types/d3": "^3.5.41",
"@types/dedent": "^0.7.0",
"@types/del": "^3.0.1",
"@types/elasticsearch": "^5.0.26",
Expand All @@ -258,6 +261,7 @@
"@types/hapi": "^17.0.18",
"@types/has-ansi": "^3.0.0",
"@types/hoek": "^4.1.3",
"@types/humps": "^1.1.2",
"@types/jest": "^23.3.1",
"@types/joi": "^13.4.2",
"@types/jquery": "^3.3.6",
Expand Down Expand Up @@ -384,4 +388,4 @@
"node": "8.11.4",
"yarn": "^1.10.1"
}
}
}
2 changes: 1 addition & 1 deletion packages/kbn-datemath/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"typings": "target/index.d.ts",
"scripts": {
"build": "babel src --out-dir target --copy-files",
"kbn:bootstrap": "yarn build",
"kbn:bootstrap": "yarn build --quiet",
"kbn:watch": "yarn build --watch"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/kbn-dev-utils/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@
*/

export * from './src/tooling_log';
export * from './src/serializers';
3 changes: 2 additions & 1 deletion packages/kbn-dev-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"private": true,
"scripts": {
"build": "babel src --out-dir target",
"kbn:bootstrap": "yarn build"
"kbn:bootstrap": "yarn build --quiet",
"kbn:watch": "yarn build --watch"
},
"dependencies": {
"chalk": "^2.4.1",
Expand Down
1 change: 1 addition & 0 deletions packages/kbn-dev-utils/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@

export { withProcRunner } from './proc_runner';
export { ToolingLog, ToolingLogTextWriter, pickLevelFromFlags } from './tooling_log';
export { createAbsolutePathSerializer } from './serializers';
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

export function createAbsolutePathSerializer(
rootPath: string
): { print(...args: any[]): string; test(value: any): boolean };
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
* under the License.
*/

export { buildExistsFilter } from './exists';
export { buildPhraseFilter } from './phrase';
export { buildPhrasesFilter } from './phrases';
export { buildQueryFilter } from './query';
export { buildRangeFilter } from './range';
export function createAbsolutePathSerializer(rootPath) {
return {
print: value => value.replace(rootPath, '<absolute path>').replace(/\\/g, '/'),
test: value => typeof value === 'string' && value.startsWith(rootPath),
};
}
20 changes: 20 additions & 0 deletions packages/kbn-dev-utils/src/serializers/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

export { createAbsolutePathSerializer } from './absolute_path_serializer';
Loading