Commit graph

109 commits

Author SHA1 Message Date
Tim Roes ee6a17e102
Update markdown-it to 8.4.1 (#19470) (#19472) 2018-05-28 18:47:35 +02:00
Justin Kambic e6e8271ee5 Update yarn.lock file to handle non-automated updated package.json (#19441) 2018-05-25 13:14:00 -04:00
Spencer 068b6652c0
[6.x] Check filename casing in CI (#19282) (#19414)
Backports the following commits to 6.x:
 - Check filename casing in CI  (#19282)
2018-05-24 23:09:30 -07:00
Spencer 30653d9d92
[6.x] [eslint-plugin-no-unsanitized] upgrade for import() support (#19315) (#19413)
Backports the following commits to 6.x:
 - [eslint-plugin-no-unsanitized] upgrade for `import()` support  (#19315)
2018-05-24 15:32:20 -07:00
Søren Louv-Jansen e73dceae5c
[APM] Upgrade to react-redux-request (#19338) (#19382) 2018-05-24 11:01:52 +02:00
Spencer 3d1441ab12
[ts] put JSX support in root tsconfig file (#19359) (#19365) 2018-05-23 13:15:36 -07:00
Chris Earle e6a88e000d Add Notification Service (#19236)
This adds a notification service to Kibana that can be used to send
asynchronous notifications, such as sending email and Slack messages,
which are intended to be configured via a combination of the
`kibana.yml` and Kibana keystore.

Once configured, the actions are automatically added to the notification
service and can be invoked via the server using the `notificationService`
singleton or HTTP to send it directly. See the included README for more
details.
2018-05-22 19:09:04 -04:00
Spencer 37487a8472
[6.x] [tslint] lint typescript code (#19105) (#19331)
Backports the following commits to 6.x:
 - [tslint] lint typescript code  (#19105)
2018-05-22 15:27:06 -07:00
Nathan Reese 4168ee4bec
upgrade kibana to eui 0.0.49 (#19284) (#19314) 2018-05-22 15:01:36 -06:00
Aleh Zasypkin dc16506da8
[6.x] Upgrade sinon (v1.17.3 --> v5.0.7). (#19293) 2018-05-22 15:41:45 +02:00
Spencer 07f4e5ad77
[6.x] [typescript] add typescript support for the server and browser (#19104) (#19223)
Backports the following commits to 6.x:
 - [typescript] add typescript support for the server and browser  (#19104)
2018-05-21 10:42:59 -07:00
Spencer 6a73c41ffd [npm] downgrade mocha even further, to before #19022 (#19238) (#19241) 2018-05-18 22:25:07 -04:00
Spencer b3364e625a
[6.x] [npm] downgrade mocha to not need https://github.com/mochajs/mocha/pull/3346 (#19233) (#19234) 2018-05-18 15:32:29 -07:00
spalger f17b311dfe [npm] upgrade mocha to include https://github.com/mochajs/mocha/pull/3346
(cherry picked from commit a5d1f1ccd6)
2018-05-18 14:47:39 -07:00
archana eae18989a3
Functional test setup with kbn-test package (#18568) (#19174)
Restructure testing with kbn-test package

 - Run with multiple configs, move cli options to config
 - Package-ify kbn-test
 - Eventually we'll have functional_test_runner live in a package
of its own, and then this kbn-test will use that as a dependency,
probably still as a devDependency.
 - Implement functional_tests_server
 - Collapse single and multiple config apis into one command

Use kbn-es

Replace es_test_cluster + es_test_config with kbn/test utils

Implement new createEsTestCluster

Improve scripts, jsdocs, cli top-level tools

Lift error handling to the top level
2018-05-17 13:42:43 -05:00
Spencer 7dbec2e1e7
[6.x] [mocha] remove grunt-simple-mocha (#19079) (#19139)
* [mocha] run tests with mocha script, remove grunt-simple-mocha

* [ci] force colored output

* [ci] disable color when reading the yarn bin

* [dev/build/exec] support tooling log having its own chalk

* [dev/mocha] avoid changing the cwd of the process

* [dev/mocha] only match files, speed up negative matches

* [cli/serve/test] strip ansi control characters from logs

* [ci] disable color in all `yarn bin` invocations

* [dev/mocha] cleanup old runInBand check

* [dev/mocha] enable gloabl leak checks
2018-05-16 16:25:59 -07:00
Nathan Reese 10ac6c5988
fix conflicks in yarn.lock (#19130) 2018-05-16 11:01:50 -06:00
Bill McConaghy 5c6d710607
upping ace version to the latest (#19067) (#19087) 2018-05-15 16:32:53 -04:00
spalger 7df7ab92d6 Revert "Functional test setup with kbn-test package (#18568)"
This reverts commit c2265e3931.
2018-05-15 13:16:36 -07:00
archana c2265e3931 Functional test setup with kbn-test package (#18568)
Restructure testing with kbn-test package

 - Run with multiple configs, move cli options to config
 - Package-ify kbn-test
 - Eventually we'll have functional_test_runner live in a package
of its own, and then this kbn-test will use that as a dependency,
probably still as a devDependency.
 - Implement functional_tests_server
 - Collapse single and multiple config apis into one command

Use kbn-es

Replace es_test_cluster + es_test_config with kbn/test utils

Implement new createEsTestCluster

Improve scripts, jsdocs, cli top-level tools

Lift error handling to the top level
2018-05-15 12:33:01 -05:00
Søren Louv-Jansen d47b685e54
Align x-pack and kibana devDeps (#19022) (#19047)
* Align Node deps

* Added grunt task

* Update name
2018-05-15 02:19:09 +02:00
Søren Louv-Jansen 14fb605370
[Kuery] Remove Angular dependencies (#17836) (#19055)
* [kuery] Remove `byName` dependency

* Remove $http from kuery

* Fix test

* Add request headers

* Replace byName with getFieldByName; add isFilterable

* Replace Angular mock with static mock

* Update index pattern for query bar

* manually attach format.convert method to field

* Use KBN_FIELD_TYPES to determine isFilterable

* Bump yarn.lock file

* Add kfetch (Kibana fetch)

* Moved `getFromLegacyIndexPattern` to static index pattern functions

* Fix tests

* Mock out kfetch

* Move value formatting from getRangeScript to buildRangeFilter

* Remove getFieldByName (over abstraction)

* Split kfetch options into two
2018-05-15 01:25:04 +02:00
Tim Roes e5ea9dd2a6
Update React to 16.3 (#18768) (#19033)
* Update React to 16.3

* Switch off specific eslint rules

* Update enzyme snapshots

* Incorporate PR feedback
2018-05-14 15:15:18 +02:00
Nathan Reese 538b58c6f8
upgrade to eui 0.0.46 (#18827) (#18849)
* upgrade to eui 0.0.46

* update logoElasticsearch

* update x-pack jest snapshots
2018-05-05 13:21:18 -06:00
Spencer a6c0c62121 [uiExports] migrate uiApp "uses" to explicit imports in apps (#17828)
* [uiExports] migrate uiApp "uses" to explicit imports in apps

* [uiApp] update tests for getModules() method

* [optimize/uiExports] improve naming and comments

* [uiExports] sort imports so they load in the same order as before

* [testHarness] load hacks when testing in the browser

* [x-pack/uiExports] use new uiExports modules

* [testHarness] describe why we import uiExports/hacks

* [optimize] remove needless [].concat()

* [optimize/createUiExportsModule] string.includes > string.indexOf

* [uiExports/createUiExportsModule] remove needless capture of module exports

(cherry picked from commit e1a2fcbd96)
2018-05-03 12:19:12 -07:00
Jonathan Budzenski 87d0bcdcc5
Bump http-proxy-agent (#17840) 2018-05-01 15:59:51 -05:00
Yuri Astrakhan e71719f2d3
[vega] support HTML tooltips (#17632) (#18642)
Implement support for the richer style Vega tooltips, per https://github.com/elastic/kibana/issues/17215 request. Uses [Vega tooltip plugin](https://github.com/vega/vega-tooltip) for formatting.  Always enabled unless user sets `tooltips=false` flag in the `config.kibana` section of the spec.
![image](https://user-images.githubusercontent.com/1641515/39344487-7abc9eb0-49eb-11e8-89dd-bf562563ae1c.png)

## Test code
```js
{
  $schema: https://vega.github.io/schema/vega/v3.json
  config: {
    kibana: {
      tooltips: {
        // always center on the mark, not mouse x,y
        centerOnMark: true
        position: top
        padding: 20
      }
    }
  }
  data: [
    {
      name: table
      values: [
        {
          title: This is a long title
          fieldA: value of fld1
          fld2: 42
        }
      ]
    }
  ]
  marks: [
    {
      from: {data: "table"}
      type: rect
      encode: {
        enter: {
          fill: {value: "#060"}
          x: {signal: "40"}
          y: {signal: "40"}
          width: {signal: "40"}
          height: {signal: "40"}
          tooltip: {signal: "datum || null"}
        }
      }
    }
  ]
}
```
2018-04-27 22:15:36 +03:00
Nathan Reese d74866dd0d
update to eui 0.0.44 (#18606) (#18641)
* update to eui 0.0.44

* keep eui dependency in x-pack

* wrap EuiBasic table column in span to avoid className prop from getting overridden

* remove brittle functional tests that are no longer needed with EUI components

* filter field list instead of chaning table size

* update x-pack snapshots
2018-04-27 13:02:35 -06:00
Yuri Astrakhan 0e57b9e994
Bumped Vega lib version to 3.3.1 (#17829) (#18589)
Turns out there is a significant problem with how Vega library manages its dependencies. Instead of using a fairly common "^1.2.3" form, it used "1" (major only) almost everywhere. While this works fine if node_modules and yarn.lock are deleted and rebuilt, bumping Vega lib's primary version in our package.json and using yarn install would not touch other subcomponents. This resulted in several 6.2 and 6.3 shipping with the outdated vega dependencies while we thought that we included the latest vega versions The problem has been reported vega/vega#1259 and will hopefully be solved with the next version.

In the mean time, this patch updates all vega-related dependencies in the yarn.lock file.
2018-04-26 02:43:42 +03:00
Jenkins CI bc5b51554d Migrate x-pack-kibana source to kibana 2018-04-24 13:49:26 -07:00
Kim Joar Bekkelund 62d96637d6
Upgrade to Prettier 1.12.1 (#17791) (#17817)
* Upgrade to Prettier 1.12.1

* Add back dev dep
2018-04-20 13:15:57 +02:00
Spencer 8afcec1d9b
[6.x] [yarn] upgrade jest and related packages (#17780) 2018-04-18 12:50:41 -07:00
Brandon Kobel 62408d9ef1
Updating request to 2.85.0 (#17592) (#17752)
* Updating request to 2.85.0

* Adding the caret

* updating the yarn.lock
2018-04-17 16:02:59 -04:00
Court Ewing 979b05fb18 bump angular to 1.6.9 (#17677) 2018-04-12 11:43:54 -04:00
Spencer ede4502fa4
[6.x] [eslint-import-resolver-kibana] bring in repo as package (#17665) (#17666)
* [eslint-import-resolver-kibana] bring in repo as package

* [eslint-import-resolver] enable prettier
2018-04-11 16:12:50 -07:00
Chris Cowan 84ad08e70d [TSVB] Math Aggregation (two point oh) (#16965)
* Revert "Remove MathJS Feature (#15652)"

This reverts commit 43bf1dbf4a.

* replacing math with tinymath

* pining version

* updating yarn.lock

* Fixing Prettier mis formatting

* fixing tests

* Adding unsupported agg back

* Adding functional test for math aggregation

- Fixing bad tests
- Resetting page for every test suite (why donesn't beforeEach work?)
- Adding test for Math agg

* Trying to fix values (due to inconsistencies in env)
2018-04-11 14:17:03 -07:00
dave.snider@gmail.com b23b7e2817
Eui/38 (#17616) (#17630)
Bumped up the EUI version to 0.0.38
2018-04-10 09:23:46 -07:00
archana a03e37cb9c
[CLI] Readable logs on Windows with chalk colors (#15557) (#17636)
* [colors] try new cli colors

* [colors] try magentaBright instead of magenta

* [colors] try white for log text

* [colors] replace all remaining ansicolors with chalk

* [colors] try yellowBright instead of yellow

* remove ansicolors from package.json

* [tests] attempt to fix tests

* [tests] attempt to fix tests again

* [color] backgrounds, cleanup

* [color] update yarn.lock
2018-04-10 10:57:56 -05:00
Kim Joar Bekkelund 789ad24c84
Upgrade to TypeScript 2.8.1 (#17617) (#17634) 2018-04-10 12:56:30 +02:00
Yuri Astrakhan 4fc38bc8fa
Added Vega interactive map support (#16512) (#17599)
Implements https://github.com/elastic/kibana/issues/15842

* Added Vega interactive map support
* Support vega-lite maps
* handle VL-injected width/height/padding/autosize
* clarified min/max zoom limits
* moved kibana_map to ui/vis/map, doc fixes
* bumped leaflet-vega dep
2018-04-07 00:45:27 +03:00
Spencer 11d1cdb07d
[6.x] [angular-recursion] use angular-recursion module from npm (#17584) (#17587) 2018-04-05 14:51:09 -07:00
Spencer af79bdb5fc
[6.x] Add/generate/verify NOTICE.txt file (#17504) (#17550)
* [dev/notice] add scripts for generating NOTICE.txt file

* [notice] react-resize-detector@0.6.0 was removed in b445389b79

* [notice] move notice text into relevant source

* [dev/notice] Generate NOTICE.txt file

* [jenkins] verify that notice.txt is up to date in CI

* [tasks/notice] update test to use new NOTICE.txt file

* [dev/notice] update company name in NOTICE.txt

* [notice/cli] exit with 0 when --help requested

* [notice/cli] add helpful logging

* [notice/cli] use --validate flag name instead

* [notice/cli] simplify NEWLINE_RE, ignore obscure line endings

* [utils/decode_geo_hash] fixup comment

* [utils/decode_geo_hash] remove useless comment
2018-04-04 11:52:58 -07:00
Tim Sullivan 27ecb41e25
update numeral-js dependency - elastic fork (#17508) (#17523) 2018-04-03 10:58:55 -07:00
dave.snider@gmail.com 62b7e9c408
[6.x] Update to EUI 0.0.37 and add proper open sans fonts for EUI's K6 theme (#17467) (#17503)
* Update to EUI 0.0.37 and add proper open sans fonts for EUI's K6 theme (#17467)
2018-04-02 12:35:35 -07:00
Spencer d6a823e62d
[6.x] [npm] upgrade react-anything-sortable (#17217) (#17444)
Now that https://github.com/jasonslyvia/react-anything-sortable/pull/93 is merged and released we can upgrade our version and get rid of the incompatibility warning
2018-03-28 13:36:24 -07:00
Jen Huang c0b715dde7
Add aria-label attributes to indexed fields table, and use EuiIconTip (#17427) (#17436)
* Add aria-label attributes to indexed fields table, and use EuiIconTip
* Use EUI 0.0.35
* Add `Apache License, Version 2.0` to list
2018-03-28 11:26:43 -07:00
Jen Huang 1038070430
Specify widths on table columns to support long field names (#17344) (#17395)
* Specify widths on table columns to support long field names
2018-03-26 12:08:53 -07:00
Tyler Smalley ffd2fe83e3
[kbn-es] Package for managing Elasticsearch during dev and testing (#17168) (#17273)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-03-21 17:48:49 -07:00
Lukas Olson 12246483d6 Create grunt task to generate parsers from peg files (#17069)
* Create grunt task to generate parsers from peg files

* Leave comment

* Move grunt config to config/
2018-03-21 16:56:18 -07:00
Yuri Astrakhan eb9de427eb
bumped Vega dependencies to v-3.2.1 & vl-2.3.1 (#17314) (#17319) 2018-03-21 19:05:14 -04:00