Commit graph

9963 commits

Author SHA1 Message Date
spalger 22c6f7c55c [indexPatterns] add workaround for elastic/elasticsearch#20707 2016-09-30 12:21:07 +02:00
Jim Unger a2a620373a Merge pull request #8465 from BigFunger/draggable-to-ui
Moved draggable directives into the ui directory
2016-09-23 14:59:05 -05:00
Jim Unger 1fa424c87d Moved draggable directives into the ui directory 2016-09-23 14:23:15 -05:00
Thomas Neirynck b487adb830 Merge pull request #8448 from thomasneirynck/enh/8443
Add highlight opacity as global setting
2016-09-23 15:02:20 -04:00
Jim Unger ebaed2f7fd Merge pull request #8442 from BigFunger/draggable-rework
Draggable rework
2016-09-23 13:54:10 -05:00
Jim Unger 5d5b581399 renamed baseIndex to indexOffset 2016-09-23 13:09:38 -05:00
Thomas Neirynck 807cc1b491 improve code style 2016-09-23 13:41:47 -04:00
Thomas Neirynck 8d10852a73 coerce opacity to valid value 2016-09-23 13:09:31 -04:00
Matt Bargar a2f5c89bcc Merge pull request #8421 from Bargs/useStats
Filter non-aggregatable fields from vis editor UI
2016-09-23 11:34:18 -04:00
Matthew Bargar 4a906f30c7 Filter non-aggregatable fields from vis editor UI
Using the field_capabilities API added in the previous commit, this commit enhances
the client side index pattern object with information about the
searchable and aggregatable status of each field in the index pattern.
We then use this information to filter out non-aggregatable fields from
the vis editor so that users won't accidentally select them and get
nasty errors. An example of a non-aggregatable field would be a `text`
field without fielddata enabled (which is the default).

I also added the searchable and aggregatable flags to the index pattern
page so users can see the status of their fields. I removed the `indexed`
column because it was mostly redundant with `searchable` and I needed
the horizontal space.

The addition of the searchable and aggregatable properties for index
pattern fields would require users to manually refresh their field list
when upgrading to 5.0. This commit also adds a check for those properties and
if they're missing it automatically refreshes the field list for the
user in a seamless manner.
2016-09-23 10:31:45 -04:00
Matthew Bargar 1af6b76bd4 Add field_capabilities API
This adds a simple API for getting the searchable/aggregatable status of
a list of fields in a given index, list of indices, or index pattern. In
the future this will probably evolve into a full blown fields info API
that we can use when removing the index pattern mapping cache. For now
though it's built to provide the minimum info needed to fix
https://github.com/elastic/kibana/issues/6769

Usage:

The API exposes a single GET endpoint.

```
GET /api/kibana/{indices}/field_capabilities
```

`indices` can be a single index, a comma delimited list, or a wildcard
pattern

Example response:

