Commit graph

454 commits

Author SHA1 Message Date
Aleh Zasypkin 0835cd30ca
Introduce Elasticsearch service. (#28344) 2019-02-28 17:22:07 +02:00
Mikhail Shustov 5fc7addac5
Update jest to v24 (#31825)
* udpate jest, jest-cli, @types/jest to v24

* fix type error in kibana-i18n package

* return serivce explicitly to fix typings

* add explicit never

* suppress typings errors

* update jest versions in x-pack

* make tests in x-pack more robust and fix incompatibility

* suppress CallCluster mock typings

Mock interface doesn't match CallCluster. Requires
additional work

* x-pack. resolve other typing conflicts

* remove unused types/jest

* fix snapshots

* restore mocks after jest.spyOn

* remove outdated definitions for jest

* cleanup x-pack package.json and update @types/jest

* fix tests merged from master

* updated yarn.lock and log errors for scripts/type_check

* This commit fixes error in TS, which failed on parsing the file.

* suppress type errors from master

* jest-cli is devDep
2019-02-28 13:26:16 +01:00
spalger 7e1d565587 update kbn-pm build 2019-02-27 19:13:13 -08:00
Aleh Zasypkin 2f62e6f1a5
Upgrade @babel/* dependencies. (#32031)
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2019-02-27 19:27:40 +02:00
Jonathan Budzenski 01c8627622
[es] scripts.inline -> scripts.source (#30457) 2019-02-25 16:34:47 -06:00
Vitali Haradkou 75e49e667c tests typescript migration (#31234)
* add typescript support for functional tests
2019-02-21 19:38:54 -06:00
Felix Stürmer 6e31c1d127
Upgrade react to 16.8.3 (#31268) 2019-02-21 11:27:35 +01:00
Lukas Olson 41edbe4540
Remove use of 's' regex flag (#31292) 2019-02-19 11:05:05 -07:00
Spencer b411925bba
Fix plugin-helpers test:server task (#31034)
* [plugin-helpers/testServer] use scripts/mocha

* [yarn] sync eslint-plugin-jest with kibana while I'm here
2019-02-13 22:47:26 -08:00
Lukas Olson 5ea179d604
[KQL] Support matching field names with newlines (#30850)
* [kuery] support matching field names with newlines (#29539)

* [kuery] support matching field names with newlines

* Add support for newlines in KQL grammar

* Add test for newlines in wildcards

* Fix test

* Use 's' instead of 'm' to match newlines instead of doing multi-line

* Fix autocomplete suggestions to handle newlines and tabs in field names

* Add line feed to escaped whitespace

* Fix broken test
2019-02-13 12:50:26 -07:00
Tim Roes b099a617bb
Fix i18n documentation (#30818) 2019-02-12 14:29:46 +01:00
spalger 8a3afb8d73 Revert "[kuery] support matching field names with newlines (#29539)"
This reverts commit 66362856f6.
2019-02-11 19:04:55 -08:00
Spencer 66362856f6
[kuery] support matching field names with newlines (#29539)
* [kuery] support matching field names with newlines

* Add support for newlines in KQL grammar

* Add test for newlines in wildcards
2019-02-11 17:18:51 -08:00
Spencer 133ba2360f
[esArchiver] stable archives (#30477)
* [esArchiver/save] serialize with stable json stringify

* [esArchives] rebuild all archives
2019-02-11 11:16:25 -08:00
Court Ewing 2ce51a5be5 Update paths to ui, server, deprecation, plugin_discovery in src/legacy
This commit accompanies the four that precede it. Rather than squash
them altogether, the four previous commits all do nothing except move
files to help avoid conflicts.
2019-02-11 10:41:37 -05:00
Lukas Olson 79b8ccbc34
Fix buildEsQuery to ignore filters if not in index (#29880)
* Fix buildEsQuery to ignore filters if not in index

* Fix tests and move getEsQueryConfig to package

* Revert changes to TSVB

* Remove console log

* Review feedback
2019-02-11 08:36:19 -07:00
Aleh Zasypkin 088d5f6919
Add zh-CN.json translations and respective compatibility checks via i18n tools (#30378) 2019-02-11 14:39:59 +01:00
Larry Gregory 3fba1f3fd5
Upgrade grunt to 1.0.3 (#30504) 2019-02-08 16:15:27 -05:00
Chris Davies beb4542079
Remove custom WebPack bundles from Canvas (#30123)
This removes the custom build process for Canvas plugins. Canvas plugins are now regular
Kibana plugins. They can register server-side functions like so:

```js
server.plugins.interpreter.register({
  serverFunctions: [yourFunctionsHere],
});
```

And client-side functions need to be included in `uiExports.canvas`, then they need to
register themselves like so:

```js
// kbnInterpreter is a global, sadly, but it makes registration simple
kbnInterpreter.register({
  elements: [yourElementsHere],
  browserFunctions: [yourFnsHere],
});
```
2019-02-08 08:42:03 -05:00
Chris Davies e1430a2b7b
Optimize Canvas REST calls via batching (#29847)
Optimize the expression interpreter by introducing batching of remote function calls.
2019-02-06 15:50:51 -05:00
Chris Davies ebd3a82643
Remove WebSockets from Canvas expressions interpreter (#29792)
This modifies the interpreter to use REST instead of WebSockets.
2019-02-05 11:51:45 -05:00
Luke Elmers 22933775ac
Prepare for cutover to vis data loader (#29873) 2019-02-04 11:03:13 -07:00
Aleh Zasypkin d05437703d
Introduce I18nService core service and I18nContext. (#29379) 2019-02-04 13:38:00 +01:00
Jonathan Budzenski 61f999304b [kbn-es] Platform specific snapshots (#29673) 2019-02-01 20:59:59 -08:00
Spencer d0a3ebaf41
[kbn/es-query] build ts with babel7 (#29872)
* [kbn/es-query] build ts with babel7

* [kbn/es-query] keep esm for public module output
2019-02-01 16:16:05 -08:00
Court Ewing 7a87f03ec7
Introduce content security policy (CSP) (#29545)
* csp: nonce and unsafe-eval for scripts

To kick things off, a rudimentary CSP implementation only allows
dynamically loading new JavaScript if it includes an associated nonce
that is generated on every load of the app.

A more sophisticated content security policy is necessary, particularly
one that bans eval for scripts, but one step at a time.

* img-src is not necessary if the goal is not to restrict

* configurable CSP owned by security team

* smoke test

* remove x-content-security-policy

* document csp.rules

* fix tsconfig for test

* switch integration test back to regular js

* stop looking for tsconfig in test

* grrr, linting errors not caught by precommit

* docs: people -> you for consistency sake

Co-Authored-By: epixa <court@epixa.com>
2019-02-01 17:11:38 -05:00
Caroline Horn b1b941dd8f
Finally remove leftover LESS files (#29486)
* Use mixin for full screen graphics

- Moved svg assets to one folder under `ui/public/assets/images`
- Deleted .less files

* Fix Kibana logos as well

* forgot to remove

* adds dark mode images

* Removed search_select

In favor of pattern to be created in EUI : https://github.com/elastic/eui/issues/1498

* No LESS in plugin generator

* remove comment

* Remove .less from testbed

* snaps

* Update dark mode graphics to be a bit lighter

* [karma] load css via url, rather than webpack

* [karma] css isn't built at config time, concat at request time
2019-02-01 01:35:25 -05:00
Matt Bargar 8a83955650
Re-introduce new filter bar (#29752)
Fixes the build issues introduced in #25563 and re-introduces the new react/eui/typescript filter bar, essentially reverting the revert in #29662. I did have to resolve one merge conflict in query_bar.tsx, and re-deleted all of the old filter bar code where translation code had been added.
2019-01-31 18:36:26 -05:00
Caroline Horn 90554c1744
Visualize sidebar design updates (#29658)
* Bring over all ui-select styles and convert color vars

* Some bootstrap dark theming

* Consolidating non-EUI form control styles

* Update some tutorial pieces set to EUI

* Fix up visualize editor sidebar as best as I can

* PR feedback

- comment for image
- euiScrollbar
- euiBorderThick

* Fix advanced toggle test

* Don’t show IE’s select arrow
2019-01-31 16:46:05 -05:00
Tyler Smalley c70aeec6fd
[kbn-es] Support platform specific distributions (#29678)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-01-31 08:41:29 -08:00
Maryia Lapata 17bb0d0483
Update kbn-i18n dependencies (#29699) 2019-01-31 15:54:22 +03:00
Matt Bargar 45b24afe83
Revert "Migrate filter bar to React, EUI, and Typescript (#25563)" (#29662)
This reverts commit 410c094547.
2019-01-30 17:00:42 -05:00
Chris Davies 425dc84058
Make Canvas expressions use socket.io polling only (#29647)
This gets Canvas expressions to behave consistently across environments, and is the first step in migrating expressions to a different transport layer.
2019-01-30 16:07:28 -05:00
Matt Bargar 410c094547
Migrate filter bar to React, EUI, and Typescript (#25563)
Rewrites the filter bar in React, EUI, and Typescript. Updates the look and feel of the filter bar and makes it consistent with the rest of K7.
2019-01-30 15:48:31 -05:00
Jonathan Budzenski e9f0006890
Remove es _xpack endpoint usage (#29465)
* _xpack/rollup -> _rollup

* _xpack/sql -> _sql

* _xpack/license -> _license

* _xpack/migration -> _migration

* _xpack/watcher -> _watcher

* _xpack/monitoring -> _monitoring

* _xpack/security -> _security

* [console_extensions] regenerate

* [console_extensions] update ml overrides

* [console_extensions] update security overrides

* [console_extensions] update rollup overrides

* Revert "[console_extensions] update rollup overrides"

This reverts commit bb3742570d.

* Revert "[console_extensions] update security overrides"

This reverts commit 5c0263b35e.

* Revert "[console_extensions] update ml overrides"

This reverts commit e8254d5671.

* Revert "[console_extensions] regenerate"

This reverts commit 91b754e956.
2019-01-29 13:28:32 -06:00
Caroline Horn 2d334b699c
Prepare local nav styles for K7 (#29457)
* Breadcrumbs and Title on their own line

- Menu on the left, datepicker on the right

* Fixed up usages of kuiLocalTitle

* Fix alignment if main menu doesn’t exist

* Remove some extraneous classes
2019-01-28 22:36:24 -05:00
Aleh Zasypkin b450e1bab5
Expose */translations/{locale}.json endpoint for the translations instead of embedding them into every app HTML index template. (#29075) 2019-01-28 14:21:22 +01:00
Spencer 4f4768507d
[yarn] upgrade caniuse-lite and browserlist (#29358)
An old version of caniuse-lite was added somehow and it is logging with `console.log` to instruct us to update, which I find very aggressive but I suppose is also effective...

![image](https://user-images.githubusercontent.com/1329312/51757558-8faaa380-2078-11e9-8af2-5dba0577a16d.png)
2019-01-25 09:32:57 -08:00
Peter Pisljar b66375eb8f Add visualization renderer to support Kibana visualizations inside Canvas. 2019-01-25 09:56:54 -07:00
Josh Dover 45a4d3bce0
[kbn-es] Add support to kbn-es and kbn-test for data archives (#28723)
* Add support to kbn-es and kbn-test for data archives

* Fix log indent

* Decompress directly to data directory

Co-Authored-By: joshdover <me@joshdover.com>

* Improve logs
2019-01-23 16:45:19 -06:00
Peter Pisljar cb1e1b829c
moving renderers registry to OSS (#28986) 2019-01-23 04:16:00 -08:00
Peter Pisljar 8c3fdfa98b
removing kibana_table pipeline type (#28979) 2019-01-22 23:03:49 -08:00
dave.snider@gmail.com 690f4714cb
KUI Dark mode (#28975)
KUI now ouputs two files, one for dark, one for light.
2019-01-22 13:26:49 -08:00
pavel06081991 1d2da963e8 [i18n] Add locale for lang html attribute (#28923)
* add locale for lang html attribute

* remove unused variable

* update readme

* fix unit tests

* add links to standards

* fix unit test

* Fix typos
2019-01-21 13:51:43 +03:00
Joe Fleming 1038c77e84
Feat: Cast datatable to pointseries (#28872)
* feat: allow casting datatable to pointseries

* fix: use correct column type for pointseries

columns are an object, not an array
2019-01-17 14:34:29 -07:00
Maryia Lapata efb876dfe2
[i18n] Extend types for values (#28907)
* [i18n] Extend types for values

* Make "defaultMessage" mandatory param
2019-01-17 23:23:46 +03:00
Peter Pisljar 90fbaf11c2
moving state out of kbn-interpreter (#27317) 2019-01-17 07:23:29 +01:00
Josh Dover 0ba1db2d5b
Add ENV_VAR for overriding ES snapshot version (#28768) 2019-01-15 11:27:54 -06:00
Thomas Neirynck 2cc2229f1b
[Maps] add attribution for EMS sources / design improvements (#28310)
- Add attribution from EMS sources to map.
- Design improvements in layout of lon/lat readout and attribution
2019-01-14 14:14:20 -05:00
Robert Monfera 91fa7b712b
Clog to output in the browser console (#28667) 2019-01-14 18:13:11 +01:00