Commit graph

15436 commits

Author SHA1 Message Date
Spencer
eb31af6d7b [tests/functional] catch and ignore errors during stabilization (#11906) 2017-05-25 14:06:54 -07:00
Court Ewing
c57a775060 build: remove 32 bit builds (#11941)
All builds are now 64 bit, which is what we want to support from 6.0
onward.
2017-05-25 16:15:25 -04:00
CJ Cenizal
9b87c98bf9 Show Timelion function reference after user dismisses tutorial. (#12006) 2017-05-25 13:12:41 -07:00
Spencer
84ea502205 [indexPatterns/field] remove indexed/analyzed/doc_values awareness (#11969)
* [indexPatterns/field] replace mapping awareness with readFromDocValues

* move link to more details to proper location

* Address kjbekkelund's feedback

* let the prs speak for themselves
2017-05-25 12:58:23 -07:00
Shaunak Kashyap
aa3fa06f61 Making tweaks. (#12003)
- Removing "I'm a pro" link from top right.
- Adding "Got it, take me to Kibana" button at bottom center.
- De-emphasizing demo site.
2017-05-25 12:43:49 -07:00
Stacey Gammon
1f72d49108 Allow plugins to hide write controls in the dashboard app (#11537)
* Implement a way to hide write controls from dashboard

* Add roles definition to the saved dashboard object

* Remove roles from dashboard

* Use an angular provider to control the hideWriteControls flag

* Add an api to chrome to show only a single app by id

* Refactor injectVars logic

* Fix tests

* Refactor kibana root controller

* add additional test functionality

* Missed a couple spots for hiding edit controls

* add retry and help text for dash only mode failures

See if it helps. Tests pass locally.

* Move element into screen when clicking

* use shorthand for object creation

* Hide checkboxes, show 'no dashboard' message with the button
2017-05-25 15:32:57 -04:00
Stacey Gammon
0887f81dae Move management sections around. No visual changes in this PR (#11928) 2017-05-25 14:04:13 -04:00
Rashid Khan
be0b193eef Store the doc page on app scope instead of directive scope (#11962) 2017-05-25 09:17:31 -07:00
spalger
7f0e9ad9e4 Fix merge failure 2017-05-24 18:20:26 -07:00
CJ Cenizal
5437eb0e77 Add isInvalid states for TextInput, TextArea, and SearchInput components. (#11995) 2017-05-24 17:19:54 -07:00
Spencer
c9afc8b16f [utils] add util for converting between es and kibana types (#11967)
* [utils] add util for converting between es and kibana types

* [utils/kbnFieldTypes] use random strings instead of numbers

* [utils/kbnFieldTypes] ensure that castEsToKbnFieldType() returns correct instance

* [utils/kbnFieldTypes] change getEsTypes() -> getKbnTypeNames()

* [fieldEditor] update test to validate limited type support

* [fieldEditor] unexpected scripted field langs should list all kbn types

* [test/stubbedLogstashIndexPattern] fix kbnFieldType use

* [utils/kbnFieldTypes] remove unused castEsToKbnFieldType() fn

* [utils/kbnFieldTypes] don't use Object.freeze()

Object.freeze() keeps properties of an object from being redefined or removed, which we want for the kbnFieldTypes, but it also prevents them from being iterated by angular since angular needs to add a unique `$hashKey` property to each object. To keep the properties read only but allow extension KbnFieldType uses Object.defineProperties() instead.

* [fixtures/logstashFields] fix use of "unknown" and "conflict" types

* [stubs/logstashFields] mention why "conflict" is special

* [utils/kbnFieldTypes] check complete output of getKbnTypeNames()
2017-05-24 16:10:52 -07:00
Spencer
dde4e9a127 [indexPatterns/create] track loading state independently (#11990)
* [indexPatterns/create] make loading state independent of fieldsFetchError

* [indexPatterns/create] return promises while loading

* [indexPatterns/create] track loading count in controller
2017-05-24 14:02:30 -07:00
Spencer
20918ada16 [indexPatterns/create] Rename newIndexPattern to formValues (#11988)
* [indexPatterns/create] use more accurate name for models

* [indexPatterns/create] remove unused fetchFieldsErrors
2017-05-24 13:58:16 -07:00
Spencer
5c04ff65fb Remove use of npm ls in grunt tasks (#11965)
* [grunt/build] refactor _build:notice task to not depend on npm

The _build:notice task used to rely on the output of `npm ls` to determine where modules were defined, but the task now just asks `license-checker` to include the `realPath` of the modules it describes in it's output, which is ultimately the same thing but works with `yarn` too.

* [grunt/licenses] convert to use lib/packages/getInstalledPackages()

* [grunt/notice/generate] test generateNoticeText()

* [grunt/licenses] tested assertLicensesValid()

* [npm] remove npm dev dep

* [tasks/lib/packages] do not include kibana in "installed packages"

* [tasks/lib/notice] join all notices with the same separator
2017-05-24 08:34:55 -07:00
Spencer
df2fb14ea4 [indexPatterns] update field in place (#11966) 2017-05-23 19:14:16 -07:00
Tyler Smalley
d4be917194 Adds an API for managing saved objects (#11632)
POST /api/saved_objects/{type}
GET /api/saved_objects/{type}/{id}
PUT /api/saved_objects/{type}/{id}
DELETE /api/saved_objects/{type}/{id}
GET /api/saved_objects/{type?}
2017-05-23 15:40:41 -07:00
Matt Bargar
5fc5a700df Change the way dynamic doc links are built so they work in dev and pre-release builds (#11913)
* Change the way dynamic doc links are built so they work even in dev and pre-release builds

* update test
2017-05-23 15:46:54 -04:00
Shaunak Kashyap
c4b3ade27d Prevent flicker on Getting Started page (#11826)
* Consolide chrome visibility toggle code into single module

* Extracting code into helper functions for better readability

* Removing redundant setting

* Extracting functions to higher level in scope so they are not defined multiple times

* Fixing typo in comment

* Starting to add unit tests

* Actually adding the tests this time

* Adding unit tests for handleGettingStartedOptedOutScenario function

* Binding this to window to prevent Uncaught TypeError: Illegal invocation

* Adding unit tests for handleExistingIndexPatternsScenario function

* Add helper function to aid unit testing

* Refactor unit tests

* Inlining function to prevent naming awkwardness

* Binding this to window to remove ambiguity

* Adding missing import

* Fixing import

* Catching expected error
2017-05-23 11:53:32 -07:00
CJ Cenizal
66c6db03bd [UI Framework] Add KuiKeyboardAccessible component to UI Framework. (#11743)
* Move accessibleClickKeys service into UI Framework.
* Add KuiKeyboardAccessible component to UI Framework.
* Change KuiKeyboardAccessible and kbn-accessible-click to propagate events. This mirrors mouse click behavior.
2017-05-23 10:19:04 -07:00
Shaunak Kashyap
099178a7ca Functional tests for the Getting Started page (#11850)
* Adding some more functionality to the Getting Started page object

* Using optOut method from Getting Started page object

* Adding functional tests for Getting Started page

This set of tests specifically tests the scenarios under which a user should or should not get redirected to the Getting Started page

* Adding log.debug message

* Conforming to HTML style guide

* Using new GettingStarted page object methods + opting out

* Adding test for nav being shown

* Removing unnecessary line

* Navigate to Discover expecting to be redirected to the Getting Started page

* Trying beforeEach instead of before

* Remove LS data index + load empty kibana index

* Removing unnecessary line

* Fixing order of operations
2017-05-23 07:09:04 -07:00
Spencer
192b2ead49 [ftr] log async init errors right when they happen (#11898) 2017-05-22 16:46:02 -07:00
Chris Cowan
f3235ba950 Removing the auto-apply feature from Time Series Visual Builder (#11460)
* Removing the auto-apply feature

* Removing commented out code

* Adding auto apply toggle; making apply bar perminant; only make apply sensitive to data changes

* Tweaking the auto apply behavior

* Moved auto apply toggle; added local storage for setting
2017-05-22 10:02:53 -07:00
Thomas Neirynck
f20186122a Disable scroll zooming on the map. (#11825)
In safari, scrolling caused the map to zoom in/out when the users scrolled up or down a dashboard. This was disabled pre 5.4 as well.
2017-05-22 12:04:13 -04:00
Matt Bargar
e62e063439 Update broken import and fix missing link (#11912) 2017-05-22 11:35:34 -04:00
trevan
7557c8f563 Add new config option to control the amount of items in listing pages (#11674)
* Add new config option to control the amount of items in listing pages
* Add a warning message when the limit is reached.
2017-05-20 21:02:00 -07:00
Lee Drengenberg
1689fd89da Allow creating different index patterns with different time fields (#11926)
* Allow creating different index patterns with different time fields

* Fix indentation
2017-05-19 15:32:55 -05:00
Shaunak Kashyap
5472cacb5e Adding sortable-column component (#11780)
* Adding sortable-column component

* Adding testbed example

* Use Angular's $watchGroup instead of Kibana's $watchMulti

* Changing getters to regular methods

* Adding kuiTableHeaderCell__liner class to uiFramework

* s/target/currentTarget/

* Fixing markup

* Cleaning up testbed
2017-05-19 13:24:55 -07:00
CJ Cenizal
515e16ac87 Improve accessibility of the Datepicker. (#11753)
* Add aria-label and kbn-accessible-click to Local Nav menu buttons.
* Make Share menu keyboard accessible.
* Make datepicker and timepicker keyboard accessible.
* Revert some kbn-accessible-click instances in favor of native button elements.
2017-05-19 10:44:51 -07:00
Shaunak Kashyap
d125835d74 Adding table_info component (#11778)
* Adding loading-results component

* Adding example usage on testbed

* Fixing module name

* Adding kuiControlledTable container

* Replacing kuiNoItems and kuiLoadingResults with kuiTableInfo

* Making directive compositional

* Fixing imports

* Re-generating fixed CSS
2017-05-19 10:43:49 -07:00
Stacey Gammon
3caf5d7125 Introduce Clone feature in view mode (#10925)
* Introduce Clone feature in view mode

* Use a new react modal for cloning dashboards

* Fix focus issues and tests

Unfortunately can’t run jest tests outside of the ui_framework at this
time.

* Add tests for dashboard clone modal

* move the jest tests out of the __tests__ directory

It’ll cause failures for the normal unit test runs

* use react instead of angular for overlay and loading of dom element

* Append 'Copy' to the title in the clone dialog so by default it doesn't clash

* address code comments
2017-05-19 09:51:26 -04:00
Nathan Reese
b5c51d1a23 remove animation on legend tooltip (#11910) 2017-05-19 07:12:11 -06:00
Spencer
c9c8e8d066 [tests/functional] opt out of getting started on navigation (#11881)
* [tests/functional] automatically opt-out of getting started page on navigation

* [test/functional/commonPage] avoid circular reference

* [test/functional/commonPage] move check for getting started after url has settled

* [gettingStarted] prevent route resolution by returning halt promises

* [test/functional/commonPage] wait for kibana to load before checking for getting started

* [uiRoutes/setupWork] provide a token that can be thrown to halt setup work

* [ui/routes] rename reference to WAIT_FOR_URL_CHANGE_TOKEN

* address review feedback
2017-05-18 19:33:53 -07:00
Spencer
c2ccab8515 [dev/server] ignore irrelevant changes in plugins (#11884)
* [dev/server] ignore changes in test,build,scripts,docs dirs at root of plugins

* [dev/clusterManager] unwrap extra ignore paths
2017-05-18 19:31:38 -07:00
Spencer
1d2341fc2b [fieldFormat] make formatted output non-bindable (#11911)
* [fieldFormat] make formatted output non-bindable

* [aggTable] totals are consumed as text, produce text

* [tests] fix existing tests

* [fieldFormat/contentType] add tests for non-bindable wrapper
2017-05-18 18:31:35 -07:00
Tim Sullivan
7553e091c1 [UI Framework] Add KuiInfoButton component (#11811)
* add help_icon component

* rename to info_button

* build

* info button example

* info button test

* fix example

* change bg color and add padding:0

* make component include all props

* set color with a variable

* use bgcolor transparent

* example guide text fix

* update markup to allow component class to set font-size

* use globalLinkColor instead of new color value
2017-05-18 15:56:09 -07:00
Lukas Olson
8b3a2d59a7 Show long index pattern names (#11907) 2017-05-18 13:46:14 -07:00
Chris Roberson
bd66f16a07 Prevent refresh fields error from breaking index patterns management page (#11885)
* No longer throw an error to the rest of the stack if there is an error refreshing fields for an index pattern

* Only prevent rethrowing for the certain error scenario
2017-05-18 14:14:06 -04:00
spalger
4692d195d9 [ftr] upgrade log level for chromedriver pings 2017-05-18 08:01:27 -07:00
Kim Joar Bekkelund
6c3fc81ea9 Upgrade to Jest 20 (#11642) 2017-05-18 13:53:44 +01:00
Felix Stürmer
bc64b9a3aa [context view] Apply filters to the context query (#11466)
This adds the ability to display a filter bar in the Context view and to apply those filters to the queries. It also modifies the link from the Discover view to the Context view to copy the currently defined filters when switching. New filters can be added from within the Context view using the icons in the expanded detail rows.
2017-05-18 12:05:38 +02:00
Felix Stürmer
8a765a3769 [UI Framework] Add several kuiLocalNav-related components (#11725)
This adds several `LocalNav`-related React components and converts their usage in the docs to React:

* `KuiLocalNav`
* `KuiLocalNavRow`
* `KuiLocalNavRowSection`
* `KuiLocalNavTab`
* `KuiLocalNavTabs`
* `KuiLocalNavTitle`
2017-05-18 10:07:17 +02:00
Spencer
d3ba428796 [ftr] make room for more projects (#11848)
Squashed commit of the following:

commit 659ea986fdeb9a5ff2ca1fa5360cccb01c671ede
Author: spalger <spalger@users.noreply.github.com>
Date:   Wed May 17 09:19:22 2017 -0700

    [test/*/fixtures] rename es_archives to es_archiver

commit d3667457c78e88e2d6974f3c38dd0fe61b846b91
Author: spalger <spalger@users.noreply.github.com>
Date:   Wed May 17 08:22:03 2017 -0700

    [ftr/config] fix default directory value functions

commit 9a6a2cc0b295e2281e83da04fcea40e9d6f00781
Author: spalger <spalger@users.noreply.github.com>
Date:   Wed May 17 07:30:52 2017 -0700

    fix import paths

commit fcb65a877d54b5b1d36b8c81f1264b36845e826e
Author: spalger <spalger@users.noreply.github.com>
Date:   Tue May 16 21:39:57 2017 -0700

    [grunt/ftr] use named exports for configs

commit 7d7f38c7615cdbf8eb0119efc0f2a5188bca8792
Author: spalger <spalger@users.noreply.github.com>
Date:   Tue May 16 18:50:04 2017 -0700

    [test] remove unnecessary directory definitions

commit 0c28984669768482f0a2ee7fc2800d5bcaf49025
Author: spalger <spalger@users.noreply.github.com>
Date:   Tue May 16 18:46:29 2017 -0700

    [ftr/config] make default directories relative to config path

commit cd2f33612624cacffec138797f3fc0f4ecb46cca
Author: spalger <spalger@users.noreply.github.com>
Date:   Tue May 16 18:32:12 2017 -0700

    [test/common] put server config into common

commit 7851ed811a236576c63bd20850b3ef2099be2a4e
Author: spalger <spalger@users.noreply.github.com>
Date:   Tue May 16 18:18:20 2017 -0700

    [grunt] "deprecate" test:api:runner task

commit b2ac4c26593a1947c94f0168191fe8123ff74122
Author: spalger <spalger@users.noreply.github.com>
Date:   Tue May 16 18:15:41 2017 -0700

    [ftr] accept the project name as an unnamed arg

commit 47e292894fc70c0a04883403c50c5d2ae0738d76
Author: spalger <spalger@users.noreply.github.com>
Date:   Tue May 16 17:56:34 2017 -0700

    [ftr/grunt] convert ftr task to multi-task with config

commit 83375855f88e5e7b3fa8b6a1c5d24a9f54766ce5
Author: spalger <spalger@users.noreply.github.com>
Date:   Tue May 16 17:54:54 2017 -0700

    [test/functional] move fixtures into test/functional project

commit 05994e9c92cf134c58f831c285b3b522a801acbc
Author: spalger <spalger@users.noreply.github.com>
Date:   Tue May 16 17:02:51 2017 -0700

    [src/test_utils] merge with test/utils directory

commit c77ee5ed36b8b7eadf876cb6d9482a49dfc92b66
Author: spalger <spalger@users.noreply.github.com>
Date:   Tue May 16 16:53:00 2017 -0700

    [test/api_integration] migrate api tests to functional test runner

commit ca328c34648dd7e07f70e1844e07cfc392e41103
Author: spalger <spalger@users.noreply.github.com>
Date:   Tue May 16 16:50:12 2017 -0700

    [esArchiver] refresh modified indices after load

commit cde74a540850fd97578f441d6dccaefd1444e656
Author: spalger <spalger@users.noreply.github.com>
Date:   Tue May 16 16:46:48 2017 -0700

    [test/functional] move shared services into test/common

commit 0ea2646aea5817f6d1595e6ae0d356c426f138f0
Author: spalger <spalger@users.noreply.github.com>
Date:   Mon May 15 22:51:23 2017 -0700

    [scripts/mocha] run _mocha script when debugging

commit 1cc80600d90e318d4738920aa557d124075a4570
Author: spalger <spalger@users.noreply.github.com>
Date:   Mon May 15 22:48:12 2017 -0700

    [ftr/config] allow child config files to have no testFiles config

commit 2bb6c957443b18cebc419baa6f9db301c8f4dc4f
Author: spalger <spalger@users.noreply.github.com>
Date:   Mon May 15 21:52:26 2017 -0700

    [ftr] move screenshots into test/functional
2017-05-17 18:53:45 -07:00
Matt Bargar
39eb457e5e Only use day, month, year provided by datepicker (#11773)
* Only use day, month, year provided by datepicker instead of moment in time
2017-05-17 18:27:26 -04:00
CJ Cenizal
e7d5fc79ea Fix bug with UI Framework background height not expanding to fit content. (#11880) 2017-05-17 13:07:50 -07:00
CJ Cenizal
2513616c31 Update UI Framework build task to not compile source maps. (#11868) 2017-05-17 11:23:32 -07:00
CJ Cenizal
27af46f8d0 Update Notice sandbox to use correct classes. (#11869) 2017-05-17 11:16:10 -07:00
Chris Cowan
9c9cad344e Show bucket size for Time Series Visual Builder on X-Axis (#11639)
* Adding seconds to the timeseries tooltip

* Adding x-axis label to show the bucket size
2017-05-17 12:08:15 -04:00
Stacey Gammon
a9ee082660 Fix modals in react (#11714)
* fix focused button not being set

Need to do it in a timeout because ng-react hasn’t loaded the react
code yet, so it can’t find the buttons.

* add a test

that would have caught the issue, and also change the default focused
button for the listing delete page since it’s a destructive action.

* Add a comment

* Push focusing of default button into react code

* Push ESC key handling into react as well

* Remove ESC tests in angular form

They don’t pass, I’m guessing because of the way it’s triggered, but
these test cases should now be handled in jest.  Also confirmed it
works as expected with the modal.

* Address code review comments

* Use autoFocus
2017-05-17 09:48:26 -04:00
CJ Cenizal
f5f056c701 Remove unnecessary use of kbn-accessible-click from heatmap options. (#11833) 2017-05-16 16:54:53 -07:00
Thomas Neirynck
c1e09d5b0e Add aggregation size to Advanced Settings (#11818)
The discover:aggs:terms:size config value was never added to the default values, so when the trash-button is clicked it removes the config completely and causes discover to send an empty size param to visualize.
2017-05-16 16:50:32 -04:00