```
{
  "fields": {
    "imsearchable": {
      "searchable": true,
      "aggregatable": false
    },
    "imaggregatable": {
      "searchable": true,
      "aggregatable": true
    },
  }
}
```
2016-09-23 10:30:44 -04:00
Spencer 9f5f567004 Merge pull request #8439 from spalger/fix/functional-tests/tilemap-timeout
[vislib/tilemap] ensure listeners are cleaned up
2016-09-23 00:07:11 -07:00
Thomas Neirynck b02bbad6c8 Add highlight opacity as global setting
The opacity of the items that are dimmed on a chart can now be configured. This is useful for users who want to increase or decrease the contrast between the element under focus and the other elements.
2016-09-23 01:23:33 -04:00
Matt Bargar 7463cd465b Merge pull request #8391 from Bargs/revertTemplateDeletion
Don't try to delete index template along with pattern
2016-09-22 18:57:32 -04:00
Jim Unger f4717fa5eb fixed some re-ordering edge cases and agg_group now uses group instead of vis.aggs 2016-09-22 17:01:18 -05:00
Jim Unger 6797ca5ddd used string templates for test descriptors 2016-09-22 17:00:01 -05:00
Jim Unger ee6962c8e8 re-adds the dragula base styles 2016-09-22 16:57:29 -05:00
spalger 66e4dbbc66 [vislib/tilemap] ensure listeners are cleaned up
With the new "rendered" event, the listener added in the handler was not being cleaned up. This changes it to use the handler's `binder`, which will cleanup the listener when `handler.destroy()` is called.
2016-09-22 11:33:07 -07:00
Spencer d1e56d789c Merge pull request #8342 from spalger/fix/apply-settings-in-console
[console] Fix settings
2016-09-22 10:51:20 -07:00
Peter Pisljar 5b28367f25 Merge pull request #8372 from ppisljar/fix/vislibRenderedEvent
adding mapLoaded event to tile_map visualization
2016-09-22 17:58:40 +02:00
spalger 752c3339c2 [console] add functional tests to ensure that settings work 2016-09-22 08:48:34 -07:00
spalger 086a40c476 [console] fix references to getInput function
When splitting the input/output modules into an `initializeInput` and `getInput` pair, it was changed to an esModule. This means that you can no longer require is and execute it's default export directly, as was being done in the console's settings module.
2016-09-22 08:47:38 -07:00
ppisljar b4780fe04b fixing based on Spencers comments 2016-09-22 09:24:19 +02:00
Peter Pisljar 0b8ff409f1 Merge pull request #8371 from ppisljar/fix/resizeChecker
fixing charts to not render twice
2016-09-22 08:00:34 +02:00
Spencer 2610c11490 Merge pull request #8420 from spalger/fix/functional-tests/console-help-close
[functionalTests/console] fix test subject selector
2016-09-21 17:32:03 -07:00
Thomas Neirynck e4f0ac8cd6 Merge pull request #8422 from thomasneirynck/fix/8322
Ensure table updates when page settings update
2016-09-21 20:14:26 -04:00
Thomas Neirynck 0cf2202299 Ensure table updates when page settings update
The entire table should also refresh when one of the options changes. Otherwise,
the rows are not filled in correctly to the bottom of the page.
2016-09-21 19:38:29 -04:00
spalger 5916354144 [functionalTests/console] fix test subject selector by focusing on help-specific button 2016-09-21 16:35:49 -07:00
Spencer 4552643656 Merge pull request #8355 from spalger/fix/devtools-header-stacking
[kbnDevToolsApp] allow extending the top nav
2016-09-21 15:48:11 -07:00
ppisljar cdad7724bc fixing based on Spencers comments 2016-09-21 21:41:57 +02:00
Peter Pisljar bde2591501 Merge pull request #8396 from ppisljar/fix/mochaDescribeOnly
fixing top_level_describe_filter to allow describe.only in unit tests
2016-09-21 21:23:34 +02:00
Jonathan Budzenski a2875d6036 Merge pull request #8338 from jbudz/issues/7706
(mappings) Follow kibana index alias when fetching types
2016-09-21 13:21:46 -05:00
Tyler Smalley 66a0ce349d Merge pull request #8351 from tylersmalley/issues/6771
Prevents lengend from expanding page
2016-09-21 10:06:21 -07:00
Tyler Smalley bb6632f3c7 Prevents lengend from expanding page
* Legends will overflow along the y-axis, maintaining a 100% height of the page
* With these changes, space-between would at times place the text out of view

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2016-09-21 09:18:11 -07:00
ppisljar 65edc94a23 adding comment 2016-09-21 16:05:32 +02:00
Jonathan Budzenski 175c3b6bb1
(mapping) Remove indexName var 2016-09-21 09:00:43 -05:00
ppisljar 14817199a7 fixing top_level_describe_filter to allow describe.only in unit tests 2016-09-21 10:12:41 +02:00
ppisljar 40234e8e41 fixing tests 2016-09-21 09:21:01 +02:00
Spencer d95468e06c Merge pull request #8368 from spalger/fix/base-path-proxy/redirect-login
[basePathProxy] redirect login urls to new basePath
2016-09-20 16:14:21 -07:00
spalger e8db02577b [basePathProxy] redirect login urls to new basePath 2016-09-20 16:06:41 -07:00
Thomas Neirynck 058ddd6980 Merge pull request #8312 from thomasneirynck/fix/8300
do not remove selection when clicking refresh fields
2016-09-20 18:46:02 -04:00
Matthew Bargar daa5b3b31f Don't try to delete index template along with pattern
This commit reverts a change to use the ingest API when deleting index
patterns via the Kibana UI. Back when I was building the Filebeat wizard
it made sense to try to delete any index templates or pipelines that may
have been created along with an index pattern. But now that we're only
shipping with CSV Upload, and we don't delete the actual indices that
CSV upload creates, it doesn't make much sense to delete the template.
Now we'll treate the indices and templates consistently.

This also fixes an issue where users would get a fatal error if they
were using Security and they didn't have permissions to delete
templates. Every index pattern deletion would also attempt to delete an
associated template, so if the user didn't have the correct permissions
they would get a 403.

Related: https://github.com/elastic/kibana/pull/6457
2016-09-20 18:43:03 -04:00
spalger 52dbb264d2 [functionalTests] prevent test failure by retrying find call 2016-09-20 15:40:51 -07:00
Thomas Neirynck 411957cd96 improve readability 2016-09-20 18:37:32 -04:00
spalger 5bff9daa94 [kbnDevToolsApp] allow extending the top nav
The kbn-dev-tools-app directive renders a navbar above each devtool, giving it breadcrumbs and links to the other devtools. This collides with the toolbars used in devtools like console and causes two mostly-empty toolbars to be stacked.

To fix this, we are merging the navbar from kbn-dev-tools-app and the toolbar provided by the devtools into a single kbn-top-nav toolbar. Console already used the kbn-top-nav directive for it's navbar, so kbn-dev-tools-app just needed to be extended to consume and render the kbn-top-nav configuration (a controller in this instance).
2016-09-20 14:04:31 -07:00
Stacey Gammon 935b812c98 Merge pull request #8383 from Stacey-Gammon/bug/6726/refresh-timepicker
Update absolute time picker when time selection changes.
2016-09-20 16:30:39 -04:00
Stacey-Gammon 12f61e1eb9 Update absolute time picker when time selection changes.
Listen for changes made to timefilter.time and update the absolute time
picker accordingly.
2016-09-20 15:41:50 -04:00
ppisljar 8324f5a83e adding rendered event to each chart and renderComplete to vis 2016-09-20 19:54:52 +02:00
CJ Cenizal 2dbe4b98c5 Merge pull request #8364 from cjcenizal/improvement/test-dev-ui
Prevent visualization element from blocking mouse interaction in test:dev UI.
2016-09-20 10:54:42 -07:00
CJ Cenizal d3ea4956b4 Merge pull request #8339 from cjcenizal/8330/bug/term-agg-size-0
Set minimum aggregation 'Size' input value to 1, because ES will return an error if you provide a size of 0.
2016-09-20 10:38:55 -07:00