Commit graph

291 commits

Author SHA1 Message Date
Thomas Neirynck
984aaa80cf Align zoom level settings (#11399)
- allow 0-level for WMS services
- use zoom level 2, centered at 0,0 as new default when tilemap viz opens
2017-04-25 23:02:39 -04:00
CJ Cenizal
4209774dde Deprecate Bootstrap buttons (#11352)
* Migrate Console to kuiButton.

* Convert angular-bootstrap Timepicker and Tabs components to use kuiButtons.

* Convert Timelion to use kuiButtons.

* Convert Visualize and visTypes to use kuiButtons.
- Convert Heatmap vistype to use kuiButtons.
- Convert Visualize editor, AggTypes controls, and Heatmap options to use kuiButtons.
- Convert VisType control rows_or_columns to kuiButton.
- Adjust formatting of kuiButtons in AggTypes controls and Heatmap options.
- Convert Visualization save prompt to use kuiButtons.
- Convert visualize legend to use kuiButtons.
- Convert Visualize Spy to use kuiSelect instead of Bootstrap buttons.

* Convert Notify to use kuiButtons.
- Fix appearance of Notifier countdown.

* - Convert Dashboard to use kuiButtons and kuiMenuButtons.
- Convert Dashboard save panel to use KuiButtons.

* Convert Discover sidebar to use kuiButtons, and have an improved UX and accessibility.
- Convert Discover field chooser to use kuiButtons.
- Convert Discover no-results to use kuiButtons.
- Convert Discover save panel to use KuiButtons.

* Convert filter bar to use kuiButtons.

* Convert fatal splash screen to use UI Framework components.

* Convert number list to use kuiButtons.

* Convert stringify color editor to use kuiButtons.

* Convert timepicker directive to use kuiButtons.

* Convert Index Pattern Management to use kuiButtons.
- Convert Index Pattern Management field editor to use kuiButtons.
- Remove unnecessary ng-class from Create Index Pattern submit button.

* Remove unused global_config.html partial.

* Fix functional tests.
- Rename discover-save-search-btn test subject selector to discoverSaveSearchButton.
- Convert Notifier tests to use kuiButtons.
- Convert functional tests to use test subject selectors instead of relying on btn classes.
- Update HeaderPage and VisualizePage page objects to refer to timePickerGoButton.
- Fix broken functional tests for Discover, Visualize, and Settings.
- Fix failing Discover scripted fields tests.

* Fix visual bugs with FieldChooser string, Notifier buttons, and NumberList.

* Fix Number List so the 'remove' buttons are small.

* Fix FieldEditor to have space between Popularity input and dec/increment buttons.

* Update FieldChooser string partial to have padding around 'Visualize' button.
2017-04-24 16:35:58 -07:00
CJ Cenizal
b5d1df929a Refactor and document Visualize, Visualize Editor, and Visualization Spy. (#11359)
* Refactor and document Visualize, Visualize Editor, and Visualization Spy.
2017-04-24 12:58:15 -07:00
Jonathan Budzenski
5a6766bb50 [test/dashboard] Retry filter check (#11372)
* [test/dashboard] Retry filter check

* [test/dashboard] Use await on getFilters
2017-04-21 16:01:35 -05:00
CJ Cenizal
a605b7f478 Refactor Index Pattern Creation logic. (#11210)
* Reorder Create Index Pattern logic so local functions are before scope methods.
* Extract some Index Pattern Creation logic into sendCreateIndexPatternRequest and getDefaultPatternForInterval services.
* Use UI Framework typography components for Index Pattern Creation header.
* Separate user-specified variables for configuring the index pattern from controller variables, which just change the UI state.
* Rename index to newIndexPattern for clarity.
* Use controllerAs and fat arrow functions in Create Index Pattern.
2017-04-18 14:30:57 -07:00
Spencer
0c67890bd9 [dashboard] disable toast auto-hiding (#11248)
* [dashboard] disable toast auto-hiding

* [functional/service/kibanaServer] describe disableToastAutohide() method
2017-04-15 18:08:24 -07:00
Spencer
811ed5b5f5 Cleanup some FunctionalTestRunner tidbits (#11211)
* [esArchiver] match functionalTestRunner --config default

* [functionalTestRunner] expose readConfigFile function

* [functionalTestRunner/mocha reporter] define undefined variable

* [functionalTests/services/remote] log tunnel output in verbose mode
2017-04-13 12:15:01 -07:00
Peter Pisljar
766646c5be fixing heatmap black squares (#11121) 2017-04-12 18:40:58 +02:00
Spencer
90434765c0 [functionalTestRunner] replace intern (#10910)
* [functional_test_runner] replace functional testing tools with custom/pluggable solution

* [functional_test_runner] Convert unit tests to commonjs format

* [functional_test_runner] Fix dashboard test in wrong mode

* [functional_test_runner] Add dashboardLandingPage test subject

* [functional_test_runner] Get Visualize page object

* [functional_test_runner] Fix outdated references

* [functional_test_runner] Fix more outdated refs

* [functional_test_runner] Remove duplicate tests

* [functional_test_runner] Improve test readability

* [functional_test_runner] 😞 So many duplicate methods

* [functional_test_runner] Move mgmt `before` outside toplevel describe

* [functional_test_runner] Settings page obj missing methods

* [functional_test_runner] Add improvements from @gammon

* [functional_test_runner] Fix return statements in async funcs

* [functional_test_runner] Move before() to correct scope

* [functional_test_runner] Add after() hooks to remove index patterns

* [functional_test_runner] Attempt to fix vertical bar chart tests

* [functional_test_runner] Clean up

* [functional_test_runner] Reinstate unit tests

* [functional_test_runner] Set default loglevel back to info

* [functional_test_runner] Replace `context`s with `describe`s

* [functional_test_runner] Better error handling

* [functional_test_runner] Add in new Tile Map tests

* Incorporate changes from master

* [functional_test_runner] validate that every test file has a single top-level suite

* Update contributing doc with link to full doc

* [docs] Spelling and grammar fixes

* docs: writing and running functional tests

* [docs] Move plugin doc to plugin area

* [docs] Housekeeping. Doc in wrong place

* [docs] Remove dup doc file

* [grunt] Only run mocha_setup when running tests, not every grunt task
2017-04-11 17:01:06 -05:00
Thomas Neirynck
b1a7f22be3 add the functional tilemap test (#10992)
Since the unit-tests now verify all colors and sizing as well, this integration test is mainly relevant for verifying the zooming behavior.
2017-04-06 12:08:33 -04:00
CJ Cenizal
14ed2e55e6 Re-implement Visualize Wizard using Gallery component for selecting visualization type (#10972)
* Add Gallery and GalleryButton components to UI Framework.
* Re-implement Visualize Wizard using Gallery component for selecting visualization type.
2017-04-05 12:39:35 -07:00
Brandon Kobel
36f676cc2d Adding the data- prefix to the shared-item HTMLElements (#10888) 2017-04-05 08:03:46 -04:00
Thomas Neirynck
556bfab85d Geocentroid / tilemap bug fixes (#10871)
- adds the geo-centroid metric as the new default for visualizations
- various bug fixes and improvements
    - avoid unnecessary calls to manifest
    - avoid map flicker when zooming
    - enable scroll/pinch/touch zooming
    - avoid heatmap errors
    - ensure map fills screen in dashboard
    - ensure fit works consistently
    - relax tilemap constraints
    - remove support for multi-maps
- this refactor sets the stage for new vector map visualization which will reuse the same map components
2017-03-29 11:23:35 -04:00
Lukas Olson
b11bbc44a4 Fix interval drop-down for date histogram in discover (#10384)
* Hide the time interval select on blur

* Show scale warning on discover and keep drop-down

* Show scale without need to hover over info icon

* Remove unused variables

* Fix discover page object tests

* Fix getChartInterval in functional test
2017-03-28 16:51:12 -07:00
Spencer
e67790037a [esArchiver] combine elasticDump and ScenarioManager (#10359)
* As a part of bringing functional testing to plugins, esArchiver gives these plugins a way to capture and reload es indexes without needing to write a bunch of custom code. It works similarly to the elasticDump and ScenarioManager tools that it replaces.

Differences:
  - Streaming implementation allows for much larger archives
  - CLI for creating and using archives
  - Configurable archive location
  - Stores the data in gzipped files (better for source control, searching, large archives)
  - Automatically identifies and upgrades Kibana config documents

Methods:
  - `#load(name)`: import an archive
  - `#loadIfNeeded(name)`: import an archive, but skip the documents what belong to any existing index
  - `#unload(name)`: delete the indexes stored in an archive

CLI operations:
  - `./bin/es_archiver save <name> [index patterns...]`: save the mapping and documents in one or more indexes that match the wild-card patterns into an the `<name>` archive
  - `./bin/es_archiver load <name>`: load the mapping and documents from the `<name>` archive

* [functional_tests/common/nagivate] check for statusPage

* [es_archiver] move bins into new scripts dir

* [functional_tests/apps/context] use esArchiver

* [esArchiver] general improvements after showing to a few folks

 - remove auto-upgrading config doc logic (until we have better access to kibana version info)
 - export unload command
 - remove preemptive checks in favor of reacting to errors
 - use type "doc" vs "hit" for doc records (consistency)
 - wrote a bunch of pending tests to think though and plan

* [esArchiver] make log a stream that writes to itself

* [esArchiver] fill in stats and archive format tests

* [esArchiver] splitup action logic

* [esArchiver/cli] fix cli --help output and comment

* [esArchiver] remove type-based param coercion

* [esArchiver/log] use strings for log levels

* [esArchvier] remove unused var

* [esArchiver/indexDocRecordsStream] add tests

* [esArchive] fill in remaining tests

* [esArchiver] fix dem tests

* [eslint] remove unused vars

* [esArchiver/loadIfNeeded] fix call to load()

* [esArchiver] remove loadDumpData helpers
2017-03-27 15:29:14 -04:00
Stacey Gammon
1cd1dc9abd View edit 5 (#10585)
* Start at view/edit mode 4

* Revert back to save panel

- Get rid of `clone`
- Get rid of rename

* Move order of top nav component around so no chance of hitting Edit -> Cancel

* Update "lose changes" confirmation dialog

- Change the string and button text
- Set default focus on the cancel button.

* Remove DashboardViewMode

It was previously used when viewMode wasn’t stored in appState, in
order to keep an unsaved dashboard, that was just saved, in Edit mode.
This is unnecessary in the latest iteration.

* Pull time filter out of dashboard_state

* Fix edit controls bug, add more tests, make other tests more stable.

* Remove unnecessary logic, unapplied query bug fix, code clean up

* Fix bug on filter reloading, add tests & clean up

* Fix issue with move and remove icons showing up in expanded panel mode

and add tests to catch it.

* Fix issue with lose changes not resetting panel state

and add tests.

* General Clean Up

- Merge function only used in one spot inline.

Add comments

* address code review comments

* Stop using static + class to namespace functions

Instead, export each function individually.

* Show dashed border on maximized panels in edit mode.

* Be more methodical about ensuring the modal dialog hides before continuing.

* abide by new no unused vars rule
2017-03-23 10:15:30 -04:00
Jonathan Budzenski
28021f815f [lint] Fix no-undef errors (#10859) 2017-03-22 16:35:06 -07:00
Stacey Gammon
fd7801137a Introduce tests for add new visualization link (#10785)
* Introduce tests for add new visualization link

* address code review comment
2017-03-22 16:40:16 -04:00
Richard Hoffman
b4c18e4aa4 Indexed fields type filter (#10708)
* Add a dropdown to filter indexed fields by type

Added tests and test subjects for index pattern filters

Use UI Framework components

Change index field filter to use kuiFieldGroup, move filters below tabs

* Dynamically load indexed type filter based on existing field types

* Iterate over fields once to get types / languages

* Only check scripted flag for checking scripted lang fields, all other
fields should have their type added to type filter
2017-03-22 14:42:35 -05:00
Spencer
d8d65526c6 [eslint] enable no undef (#10825)
* [codeshift] add proper ignore comments

* [codeshift] apply require-to-import transform

* [codeshift/fixup] remove duplicate imports

* [eslint] upgrade config for react "unused" support

* [codeshift] apply remove-unused-imports transform

* [codeshift] apply remove-unused-basic-requires transform

* [codeshift] apply remove-unused-function-arguments transform

* [lintroller] fix argument list spacing

* [codeshift] apply remove-unused-basic-bars transform

* [codeshift/fixup] fixup unused basic var removals

* manually apply remove-unused-assignments transform

* [codeshift] reapply remove-unused-imports transform

* [codeshift] reapply remove-unused-function-arguments transform

* [eslint] autofix param spacing

* manually fix remaining no-undef errors

* use more descriptive file ignore pattern

* add eslint-plugin-react peerDependency

* replace values that looked unused in tests

* remove // kibana-jscodeshift-no-babel comment

* remove import statements from code required by api tests

* Remove '// kibana-jscodeshift-ignore' comments

* address review feedback

* remove remnant of removed if condition
2017-03-22 07:08:23 -07:00
Chris Cowan
4f3e625d7f Time Series Metric Visualizations (#9725)
* Initial import

* updating the editor width to match the new specs

* Adding tribe node support

* Adding tests for server libs

* removing bluebird

* removing extra cruft

* Fixing the font sizes

* Fixed the updating code

* Adding brushing

* Fixing linting issues

* Adding global filters

* Adding missing packages

* Default gauge style to half circle

* Fixing the markdown css bug

* Adding tests for the get_vis_data api

* Adding time offset

* Adding time offset to each type

* fixing bugs from time offset

* adding index pattern option to series

* Adding index pattern overrides

* Adding index pattern overrides

* Fixing tests

* Fixing brushing in the vis editor

* Changing the label

* Change the behavior of selecting a pipeline agg when only one exists.

* Refactoring series a bit

* Changing series options to just options

* Making sure we honor the toaster container height

* Adding first tests

* renaming vis_config to panel_config

* renaming vis_config to panel_config

* Adding more tests

* adding more tests

* removing api subdirectory

* refactoring get_vis_data (breaking it up and removing unused imports)

* reorganizing the visualization directory

* Re-organizing directory layouts and moving things to more logical places

* Refactoring React compontents to use ES6 syntax and adding propTypes for each. Also refactored out splats as much as possible.

* Adding serial differencing

* Refactored gauge to use 2 components instead of 4

* Finishing react refactor on visualizations. Consolidated legned funtionality

* Refactoring series config and removing a bunch of duplicate code

* fixing series config name

* Fixing numbers and strings (doesnt matter which it is); Fixing classname

* Changing the way the dark theme works

* Adding new vis into list for test

* Adding empty bucket check

* Fixing the index patterns in the aggs

* Fixing typo

* Refactoring vis_data

* Fixing std_metric

* Fixing refresh-hack

* Adding tests for get_splits, get_last_metric, map_bucket

* Fixing the error handing

* removing restrictions

* Sometimes values are strings or numbers... it doesn't matter

* Adding new color options for splits

* Fixing colors

* fixing size

* Adding support for fitlers agg

* Fixing tests

* Fixing splits for filters

* Fixing Top N to work better with fitlers

* Adding annotation editor

* initial work for annotations

* Finalizing annotations

* Fixing label

* making it expandable

* Fixing hacks fixed by #10175

* Fixing bars to use the same stacking options as lines

* Getting rid of align by colons

* removing unused depends

* removing unused depends

* Changing to readable lodash function

* Adding missing parens

* refactoring custom color picker

* Removing string refs and converting uncontrolled components

* Fixing the controlled components where value maybe null; converting error to css

* refactoring styles from components

* fixing the refresh behavoir borked by fullEditor

* Adding the executor service

* Fixing the test directories

* fixing save

* Adding filter ratios

* Fixing controlled components

* Trying to fix the weird typing

* Fixing offset bug with days

* Adding percentile rank

* Fixing yaxis updates; fixing percentile rank layout; adding steps to line chart

* removing unused depends

* Fixed a bug with the index patterns updating; fixed bug with charts rendering too much

* Fixing tests

* Commenting out React tests because the ENV must have change and they are no longer working

* Moving bucket transform

* moving calculate auto

* Moving calculate_indices

* moving extended_stats_types && get_agg_value

* moving get_buckets_path

* moving get_sibling_agg_value

* moving parse_settings

* moving series_agg

* Moving unit_to_seconds

* Fixing tests

* Fixing per PR

* Renaming vars to make it more clear what's happening

* Changing the way testible functions are exported

* fixing tests

* removing unused imports; fixing typos; fixing package name

* Name has to match the plugin path

* Fixing typos; removing unused imports

* fixing tests

* rearanging and removing unused imports

* Fixing a bug with unque names for radio buttons on the same form

* Fixing filter ratio to use a metric instead of just count

* fixing a bug with the new filter ratios

* Fixing the file path from the #8

* Fixing renderComplete trigger; Fixing embedded mode; Changing names for Timelion and Time Series Visual Builder

* Fixing name

* Fixing docs

* Fixing a typo for the field select for terms splits

* Fixing tests
2017-03-02 13:07:28 -07:00
Peter Pisljar
7084d5573f using field formatters for heatmap legend (#10529)
* using field formatters for heatmap legend

* fixing test
2017-02-24 21:06:22 +01:00
Stacey Gammon
c253583a3d Warn if the title is a duplicate (#10321)
* Warn if the title is a duplicate

* warn when copyOnSave is checked.  add a test

* update message

* fix tests

* Fix issues with substring matching

add more tests.

* make case insensitive and return matching title

* Fix bug caused by subtle difference between this.type and type

Add a comment and rename one of the variables to make the distinction
clearer.

* add debug messages.

* fix tests again

* uncomment out tests

* more debug messages

* save more screenshots

* Need to wait till save finishes or the page may redirect the url after the page has navigated away

* address code review comments
2017-02-24 09:26:37 -05:00
Peter Pisljar
4c5044a302 Clarifying changing chart type option (#10463)
* fixing #10427

* fixing test
2017-02-24 10:28:47 +01:00
Brandon Kobel
a0536b1fce Fixing a naming collision the shared-item visualize tests were hitting (#10517) 2017-02-22 16:48:35 -05:00
Felix Stürmer
85facdd04d Show event context (#9198)
This adds a link to the detail view of discover rows to switch to a view of the documents immediately before and after the selected document. Since that view uses the timestamp field of the index pattern, it is only available for time-based indices.

See #9198 for detailed screenshots.
2017-02-22 18:27:49 +01:00
Brandon Kobel
0bd7f4264e Executing the visualize shared-item title/description tests in a try (#10441)
This function test can be flaky if we try to grab the attributes before
the visualization has finished rendering, so we're wrapping it in a try
2017-02-22 07:14:21 -05:00
Brandon Kobel
2fb2b4ca6c Adding attributes to be used by sharing (#10234)
* Adding attributes to be used by sharing

* Moving the shared-item tags for dashboard panels

* Switching from shared-item-title/description to just title/description

* Removing move noise

* Fixing typo

* Adding data- prefix before attributes, began writing tests

Adding shared-item title tests

Switching up the panel tests

Adding description tests

Fixing linting

Adding dashboard timefilter test

Adding visualization shared-item tests

Adding shared-timefilter tests

Adding discover shared-item tests

* Fixing shared-items-count on dashboard

* Fixing functional test data for discover and visualize
2017-02-17 06:59:36 -05:00
Peter Pisljar
4c85fd4954 Vislib Point Series Charts (#9642)
* adding vislib chart grid

* updating vislib to correctly render all new features

* adding new options to kibana visualizations

* update vis icon on save

* updating documentation

* fixing unit tests

* cleaning up

* updating based on UI review

* adding visualize editor unit tests

* selenium tests

* additional option tabs

* some more changes to the tabs/options [thanks CJ]

* going back from Category/Value axis to X/Y axis

* fixing unselected dropdown options

* updating based on last UI review

* updating based on last review

* updating based on last review

* fixing issue with axis titles

* allowing to specify only upper or only lower data bound

* updating based on brandons review

* fixing horizontal bar chart labels

* fixing test

* adding backward compatibility

* updating based on last review

* fixing selenium tests
2017-02-15 17:54:42 +01:00
Felix Stürmer
2796e7798b Stabilize tests involving absolute timepicker (#10308)
* Stabilize tests involving absolute timepicker

The asynchronous nature of angular's digest cycle and the page rendering
in the browser can lead to situations in which
`isGlobalLoadingIndicatorHidden()` returns true because the loading
triggered by the previous action has not yet started. In this case
subsequent actions incorrectly assume the loading has already been
completed. This is probably responsible for the flakiness described in #10302.

The newly introduced `waitUntilLoadingHasFinished` first waits for a
duration up to `defaultTimeout` for the loading indicator to appear
before waiting for it to be hidden again. In the best case this will
reduce the false positive rate of `setAbsoluteTimerange()`. In the worst
case the function will wait `defaultTimeout` longer than when just using
`isGlobalLoadingIndicatorHidden`.

fixes #10302
2017-02-14 19:09:53 +01:00
Richard Hoffman
8b4c052889 babel 6 upgrade (#9702)
* [npm] upgrade babel

The upgrade to babel 6 requires an upgrade to all of the associated modules, which meant that a few other things changed at the same time. The most notable is the way that we handle our babel-options, which is now done with an npm module and includes using the babel-loader's "presets" query string param.

This meant changes to the babel_options.js module and extending it to help setting up the "babel-register" module, which was previously copy-pasted in several places.

* [mtodules] upgrade to support babel6 module semantics

* [eslint] fix lint errors

* [babel] ignoer massive fixture files

* [cli/errors] use Object.setPrototypeOf since subclassing Error is broken

* [babel] Upgrading core babel libraries

[babel] Use WIP babel-6-fix branch of babel-preset-kibana

* Fix broken test

* [babel] Reverse unnecessary module.exports changes

* Fix notifier

* Use babel presets and plugins directly

* [babel/options] resolve preset/plugins paths for better plugin compatibility

* [babel/options] use babel-preset-env for correct node settings

* [babel] cache babel compilation in webpack like we thought we were
2017-02-09 14:48:55 -07:00
Jonathan Budzenski
0d9e51f72f [functional tests] Remove include_in_all (#10268)
* [functional tests] Remove include_in_all

* [functional tests] Get milliseconds from date
2017-02-09 13:52:07 -06:00
Stacey Gammon
20ea24f358 Refactor out state logic from dashboard directive (and a bugfix) (#10152)
* New state and tests and time fixes

* Code review comments

* Remove saving filters if "enter" hasn't been pressed
2017-02-09 09:37:37 -05:00
CJ Cenizal
a5705f8dd0 Add landing page with table to Visualize app. (#9605)
* Refactor Visualize Wizard to use explicit controller names, instead of defining them dynamically.
* Add landing page with table to Visualize app.
* Update Visualize wizard UI.
* Add kuiIcon--basic and support icons in Table component. Display icons in Visualize landing page.
* Refactor Visualize Wizard templates to use import syntax.
* Set kuiViewContent width to 100% to avoid it shrink wrapping its content.
* Move ToolBar buttons to the right side. Remove labels and add tooltips.
* Remove unused Visualize load menu template.
* Disable timepicker in Visualization listing.
* Change Visualize route names. Add omitPages attribute to breadcrumbs directive. Make Visualize breadcrumbs into links.
* Remove Open and New menu buttons from Visualize.
* Add ConfirmationModal for deleting visualizations.
* Implement sorting for name and type columns in Visualize listing.
* Refactor Visualize routes into VisualizeConstants file. Fix functional tests.
* Add pager_controls directive and pager service. Add pagination to Dashboard and Visualize landing pages. Change Dashboard listing to use hrefs for each dashboard.
* Use ng-if instead of ng-hide to hide/reveal Table action buttons in Dashboard listing.
* Redirect from old Visualize wizard routes to new ones.
* Use ViewContent and Title components in Visualize wizard.
* Fix Visualize and Dashboard listing table logic so that selection only applies to the current page of items.
* Paging clears the selection.
* Searching clears the selection.
* Sorting clears the selection.
* Use consistent "Create" terminology in both Visualize and Dashboard for creating new items.
* Use NoItems and PromptForItems components in Visualize listing view.
* Use $injector to inject dependencies in Visualize and Dashboard listing.
2017-02-06 14:41:21 -08:00
Thomas Neirynck
1df8e80bc2 Should only support 10 zoom levels. (#10041)
The map service is dialed back to only support 10 zoom levels iso. 12. Update corresponding integration test.
2017-01-25 09:48:18 -05:00
Stacey Gammon
5ba6603042 Dashboard landing page (#10003)
* Introduce dashboard landing page

Still TODO:
 - Add clickable breadcrumbs
 - Remove New and Open top nav options

* use clickable breadcrumbs instead of 'New' and 'Open' nav items

* code cleanup

improve tests

* Add new empty dashboard styling

* Fix selenium tests

* Address code review comments

- rename bread_crumb_url => bread_crumb_urls
- fix reporting link in dash (separate PR)
- Use NoItems instead of PromptForItems when searching
- Style fixes

* Use a constant for the landing page url

* Fix tests
2017-01-25 09:44:40 -05:00
Stacey Gammon
0f0981c5e9 Restructure dashboard files and folders (#9969)
* Restructure dashboard files and folders

* Try to stay DRY

avoid duplicate ‘dashboard’ naming when unnecessary

* rename index => dashboard and add an index.js with imports

rename style

* un-dig
2017-01-20 10:01:55 -05:00
Stacey Gammon
d295553d95 fix selenium tests broken by default panel size change (#9802) 2017-01-09 17:03:27 -05:00
Thomas Neirynck
929b4de122 Read map service metadata from external service (#8630)
This modifies the way Kibana reads out metadata about the TMS service used in the Tilemap Visualization.

- Kibana now uses an external service that exposes a 'manifest'. This contains metadata about one or more available TMS services
- Kibana continues to respect the configuration of the kibana.yml file. If a custom TMS service is set here, the manifest will not be consulted
- This also adds an API extension point for other plugins to add additional query parameters to the requests to the manifest service and for the individual tile requests to the TMS.
2017-01-03 17:33:26 -05:00
Peter Pisljar
ae150f5835 Vislib heatmap visualization (#9403)
* adding UI styles (should extract)

* adding heatmap vislib type

* adding heatmap visualization

* adding documentation

* renaming heatmap options

* fixing options issues

* fixing color selection

* fixing / adding tests

* adding more color schemas

* adding more options

* adding cell labels

* fixing selenium test

* only allow to rotate labels by 90 degrees

* converting color number slider to number input

* hide labels if they don't fit

* fixing small issues

* improved range options

* fixing based on Thomas' review

* rebasing on master and fixing linting issues

* adding selenium tests

* fixing alerts

* fixing padding

* fixing based on review

* fixing math

* fixing custom range options

* removing $timeout

* notification in case labels were hidden

* fixing tests

* fixing based on last review

* fixing based on thomas' review
2016-12-26 19:15:50 +01:00
Lee Drengenberg
0cbec2cad7 New scripted field tests (#9242)
* [WIP] new scripted field tests

* Final improvements on 12 new tests for 1 expression and 2 painless scripted fields

* Add try loops around testing first Discover doc

* Set timezone to UTC and adjusted data accordingly

* Added boolean and date Painless scripted field types

* Remove unused (non-working) methods

* Fix lint error

* Added several data-test-subj attributes and used them in the tests

* Reverting previous change to getBarChartData
2016-12-20 12:19:59 -06:00
Spencer
db60725a02 [eslint] enable object-curly-spacing and no-global-assign (#9486)
* [eslint] update eslint config to 0.3.0

* [eslint] autofix

* [fixtures/hits] reformat to comply with max-len lint rule
2016-12-14 13:29:32 -07:00
Spencer
e488a16e6f [eslint] reenable no-extra-semi and quotes rules (#9473)
* [eslint] re-enable no-extra-semi and quotes rules

* [eslint] update to version 0.2.2 of eslint config

* [eslint] autofix
2016-12-13 18:17:47 -07:00
Spencer
2f6654bcec [eslint] re-enable no-var and prefer-const (#9455)
* [eslint] enable no-var and autofix

* [eslint] enable prefer-const and autofix

* [eslint] fix autofix-incompatible no-var and prefer-const violations
2016-12-13 10:44:27 -07:00
Spencer
0c736724b0 Upgrade eslint (#9357)
* upgrade eslint, all related deps, and config files

* replace gruntify-eslint with basic eslint-cli wrapper

* arrow-IIFEs must be invoked outside of the parens

* move import statements before their use

* reindent to satisfy new indentation check algorithm

* place missing semicolon

* ignore copy-pasted decode geohash code

* [grunt/eslint] fix argument spacing

* [gurnt/eslint] add comment about contents of report

* [grunt/tasks] use `export default`
2016-12-12 13:44:18 -07:00
Peter Pisljar
b19794585b Vislib Point Series updates (#9044)
Multiple changes to the Vislib point series charts. Before each of the chart (bar/area/line) would be an independent unit responsible for drawing all of its parts (axes, titles). This change splits things up so we can have greater control and better code reuse.

converting to ES6
moving axes out of each chart
joining both axes types (x and y) into a common axis type
allowing multiple axes
allowing top/bottom/left/right axis positioning
introducing new chart type 'point_series' which can combine bar/line/area series
making each of the series (bar/line/area) direction independent (vertical/horizontal charts)
2016-12-06 12:55:17 +01:00
Thomas Neirynck
31a6cbab6d Add Tag Cloud Visualization
A tag cloud visualization is a visual representation of text data, typically used to visualize free form text. Tags are usually single words. The font size of word corresponds  with its importance.
2016-11-21 17:03:25 -05:00
Stéphane Campinas
0b877f6313 Exclusion of source fields (#7402)
* added source filtering

* ditched the new 'retrieved fields' tab and added checkbox to exclude a field in the field control

* disable field exclusion checkbox if field is a metafield

* [indexPattern] copy excluded field property when refreshing fields

* [indexPattern/field] move isMetaField consideration into Field

* [indexPattern/edit] invert the "retreived" column, for accuracy

* [indexPattern/field] touchup the field.exclude message

* Fix typo

* [indexPattern] handle index patterns without fields

* [courier/searchSource] auto add source filter for index pattern

* [docTable] remove irrelevant test about source filtering

* [settings/indices] cleanup imports

* [settings/indexPattern/fields] add "field filters" tab

* [imports] fix old testUtils import

* [ui/fieldWildcard] add lib to match names based on field-style wildcards

* [settings/fieldFilters] list filter matches, remove excluded fields from fieldata_fields

* [fieldWildcard] properly escape regexp control chars

* [settings/indexPatterns] mark fields excluded if they match an exclude pattern

* [fieldWildcard] properly bind the regexp to the ends

* [indexPattern] remove unneeded lodash chain

* [settings/indices] use settings-indices- prefix for tab direcives

* corrected rebase on master

* Do not match exclusion on meta/scripted fields. Disable filter bar when on 'Filter fields' tab. Removed exclusion checkbox in the field controls page. Corrected typos. Improved documentation phrasing.

* corrected error in merge with _index_pattern

* removed unused code

* added missing fieldFilters to test dumps

* corrected merge with master

* removed default empty array in the index pattern schema, and check if fieldFilters exists

* restricts the source with the exclusion patterns set for that index pattern

* renamed field filters to source filters and explicitely retrieve the source in the doc controller

* renamed variables/moved files from field filters to source filters

* Renamed _field_types.js to _edit_sections.js to better reflect what it is for. Corrected editting typo. Renamed exclude column name to excluded. Corrected HTML styling. Removed unused config parameters in field_wildcard.

* Removed lines that were specifying the _source field since they were made unnecessary by https://github.com/elastic/kibana/pull/7402/files#diff-d1695ba2026ff89878f9e4f4de683758R50

* moved fielddata_fields source filtering to where it is initialized

* two-column layout for the source filters indices section

* corrected tests

* use the same table layout as in the other index sections.
Filter input correctly restricts source filters.
Do not match .keyword fields.

* Filter out .raw suffix from possible matches.
Removed unused HTML file.
Corrected bug that allowed to save an empty source filter.

* exclude is deprecated, should be excludes

* improved description

* changed as per code review

* removed filtering logic for keyword and raw fields
2016-11-01 10:48:43 -07:00
Lee Drengenberg
8ed3b333b0 Port #8880 to master Support Cloud testing (#8915)
* Support Cloud Kibana UI testing master

* Add xpack file

* cherry-pick 9f63224e77
2016-11-01 10:44:12 -05:00
CJ Cenizal
59d65fd672 Fix bug where the loading indicator was wider than the screen (#8854)
* Fix bug where the loading indicator was wider than the screen, allowing you to drag a dashboard panel very wide and break the UI.
* Refactor kbnLoadingIndicator to be a standalone component.
* Make loadingIndicator fixed position so it doesn't disrupt the layout when it appears and disappears.
* Uncouple from .spinner styles.
* Set a max-width on it.
* Rename Common PageObject getSpinnerDone method to isGlobalLoadingIndicatorHidden.
2016-10-31 16:08:38 -07:00