Commit graph

772 commits

Author SHA1 Message Date
Søren Louv-Jansen f1380e3ac5
[Kuery] Remove Angular dependencies (#17836)
* [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 00:10:40 +02:00
Søren Louv-Jansen acc3af0c59
Align x-pack and kibana devDeps (#19022)
* Align Node deps

* Added grunt task

* Update name
2018-05-14 19:33:04 +02:00
Tim Roes f579d2299f
Update React to 16.3 (#18768)
* Update React to 16.3

* Switch off specific eslint rules

* Update enzyme snapshots

* Incorporate PR feedback
2018-05-14 14:05:17 +02:00
archana b58e757794
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-09 18:23:49 -05:00
Nathan Reese 6d51db6656
upgrade to eui 0.0.46 (#18827)
* upgrade to eui 0.0.46

* update logoElasticsearch

* update x-pack jest snapshots
2018-05-05 09:08:15 -06:00
Spencer e1a2fcbd96
[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
2018-05-03 12:18:50 -07:00
Jonathan Budzenski 2eb70cfef0
Bump http-proxy-agent (#17840) 2018-05-01 15:52:55 -05:00
Yuri Astrakhan b300818612
[vega] support HTML tooltips (#17632)
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 21:02:55 +03:00
Nathan Reese 5a4263ad2d
update to eui 0.0.44 (#18606)
* 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 11:07:15 -06:00
Yuri Astrakhan 4e938590f5
Bumped Vega lib version to 3.3.1 (#17829)
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 01:31:16 +03:00
Jenkins CI fe4609647d Migrate x-pack-kibana source to kibana 2018-04-24 13:48:10 -07:00
Kim Joar Bekkelund c0158105f5
Upgrade to Prettier 1.12.1 (#17791)
* Upgrade to Prettier 1.12.1

* Add back dev dep
2018-04-20 11:48:37 +02:00
Spencer b994ab3f56
[yarn] upgrade jest and related packages (#17779) 2018-04-18 13:51:19 -07:00
Brandon Kobel 00ecde66cc
Updating request to 2.85.0 (#17592)
* Updating request to 2.85.0

* Adding the caret

* updating the yarn.lock
2018-04-17 13:57:52 -04:00
Kim Joar Bekkelund 6be9df01af Move to Yarn 1.6.0 (#17741) 2018-04-17 09:53:12 -07:00
Court Ewing 39729fc648
bump angular to 1.6.9 (#17677) 2018-04-12 11:42:45 -04:00
Spencer 4f2a19bd9b
[eslint-import-resolver-kibana] bring in repo as package (#17665)
* [eslint-import-resolver-kibana] bring in repo as package

* [eslint-import-resolver] enable prettier
2018-04-11 15:21:29 -07:00
Chris Cowan 7fed7b62f2
[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:06:28 -07:00
Kim Joar Bekkelund a1d9e96a70
Upgrade to TypeScript 2.8.1 (#17617) 2018-04-10 11:41:06 +02:00
dave.snider@gmail.com 5fc4ce170d
Eui/38 (#17616)
Bumped up the EUI version to 0.0.38
2018-04-09 11:08:53 -07:00
Yuri Astrakhan 3a29e18504
Added Vega interactive map support (#16512)
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-06 23:09:41 +03:00
John Dorlus bb250b8dd5
Bumped leadfoot to 1.7.5 now that it issue has been merged. (#17582) 2018-04-06 15:19:50 -04:00
Spencer eb377c50c9
[angular-recursion] use angular-recursion module from npm (#17584) 2018-04-05 13:58:06 -07:00
Spencer 608a1e3553
Add/generate/verify NOTICE.txt file (#17504)
* [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 09:12:44 -07:00
Tim Sullivan 0a8fe911b9
update numeral-js dependency - elastic fork (#17508) 2018-04-03 09:15:59 -07:00
dave.snider@gmail.com 622d3f333b
Update to EUI 0.0.37 and add proper open sans fonts for EUI's K6 theme (#17467)
* update open sans fonts, fix chrome to work with eui k6 theme

* update to eui 0.0.37

* update snapshots
2018-03-30 13:00:19 -07:00
archana b88a4fa040
Bump makelogs to not use _default_ mapping (#17451) 2018-03-28 17:38:25 -05:00
Jonathan Budzenski 42168afca0
Bump node to 8.11.0 (#17437) 2018-03-28 16:53:37 -05:00
Spencer 3ba7781149
[npm] upgrade react-anything-sortable (#17217)
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 12:33:17 -07:00
Jen Huang ef4d26294b
Add aria-label attributes to indexed fields table, and use EuiIconTip (#17427)
* 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 10:37:37 -07:00
Jen Huang e285627ea6
Specify widths on table columns to support long field names (#17344)
* Specify widths on table columns to support long field names
2018-03-26 09:46:55 -07:00
Aleh Zasypkin 346a99865a
[kbn-pm] Implement kbn watch. (#16892) 2018-03-26 17:54:40 +02:00
Lukas Olson 6bac181a74
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:42:23 -07:00
Yuri Astrakhan db4896a64e
bumped Vega dependencies to v-3.2.1 & vl-2.3.1 (#17314) 2018-03-21 17:44:27 -04:00
CJ Cenizal c577802759
Upgrade EUI to 0.0.33. (#17315) 2018-03-21 14:44:02 -07:00
Tyler Smalley 82e17f435f
[kbn-es] Package for managing Elasticsearch during dev and testing (#17168)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-03-20 08:30:15 -07:00
John Dorlus cf93b0468b
Bumped chromedriver to 2.36 which fixes bustage on Chrome 65. (#17252) 2018-03-19 15:09:03 -04:00
Spencer a02f5bf179
[npm] upgrade elasticsearch-js (#17219) 2018-03-19 11:49:52 -07:00
Nathan Reese 4ca65024ab
Replace angular-bootstrap-colorpicker with EuiColorPicker (#17222)
* remove angular-bootstrap-colorpicker

* add form-control class to make things like better
2018-03-19 09:17:32 -06:00
John Dorlus a31ec148f4
Adding firefox to test suite (#17195)
* Created general driver to accept an argument select the driver to run.

* Added environment variable for driver, changed package.json to use custim leadfoot, and made changes to browserdriver to use any driver.

* Made changes per PR.

* Fixed all nits.
2018-03-16 23:05:10 -04:00
Nathan Reese 690ef5a006 rollback chromedriver (#17224)
* rollback chromedriver

* yarn.lock
2018-03-16 14:29:04 -07:00
Nathan Reese 320620da2f
update chromedriver to 2.36.0 (#17152) 2018-03-16 11:08:05 -06:00
Nathan Reese 1d8bf67fde
Remove pivotal-ui (#17181)
* remove from input controls

* remove from tutorial

* remove from visual builder

* update package.json
2018-03-16 09:59:59 -06:00
Spencer 0059180736
[npm] upgrade elasticsearch/elasticsearch-browser packages (#17119)
* [npm] upgrade elasticsearch/elasticsearch-browser packages

* [es/patchKibanaIndex] update tests to expect indices.getMapping

* [npm] use ^ version range for elasticsearch(-browser) packages

* [es/patchKibanaIndex/tests] expand assertion
2018-03-14 16:11:18 -07:00
Spencer ef3339bd7a
[@kbn/ui-framework] move ui-framework to a package (#17085)
* [@kbn/ui-framework] move ui-framework to a package

* [@kbn/ui-framework] restore doc_site index.html and fix build task names

* [jest] always ignore modules in target dirs
2018-03-13 10:43:39 -07:00
Nathan Reese 69f6c65ada
upgrade EUI to 0.0.26 (#17110)
* upgrade EUI to 0.0.25

* remove last reference to TooltipTrigger

* upgraded to EUI 0.0.26

* fix warning, EuiKeyboardAccessible child must have onClick defined
2018-03-13 11:16:22 -06:00
Chris Roberson 0caa5a8acf
[Management] Source filters table in React (#16649)
* Source filters table

* Updates

* Handle no source filters

* PR feedback

* Fix merge issues

* PR feedback

* PR feedback

* PR feedback

* Upgrade to 3.3.0 which allows us to use Fragments in enzyme tests

* Use EuiInMemoryTable instead

* Remove dead code and simplify some tests

* Dynamically update the matches as the user edits the filter

* Apparently, this has been using the wrong parameter name

* Restructure to stop storing computed data and add reselect helper

* Reselect is tiny, just use that

* PR feedback

* Fix merge issues

* PR feedback
2018-03-09 17:20:00 -05:00
Jen Huang e7555147d4
React/EUI-ify indexed fields table (#16695)
* React/EUI-ifying indexed fields table
2018-03-09 08:09:54 -08:00
Nathan Reese 945558ba36
Add "recently accessed" to Kibana Home (#16556)
* kbn history

* put Add Data section in panel and move to seperate component

* RecentlyAccessed component

* complete circle with recently accessed dashboards

* record visualizations in recent accessed history

* render recently accessed

* do not show recently accessed panel when no recently accessed history

* add test cases for home feature panels

* render dropdown when more than 5 items

* only add saved search when id is provided

* remove border around add data cards, move set up index patterns to under cards

* add dot icon to seperate recently accessed items

* fix white space issues

* add timelion sheet to recently accessed

* fix spelling errors, better name space styles, enhance dropdown label

* avoid cutting off bottom of letters, do not display separators with small screen

* wrap separator (EuiIcon) in EuiText component so it is even link text

* track history by object id to avoid duplicate entries when saved object is renamed

* align link dropdown on right side

* shift popover placement for small screens

* update recently_accessed tests to look for nodes insted of using snapshots

* move id to variable

* change 'Recently accessed' to 'Recently viewed'

* change more dropdown label

* add max-width to flex item

* include /app in link path, use arrow functions to remove bind in react props

* add to recently accessed when saved object is saved

* address cjcenizal's comments on test assertion order and react imports
2018-03-08 12:48:05 -07:00
Tim Roes a346e35cc1
Make plugin installer proxy work for HTTPS (#15588) 2018-03-06 18:02:43 -08:00