Commit graph

17994 commits

Author SHA1 Message Date
Jonathan Budzenski
e5d110cc55
[build] more cleaning (#21746) (#21934)
* [build] remove npm

* remove angular-ui-bootstrap

* fix

* remove bodyParser, fetch mock to dev

* remove more packages

* remove check-hash;

* remove babel-eslint

* remove marked-text-renderer

* move fetch-mock to dev dependencies

* Revert "remove babel-eslint"

This reverts commit 37d3df9146cdab24661022b9edf4aa2fd3b14e30.

* fix npm path

* fix again

* remove entire node_modules dir

* CleanNodeTask -> CleanNodeBuildsTask

* move to node folder

* remove more
2018-08-13 14:18:19 -05:00
debadair
a93ed9e829 Fix bad cross doc link to auditing topic (#21938) 2018-08-13 11:19:20 -07:00
Brandon Kobel
63413c047d
Adding RBAC Phase 1 Docs (#21178) (#21929)
* Beginning to work on the role management APIs. Added docs for GET

* Adding PUT docs

* Adding PUT details

* Adding delete docs

* Fixing linking

* Adding Kibana privileges section

* Fixing dashboard only mode docs

* Fixing a few more references to managing roles

* Beginning to work on authorization docs, might be moving some to
stack-docs

* Collapsing authorization description in the kibana privileges page

* Adding audit logging section

* Revising the language on the Kibana role management section

* Splitting back out the auth/privileges and adding legacy fallback
details

* Revising language around impact of disabling security

* Changing Kibana to {kib} and Elasticsearch to {es}

* Beginning to work on developer centric docs

* Fixing some formatting, adding some diagrams

* Adding note about the role management APIs

* Adding overview, fixing small syntax issues

* Fixing chunk name for transitioning to application privileges

* Adjusting tone for the authorization introduction

* Changing the tone and structure of the RBAC docs

* Deleting blog stuff after refactoring

* Addressing first round of peer review comments

* Fixing endpoints links

* Peer review suggested edits

* Addressing other PR feedback
2018-08-13 12:08:47 -04:00
Pete Harverson
adec070f9b
[ML] Disable auto focus on job wizard select index or search page (#21913) (#21915) 2018-08-13 14:14:34 +01:00
Walter Rafelsberger
4284d9ed27
[ML] Fix bucket span estimation for machine learning admin user. (#21866) (#21912)
This fixes bucket span estimation for the machine learning admin user when security is enabled. The original issue was that the machine learning admin by default doesn't have the necessary permissions to call cluster.getSettings to get the settings search.max_buckets. This is now fixed by using callWithInternalUser() and additional permissions checks.
2018-08-13 12:40:54 +02:00
Tyler Smalley
e333b982e8
Dead code removal for React DevTools (#21904) (#21906)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-08-12 13:22:18 -07:00
Tyler Smalley
db6e384cfa
[scss] Adds autoprefixer support and improves watcher (#21656) (#21897)
This adds support for autoprefixer which we have been using in Webpack.

Additionally, we have improved the watching functionality and now update builds based directly on their dependencies an not an assumption that the files are children.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-08-12 10:30:12 -07:00
Stacey Gammon
e9273cdb1e
typescript more dashboard panel code (#21810) (#21905)
* typescript more dashboard panel code

* use ? instead of | undefined
2018-08-12 08:38:07 -04:00
Yuri Astrakhan
67ee1a7f31
Replace Number.parseFloat() with parseFloat() (#21872) (#21901)
For some reason, Number.parseFloat() does not get
cross-compiled/backported for older browsers, causing an error.
2018-08-11 16:26:29 +03:00
Tim Roes
e93cb9b585
Introduce EditorConfigProvider to customize vis editor (#20519) (#21888)
* Add possibility to specify base for histogram interval

* Move AggParamsWriter to ES6

* Add param for time_zone in date_histogram

* Prevent writing intervalBase to DSL

* Add basic EditorConfig providers

* Merge multiple configs together

* Allow hiding parameters

* Improve config merging and add tests

* Remove TODO

* Implement review feedback

* Add warning to parameter

* Remove unneeded self
2018-08-11 09:53:32 +02:00
Spencer
835ed85995
[6.x] [build/ts] transpile public code with webpack-specific ts config (#21865) (#21893)
Backports the following commits to 6.x:
 - [build/ts] transpile public code with webpack-specific ts config  (#21865)
2018-08-10 18:24:54 -07:00
Nathan Reese
7c11bd4526
add polyfill for ChildNode remove (#21797) (#21894)
* add polyfill for ChildNode remove

* call polyfill function

* add files as suggested by jbudz

* remove checks around polyfill

* just use polyfill that mozilla recommends

* add MIT license to file

* suffix file with polyfill, update copyright and link to repo

* update notice.txt
2018-08-10 17:20:16 -06:00
Nathan Reese
aff2c9bde4
fix 'Add' button in empty dashboard (#21816) (#21890)
* fix 'Add' button in empty dashboard

* goto dashboard landing page after empty dashboard test

* add comment about event being undefined
2018-08-10 15:23:55 -06:00
Matt Bargar
6a6ab13ef9
Fix query input lag (#21753) (#21883)
The debounce in ng-model-options was intended to avoid updating the
typeahead suggestions too often. It had the side effect of delaying
query input updates to the model on the angular scope. As a result, if
you typed quickly and hit enter within 100ms, you would submit an out of
date query. This moves the debounce from ng-model-options to the
updateSuggestions method itself.
2018-08-10 13:51:40 -04:00
Spencer
70b1ed6737
[TypeScript] add type-check script (#19325) (#21868)
* [TypeScript] add type-check script

* [ci] run scripts/type_check after linting

* [ts] improve filterProjectsByFlag readability

* fix typo

* simplify type signature
2018-08-10 10:20:19 -07:00
Peter Pisljar
7b18f5b8f2
fixing onUiState event handler (#21715) (#21874) 2018-08-10 16:28:45 +02:00
Nathan Reese
ecc222c35a
add section about running API tests in functional test documentation (#21738) (#21863)
* add section about running API tests in functional test documentation

* list valid configs under more section
2018-08-09 18:58:18 -06:00
Court Ewing
2a2041e850
[kbn-pm] remove lodash from test fixtures (#21848) (#21858) 2018-08-09 20:21:59 -04:00
Nathan Reese
7485f4edab
Move /shorten to /api/shorten_url (#21808) (#21860)
* Move /shorten to /api/shorten_url

* better API test assertions

* add API documenation

* use async await

* import dependencies instead of pass in
2018-08-09 17:11:01 -06:00
dave.snider@gmail.com
d5cd01ab1c
IE11 centering issue in dashboard list (#21841) (#21853)
Fixes a display regression with internet explorer.
2018-08-09 14:03:43 -07:00
Matt Bargar
9488d29e96
Make query bar autocomplete screen reader accessible (#20740) (#21842)
Fixes https://github.com/elastic/kibana/issues/20099

I made the changes described by Tim at https://github.com/elastic/kibana/issues/20099 and everything seems to be working. I tried to update the typeahead in such a way that it can be made accessible anywhere it is used, even if there are multiple typeahead instances on a single page.

> (optional) an aria-label on the individual suggestions that should be read out to screen reader. By default the content will be used, and that should be fine (unless you figure out there is too much "noise" elements in it.

I did not do this bit since the text that is read seems reasonable to me, but I'm open to changing it if others feel differently.
2018-08-09 15:38:11 -04:00
CJ Cenizal
4fa0f962e8
Make Watcher table width 100% of the view (#21803) (#21851)
* Show more of the name column in the Watcher watch table by making the table 100% width of the page, and by increasing the column width to 25%.
* Convert all title attributes to kbnTooltip.
* Add title attributes for columns which have tooltip content different from cell content.
2018-08-09 11:39:11 -07:00
Aleh Zasypkin
15e17aa2e8
[6.x] Introduce schema.any (#21830) 2018-08-09 13:02:40 +02:00
James Gowdy
af1904c8d6
[ML] Adding group selector to jobs management (#21780) (#21814)
* [ML] [WIP] Adding group selector to jobs management

* adding group name validation

* removing comment

* adding keyboard events

* moving new group input to its own component

* changes based on review

* adding tooltip

* adding better error reporting
2018-08-09 09:46:33 +01:00
Tyler Smalley
fef8355653
Upgrade uglifyJS webpack plugin, disabling compress and enabling parallel (#21809) (#21822) 2018-08-08 18:39:47 -07:00
Matt Bargar
cbd8910511 Fix available fields option toggle (#21730) (#21757)
a36b87a#diff-aff92ff718af4b68d02f030d8a438754 added an ng-if around the available fields button element. ng-if creates a child scope. The ng-click on the button directly modifies scope state. As a result, when the ng-if was added, that ng-click began modifying the ng-if's child scope instead of the parent scope.

The best solution would be to update the discFieldChooser directive to use the controllerAs property so its scope variables are namespaced. However, this is a bit risky because I'd need to make sure to update every single scope variable reference in the template, and it's a relatively large template. Since we'd like to backport this to 6.4 I've taken the less risky route of adding $parent to the scope reference inside the ng-if block.
2018-08-08 13:04:25 -07:00
DeDe Morton
8b4475821d
[Docs] Light edit to docker content (#21622) 2018-08-08 10:58:36 -07:00
Nathan Reese
6b7a4df5b9
add "now" query parameter to sample data install endpoint (#20678) (#21796)
* add now query parameter to sample data install endpoint

* joi returns date, so no need to create a new one

* add API functional tests for now parameter
2018-08-08 11:21:29 -06:00
Chris Roberson
a635df9496
[Monitoring] Address multiple accessibility issues (#20619) (#21793)
* Add screen reader only text for monitoring charts

* Add aria label for completed recoveries

* Ensure we have aria label coverage for monitoring chart tooltips

* Ensure table rows are tabbable and include the number of results at the top

* Use EuiScreenReaderOnly

* Updated copy

* Use EUI

* Remove kui usage

* Use an id instead of aria-label

* Show results in the table footer

* Revert "Show results in the table footer"

This reverts commit d622eb7eb4.

* Show total row count within the monitoring table

* PR feedback

* PR feedback

* Ensure all charts show an interval in the tooltip

* Fix padding issue with the cluster status
2018-08-08 12:54:10 -04:00
Stacey Gammon
b1b4818085
Typescriptify dashboard panel actions (#21740) (#21792)
* Typescriptify dashboard panel actions

Doesn't include build_context_menu because that has some eui dependencies, will tackle in another PR.

* early exit
2018-08-08 12:17:16 -04:00
Bill McConaghy
efe81360ff
fixing index pattern import (#21743) (#21789) 2018-08-08 12:12:10 -04:00
Pete Harverson
392df7b582
[ML] Adds Jest tests for the Filter List Settings components (#21782) (#21791) 2018-08-08 17:08:39 +01:00
CJ Cenizal
1a41646fae
Swap Watcher 'create action' tooltips (#21717) (#21773) 2018-08-08 07:21:21 -07:00
Jonathan Budzenski
57e3f0c890 [kbn-pm] Add optimize dir to kbn clean (#20945)
* [kbn-pm] Add optimize dir to kbn clean

* update snapshot
2018-08-08 07:40:00 -05:00
Jonathan Budzenski
d3e25d6d48 [dashboard/test] fix type errors (#21769) 2018-08-08 07:38:05 -05:00
Leanid Shutau
31b5c1fac2
Set kibana locale in kibana.yml config (#21201) (#21777)
* set kibana locale in kibana.yml config

* remove accept-language-parser

* remove unnecessary tests

* fix readme description, fix description for locale in kibana.yml

* add point, that i18n.locale option should have exact match

* update kbn/i18n README

* Update README.md

* use getUiTranslations in render_mixin, remove i18n_mixin

* move registering translation files to mixin function
2018-08-08 13:51:31 +03:00
Leanid Shutau
ab552cfee6
Add tests for default messages extraction tool (#21036) (#21684)
* Add tests for default messages extraction tool

* Update tests

* Switch from Jade to PugJS

* Resolve some issues

* Fix bugs and refactor tests

* Refactor utils.js tests

* Change error messages style
2018-08-08 11:49:56 +03:00
Stacey Gammon
19546cb54e
Make visualization.waitForRender more generic and put in an embeddable class (#21688) (#21749)
* Make visualization.waitForRender more generic and put in an embeddable class.

* embeddable -> renderable

* missed a reference
2018-08-07 22:23:47 -04:00
CJ Cenizal
803496d593
Remove Notifier's directive and banner methods (#20870) (#21768)
* Convert xpack license check to use banners service.
* Remove notifier directive method.
* Remove notifier banner directive.
* Simplify pullMessageFromUrl and move it into its own appRedirect module.
2018-08-07 18:32:54 -07:00
Spencer
3225838681
[6.x] [new platform] render legacy platform into a container (#21248) (#21765)
Backports the following commits to 6.x:
 - [new platform] render legacy platform into a container  (#21248)
2018-08-07 17:07:04 -07:00
Nathan Reese
56612866f7
EUIify dashboard options top nav (#21510) (#21751)
* trying new EuiWrappingPopover

* allow button press to close popover

* fix button styling

* start options panel with darkTheme option

* add other options

* remove old options html

* get dashboar state functional test working
2018-08-07 14:55:57 -06:00
Chris Roberson
4e437a174a
Use empty strings to avoid EUI warnings (#21726) (#21745) 2018-08-07 15:31:30 -04:00
Chris Roberson
cf03af7380
[Monitoring] Kibana settings api (#21100) (#21742)
* Kibana settings api

* Use different version of this utility

* Adding settings api test

* Fix these tests

* Update test
2018-08-07 14:49:26 -04:00
Chris Roberson
5be60388f2
[Monitoring] Convert info button to EUI (#20828) (#21734)
* Convert info button and the rest of the page to EUI

* Update other overview pages

* Use Page directive

* Give the tooltip some more space

* Add page body to a couple places

* PR feedback
2018-08-07 13:13:18 -04:00
Casper Hübertz
f26ffc63fa
[APM] Override EUI chart default styles for gridlines (#21723) (#21728)
Reverting to APM style override for chart gridlines
2018-08-07 18:15:22 +02:00
James Gowdy
31e123b7e4
[ML] Fixing issue with historical job audit messages (#21718) (#21724) 2018-08-07 16:28:24 +01:00
Tim Roes
fb32fac610
Add proper aria-label for close inspector (#21719) (#21725) 2018-08-07 17:04:25 +02:00
Brandon Kobel
c88b5674e1
[6.x] Switching from jade to pug (#21047) (#21338)
* Switching from jade to pug (#21047)

* Upgrading pug

* Switching .jade to .pug and fixing templates

* Renaming the I18N usages of jade to pug

* No more jade in I18N

* Renaming root_redirect to .pug
2018-08-07 10:21:05 -04:00
Chris Roberson
a743dd060f
[Monitoring] Convert beats overview page to use EUI components (#20765) (#21700)
* Convert beats overview page to use EUI components

* More UI components for beats overview

* Set background color to white

* Update snapshots

* Add PageBody wrapper

* Update snapshots

* Use panels

* PR feedback

* Update snapshots
2018-08-07 09:48:57 -04:00
Spencer
2df37435b9
[6.x] [dashboard/fullScreen] override z-index override (#21704) (#21710)
Backports the following commits to 6.x:
 - [dashboard/fullScreen] override z-index override  (#21704)
2018-08-06 19:26:54 -07:00