Commit graph

16831 commits

Author SHA1 Message Date
spalger f2924aa0e9 run kbn-plugin-helpers tests on ci 2018-02-08 11:57:08 -07:00
spalger 1678ab4466 [kbn-plugin-helpers/yarn] add yarn.lock file 2018-02-08 11:57:08 -07:00
spalger 9f6ebb12b6 [kbn-plugin-helpers] remove redundant configs 2018-02-08 11:57:08 -07:00
spalger 2ede1b11eb Merge elastic/kibana-plugin-helpers into elastic/kibana repo 2018-02-08 11:56:08 -07:00
Chris Roberson 32f50b0a27
[Management] Highlight query in results for index pattern creation wizard (#16529)
* Highlight matches in the table

* Address issue with showing an error when the user types `.` which is invalid, but there shouldn't be an error

* Use strong
2018-02-08 13:47:28 -05:00
Nathan Reese 8664b55ac2
Nested input controls (#16407)
* add input to select parent control

* move lineage logic into seperate file for easier testing

* move parent candidate logic into seperate file

* decouple control factory and control initialization

* disable control if parent not set

* inherite search source from ancestors to have them filter values

* call fetch when query filter is updated for filter value changes

* delete filters when control has ancestor without value

* avoid fetching option list when ancestors have not changed

* add functional tests for nested controls

* remove unneeded file

* fix jest tests, add another test case to functional tests, update 'Parent' field copy

* add more jest test coverage

* fix useTimeFilter functionallity

* add better error message when fetch is not defined by subclass

* pass filters array instead of search source hierarchy

* only modify queryFilter when filters are submitted

* compare value array instead of concatinated string to determine if ancestors have changed

*  use ES2016 syntax for array concatination
2018-02-08 10:30:45 -07:00
Chris Roberson 75c05459c9
Properly filter out system indices in CCS env (#16536) 2018-02-08 10:13:51 -05:00
Chris Roberson bf14b4e3e0
[Management] Handle commas as separations in the query for CCS purposes (#16535)
* Handle commas as separations in the query for CCS purposes

* Add tests

* Limit this to ccs queries, which just means they contain a :
2018-02-08 10:13:18 -05:00
Court Ewing 73de529a00 Revert "Upgrade to EUI 0.0.19. (#16576)"
This reverts commit dddb906a83.
2018-02-08 08:14:22 -05:00
Kim Joar Bekkelund 88c18d667f
Preinstall check that mentions 'yarn kbn' (#16572) 2018-02-08 13:40:57 +01:00
Kim Joar Bekkelund 3448f31e3d
[kbn-build/bootstrap] Test cleanup (#16594) 2018-02-08 13:20:21 +01:00
Tim Roes e3f6af730b
Don't stretch Kibana logo (#16524) 2018-02-08 12:48:39 +02:00
CJ Cenizal dddb906a83
Upgrade to EUI 0.0.19. (#16576) 2018-02-07 19:01:32 -08:00
Kim Joar Bekkelund 95a7435158
Run kbn:bootstrap script after installing deps (#16585)
* Run 'kbn:bootstrap' scripts at the end of bootstrapping

* Add bootstrap command tests

* resetAllMocks

* Use 'absolutePathSnaphotSerializer'

* Mock console.log calls

* Strip ansi snapshot serializer

* reset in afterEach

* Log before running 'kbn:bootstrap' scripts

* mock linkProjectExecutables in bootstrap tests
2018-02-08 01:41:16 +01:00
Kim Joar Bekkelund 287c45e162
Use execFile instead of exec when installing deps in build (#16587)
* Clarify lockfile is used for resolution

* Use 'execFile' instead of 'exec'
2018-02-08 00:37:00 +01:00
Spencer f7748072fb
[kbn-build/bootstrap] symlink executables from linked packages (#16584)
* [kbn-build/bootstrap] symlink executables from linked packages

* [kbn-build/bootstrap] use snapshots for tests

* [kbn-build/jest] add absolute path serializer
2018-02-07 16:02:28 -07:00
Chris Roberson f3b4ddf6da
Stop using the native event and use target.value (#16553) 2018-02-07 12:51:12 -05:00
Shaunak Kashyap c5d41437e9
Removing flex-basis: 0 to make items size properly in IE11 (#16557) 2018-02-06 18:46:06 -08:00
CJ Cenizal ca283c7763
Add icon directive which wraps EuiIcon. (#16561) 2018-02-06 16:07:28 -08:00
lcawley 213015ad08 Merge remote-tracking branch 'upstream/master' 2018-02-06 14:33:14 -08:00
Spencer d58e46578f
Ignore config from disabled plugins (#16474)
* [server/plugins] collect disabled plugin specs

* [pluginsDiscovery] fix pluralization of disabledPlugin$

* [pluginDiscovery] fix invalid assertion

* [server/config] ignore config from disabled plugins
2018-02-06 13:35:03 -07:00
lcawley 1e67ea3cb4 Merge remote-tracking branch 'upstream/master' 2018-02-06 08:43:27 -08:00
Jonathan Budzenski 69cd433373
[console] Update cat/count API's (#14761)
* [console] Update cat api

* [console] autocomplete cat.tasks

* Revert autocompletion

* cat.aliases

* generate cat

* glob spec folder

* [console] generate count

* [console] remove leading slash from patterns

* [console] generate bulk

* [console] generate clear_scroll
2018-02-06 10:42:21 -06:00
Thomas Neirynck 6022fd8b5e
remove flaky test (#16537) 2018-02-06 10:57:28 -05:00
Chris Roberson 6e0d6a3721
[Management] Index pattern creation wizard in React! (#16499)
* Index pattern creation wizard shell

* PR feedback
2018-02-06 09:15:51 -05:00
Spencer b596ad3d5d
[eslint] un-ignore .eslintrc.js (#16542) 2018-02-05 16:29:30 -07:00
Joe Fleming 37990e9cde v9.0.2
Original commit: elastic/kibana-plugin-helpers@3bd57fbe5e
2018-02-05 15:53:23 -07:00
Spencer 608c9ff38b [config] throw if config file has a syntax error (elastic/kibana-plugin-helpers#65)
Original commit: elastic/kibana-plugin-helpers@487dd70bdb
2018-02-05 15:37:22 -07:00
Court Ewing 2896a13f5b
bootstrap ui in script file rather than inline (#15904)
* bootstrap ui in script file rather than inline

There's no good reason to bootstrap the UI within the browser using an
inline script tag rather than a separate dynamically created bootstrap
script.

Having this bootstrapping logic in its own file allows us to cache this
separately from the main HTML payload, and it is required if we want to
disable inline scripts entirely.

* cleanup from review 1

* fix status page bootstrap

* do not require auth for app bootstrap files

We do not require auth for the rest of our static JS files, and this
file should not be treated differently than those. That this file is
created dynamically rather than pulled directly from the file system
is just an implementation detail.
2018-02-05 16:22:04 -05:00
Tim Roes 30acb3d1b6
Remove Angular and vislib vis type docs (#16522) 2018-02-05 21:15:36 +01:00
Chris Earle c0a13431b4
[Config] Acknowledge when Advanced Settings respond (#16485)
This adds a return value to the `Promise` returned by `config.set`, which allows callers to `await` it  and verify that their setting was applied without checking the settings (which is a race condition).
2018-02-05 14:39:30 -05:00
lcawley 6952c7edba Merge remote-tracking branch 'upstream/master' 2018-02-05 11:25:39 -08:00
Kim Joar Bekkelund e58b43f744
Prettier + ESLint setup (#16514)
* Move .eslintrc (yaml) to .eslintrc.js (js)

* Add Prettier setup to ESLint

* Run Prettier on @kbn/build

* Update style guide with Prettier
2018-02-05 18:18:43 +01:00
Peter Pisljar d5d9b9389b
moving legend inside vislib (#16249) 2018-02-05 17:42:39 +01:00
Tim Roes 45161b8f46
Fix typo in region map description (#16515) 2018-02-05 16:22:10 +01:00
Court Ewing 271a941621
lint: error on innerHTML and family (#16477)
* lint for innerHTML and family

Browser apis like innerHTML and document.write are dangerous when used
incorrectly, so we should not be using them unless we explicitly opt-out
of the linting rule on a case by case basis.

* add no-unsanitized to eslint peerDependencies
2018-02-04 08:38:37 -05:00
Kim Joar Bekkelund 43dfbf01dc Babel preset package (#16479)
* [babel-preset] turn into a package

* switch to @kbn namespace

* [babel] pin babel-preset-env to 1.4.0, newer versions don't shim symbols

* [yarn] update lockfile
2018-02-03 12:24:16 -07:00
Kim Joar Bekkelund c8f3efd4ef
Rename @elastic/kbn-build to @kbn/build (#16507) 2018-02-03 12:04:35 +01:00
CJ Cenizal e5a10edb38
Fix bug where ESC was closing the Console autocompletion suggestions menu, but then also exiting edit mode. (#16500) 2018-02-02 16:01:40 -08:00
Kim Joar Bekkelund 090866c514
Handle Yarn not forwarding -- to kbn-build (#16497) 2018-02-03 00:44:22 +01:00
Kim Joar Bekkelund 8d23a0fb31 Update lockfile with eui@0.0.18 2018-02-02 20:57:16 +01:00
Kim Joar Bekkelund 136ded978f
Build multiple Kibana packages for production (#16313)
* Build packages before running ESLint on CI

* Add production task to kbn-build

* Ensure packages are bootstrapped before running the build

* Run ESLint on kbn-build
2018-02-02 20:49:57 +01:00
Chris Roberson f93b76285b
[Management] Fix importing objects connected to saved searches that contain conflicts (#16004)
* Handle cases of importing objects that are connected to searches, but error out due to the searches index pattern not found

* Add tests and fix flaky ones
2018-02-02 14:28:29 -05:00
CJ Cenizal b27c5772cf
Upgrade EUI to 0.0.18. (#16486) 2018-02-02 10:11:02 -08:00
Chris Roberson 4061399aef
[Management] Time field step in React! (#16129)
* Time field step in React

* Tests start

* Modularizing the step and adding tests

* More tests

* More clean up

* Fix test

* Update tests

* Fix bug where use can't select 'No Time Field' option

* Fix test

* Disabled button state bug fix with test

* UX improvement: early warning of index pattern collision

* More composable StepTimeField component for more readability

* PR feedback

* Remove debug

* Ensure the node exists and add back tests

* Update time field loading state

* PR feedback

* Update tests
2018-02-02 11:59:46 -05:00
Kim Joar Bekkelund ec62e4f942
Handle licenses for 'private: true' packages (#16480) 2018-02-02 17:01:00 +01:00
Jonathan Budzenski 37e42432c6
Snake case scripts/kibana-keystore.js and scripts/kibana-plugin.js (#15331) 2018-02-02 09:54:02 -06:00
Jonathan Budzenski 22e5321bd2
jenkins_docs.sh 0644 ->755 (#15743) 2018-02-02 09:53:11 -06:00
Chris Earle fb2ff4f6e8
Create Global Banner Area (#16340)
This is a follow up to work done to add a `GlobalToastList` and it adds a `GlobalBannerList` that serves a similar role: a singleton class that can be modified as needed to display useful information to the user.

The major difference between this area and the toast notifications is that this is completely self-managed. A good example of this is the `createFirstIndexPatternPrompt` banner, which this PR fits into the global banner list.

This area is not intended to be a common area to display information, but it is useful for the rare, globally useful information.
2018-02-02 10:30:56 -05:00
Yuri Astrakhan 638ee3f6ba
Bump jquery to ^3.3.1 (#16472)
* Bump jquery to ^3.3.1
2018-02-02 05:53:28 -05:00