Commit graph

14526 commits

Author SHA1 Message Date
Jim Unger
3da6cc3696 Merge pull request #8466 from elastic/jasper/backport/8442/5.0
[backport] PR #8442 to 5.0
2016-09-23 14:52:53 -05:00
Elastic Jasper
b233029c57 Backport PR #8442
---------

**Commit 1:**
re-adds the dragula base styles

* Original sha: ee6962c8e8
* Authored by Jim Unger <bigfunger@gmail.com> on 2016-09-22T21:57:29Z

**Commit 2:**
used string templates for test descriptors

* Original sha: 6797ca5ddd
* Authored by Jim Unger <bigfunger@gmail.com> on 2016-09-22T22:00:01Z

**Commit 3:**
fixed some re-ordering edge cases and agg_group now uses group instead of vis.aggs

* Original sha: f4717fa5eb
* Authored by Jim Unger <bigfunger@gmail.com> on 2016-09-22T22:01:18Z

**Commit 4:**
renamed baseIndex to indexOffset

* Original sha: 5d5b581399
* Authored by Jim Unger <bigfunger@gmail.com> on 2016-09-23T18:09:38Z
2016-09-23 15:45:14 -04:00
Matt Bargar
49e858d133 Merge pull request #8462 from elastic/jasper/backport/8421/5.0
[backport] PR #8421 to 5.0
2016-09-23 12:31:34 -04:00
Elastic Jasper
1c53b0df04 Backport PR #8421
---------

**Commit 1:**
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
    },
  }
}
```

* Original sha: 1af6b76bd4
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-09-21T18:38:34Z

**Commit 2:**
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.

* Original sha: 4a906f30c7
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-09-21T19:18:10Z
2016-09-23 12:21:40 -04:00
Matt Bargar
64ef508975 Merge pull request #8447 from elastic/jasper/backport/8375/5.0
[backport] PR #8375 to 5.0
2016-09-22 19:40:57 -04:00
Elastic Jasper
839cbd39d3 Backport PR #8375
---------

**Commit 1:**
Make expected server.basePath usage more clear

* Original sha: 02c9030c6a
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-09-20T15:48:35Z
2016-09-22 19:40:23 -04:00
Matt Bargar
1fcde2274d Merge pull request #8444 from elastic/jasper/backport/8391/5.0
[backport] PR #8391 to 5.0
2016-09-22 19:11:39 -04:00
Elastic Jasper
f79e54de7b Backport PR #8391
---------

**Commit 1:**
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

* Original sha: daa5b3b31f
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-09-20T22:43:03Z
2016-09-22 18:59:17 -04:00
Matthew Bargar
b4e06e314e Update doc version variables 2016-09-22 12:44:26 -04:00
Matthew Bargar
034e7d9bd1 Update package repo urls 2016-09-22 12:35:19 -04:00
Peter Pisljar
080fb1d49b Merge pull request #8434 from elastic/jasper/backport/8372/5.0
[backport] PR #8372 to 5.0
2016-09-22 18:20:06 +02:00
Elastic Jasper
9de65665cc Backport PR #8372
---------

**Commit 1:**
adding mapLoaded event to tile_map visualization

* Original sha: e198f4129f
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-09-20T10:22:43Z

**Commit 2:**
adding rendered event to each chart and renderComplete to vis

* Original sha: 8324f5a83e
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-09-20T17:54:52Z

**Commit 3:**
fixing based on Spencers comments

* Original sha: b4780fe04b
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-09-22T07:24:19Z
2016-09-22 11:59:13 -04:00
Peter Pisljar
8d733f118a Merge pull request #8432 from elastic/jasper/backport/8186/5.0
[backport] PR #8186 to 5.0
2016-09-22 17:58:25 +02:00
ppisljar
47911d6fc5 Backport PR #8186
---------

**Commit 1:**
converting to ES6 class syntax

* Original sha: 161ba75d46
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-09-08T14:28:44Z

**Commit 2:**
let to const

* Original sha: 9cb6b60fe0
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-09-08T14:54:41Z

**Commit 3:**
fixing indentation to match our style

* Original sha: 0b63b830f2
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-09-08T15:08:56Z

**Commit 4:**
removing unused variables/imports

* Original sha: 93295012fc
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-09-08T15:23:24Z
2016-09-22 17:47:41 +02:00
Peter Pisljar
e86b355b40 Merge pull request #8425 from elastic/jasper/backport/8371/5.0
[backport] PR #8371 to 5.0
2016-09-22 17:05:37 +02:00
Thomas Neirynck
3f0f105fc9 Merge pull request #8428 from elastic/jasper/backport/8422/5.0
[backport] PR #8422 to 5.0
2016-09-22 10:36:43 -04:00
Elastic Jasper
1904f56c73 Backport PR #8422
---------

**Commit 1:**
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.

* Original sha: 0cf2202299
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-09-21T23:38:29Z
2016-09-22 09:55:07 -04:00
ppisljar
481fcfff8f Backport PR #8371
---------

**Commit 1:**
fixing charts to not render twice

* Original sha: f7f0f12439
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-09-20T08:55:55Z

**Commit 2:**
fixing tests

* Original sha: 40234e8e41
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-09-21T07:21:01Z

**Commit 3:**
fixing based on Spencers comments

* Original sha: cdad7724bc
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-09-21T19:41:57Z
(cherry picked from commit 61d487c)
2016-09-22 09:11:35 +02:00
Tyler Smalley
48725a379a Merge pull request #8414 from elastic/jasper/backport/8351/5.0
[backport] PR #8351 to 5.0 - Prevents lengend from expanding page
2016-09-21 15:16:29 -07:00
Peter Pisljar
761bb9ffc5 Merge pull request #8419 from elastic/jasper/backport/8396/5.0
[backport] PR #8396 to 5.0
2016-09-21 21:43:18 +02:00
Elastic Jasper
1214092b77 Backport PR #8396
---------

**Commit 1:**
fixing top_level_describe_filter to allow describe.only in unit tests

* Original sha: 14817199a7
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-09-21T08:12:41Z

**Commit 2:**
adding comment

* Original sha: 65edc94a23
* Authored by ppisljar <peter.pisljar@gmail.com> on 2016-09-21T14:05:32Z
2016-09-21 15:34:29 -04:00
Jonathan Budzenski
a2b7a46f8d Merge pull request #8416 from elastic/jasper/backport/8338/5.0
[backport] PR #8338 to 5.0
2016-09-21 13:37:19 -05:00
Elastic Jasper
3287386388 Backport PR #8338
---------

**Commit 1:**
(mappings) Follow kibana index alias when fetching types

* Original sha: cb83c5fa69
* Authored by Jonathan Budzenski <jon@jbudz.me> on 2016-09-19T18:11:46Z

**Commit 2:**
(mapping) Remove indexName var

* Original sha: 175c3b6bb1
* Authored by Jonathan Budzenski <jon@jbudz.me> on 2016-09-21T14:00:43Z
2016-09-21 14:22:11 -04:00
Elastic Jasper
7fdd8c6a52 Backport PR #8351
---------

**Commit 1:**
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>

* Original sha: bb6632f3c7
* Authored by Tyler Smalley <tyler.smalley@elastic.co> on 2016-09-19T21:29:06Z
2016-09-21 14:11:16 -04:00
Thomas Neirynck
78500aed29 Merge pull request #8392 from elastic/jasper/backport/8312/5.0
[backport] PR #8312 to 5.0
2016-09-20 20:12:38 -04:00
Elastic Jasper
db3874c405 Backport PR #8312
---------

**Commit 1:**
do not remove selection when clicking refreh fields

* Original sha: afce3bede7
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-09-16T17:51:06Z

**Commit 2:**
improve readability

* Original sha: 411957cd96
* Authored by Thomas Neirynck <thomas@elastic.co> on 2016-09-20T21:32:21Z
2016-09-20 19:03:48 -04:00
Stacey Gammon
322f391c99 Merge pull request #8388 from elastic/jasper/backport/8383/5.0
[backport] PR #8383 to 5.0 - Update absolute time picker when time selection changes.
2016-09-20 16:39:48 -04:00
Elastic Jasper
48ef86cfbf Backport PR #8383
---------

**Commit 1:**
Update absolute time picker when time selection changes.

Listen for changes made to timefilter.time and update the absolute time
picker accordingly.

* Original sha: 12f61e1eb9
* Authored by Stacey-Gammon <gammon@elastic.co> on 2016-09-20T19:41:50Z
2016-09-20 16:32:17 -04:00
CJ Cenizal
d621f5c429 Merge pull request #8379 from elastic/jasper/backport/8364/5.0
[backport] PR #8364 to 5.0 - Prevent visualization element from blocking mouse interaction in test:dev UI.
2016-09-20 11:15:38 -07:00
CJ Cenizal
b297a54665 Merge pull request #8377 from elastic/jasper/backport/8339/5.0
[backport] PR #8339 to 5.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:55:48 -07:00
Elastic Jasper
240876d36c Backport PR #8364
---------

**Commit 1:**
Prevent visualization element from blocking mouse interaction in test:dev UI.

* Original sha: 9907f93086
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-09-20T02:12:22Z
2016-09-20 13:54:59 -04:00
Elastic Jasper
cfde9f4750 Backport PR #8339
---------

**Commit 1:**
Set minimum aggregation 'Size' input value to 1, because ES will return an error if you provide a size of 0.

- Display feedback if a Dashboard or Visualization is loaded that already violates this constraint.
- Add ElasticsearchError class and isTermSizeZeroError helper.

* Original sha: 4fefae1513
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-09-19T19:02:54Z
2016-09-20 13:43:55 -04:00
Tyler Smalley
0c2ff0f189 Merge pull request #8360 from elastic/jasper/backport/8357/5.0
[backport] PR #8357 to 5.0 - [plugin installer] Change download path
2016-09-19 18:42:52 -07:00
Elastic Jasper
4a5623b23c Backport PR #8357
---------

**Commit 1:**
Changes plugin location for consistent naming (download{,s})

This puts us in alignment with other formats we are using

Related to https://github.com/elastic/kibana/pull/8317

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* Original sha: 0f19156bb5
* Authored by Tyler Smalley <tyler.smalley@elastic.co> on 2016-09-20T00:48:36Z
2016-09-19 21:24:10 -04:00
Court Ewing
2e6cd595a9 Merge pull request #8354 from elastic/jasper/backport/8349/5.0
[backport] PR #8349 to 5.0 - Always set output.params.min_doc_count on Histograms
2016-09-19 20:11:27 -04:00
Lukas Olson
22743a6063 Remove reference to unused variable 2016-09-19 16:34:17 -07:00
Lukas Olson
c52eb60c5f [console] Fix loading from URL 2016-09-19 16:34:13 -07:00
Elastic Jasper
0441267add Backport PR #8349
---------

**Commit 1:**
Always set output.params.min_doc_count instead of leaving Elasticsearch default (which changed).  Ref: 5665

* Original sha: 5eb43cf70b
* Authored by LeeDr <lee.drengenberg@elastic.co> on 2016-09-19T20:47:34Z

**Commit 2:**
Fix tests for min_doc_count change

* Original sha: fe60886cdd
* Authored by LeeDr <lee.drengenberg@elastic.co> on 2016-09-19T23:07:46Z
2016-09-19 19:33:34 -04:00
Stacey Gammon
63d7eb3c5e Merge pull request #8348 from elastic/jasper/backport/8336/5.0
[backport] PR #8336 to 5.0 - Fix timelion legend in dark theme
2016-09-19 18:02:14 -04:00
Elastic Jasper
10fcf1ab94 Backport PR #8336
---------

**Commit 1:**
make the legend background color transparent so it looks good in both dark and light themes

* Original sha: 6e94ff5e45
* Authored by Stacey-Gammon <gammon@elastic.co> on 2016-09-19T17:36:57Z

**Commit 2:**
Remove total transparency fix

If the legend has a totally transparent background it’s difficult to
read when the chart lines lie under it.  This approaches fixes the
coloring but leaves the opacity in tact.

* Original sha: a62b1f0576
* Authored by Stacey-Gammon <gammon@elastic.co> on 2016-09-19T19:01:21Z
2016-09-19 17:21:30 -04:00
Stacey Gammon
f1010b37b3 Merge pull request #8345 from elastic/jasper/backport/8343/5.0
[backport] PR #8343 to 5.0 - Report useful error message when sessionStorage is unavailable
2016-09-19 17:15:07 -04:00
Elastic Jasper
ea4fafe3dd Backport PR #8343
---------

**Commit 1:**
Bug #8063 Safari crash in private browsing mode

Catch the crash and display a more useful error message to the user
about a work around.

* Original sha: 7dbb786dcd
* Authored by Stacey-Gammon <gammon@elastic.co> on 2016-09-16T19:15:43Z

**Commit 2:**
Merge branch 'master' of https://github.com/elastic/kibana into bug/8063/no-safari-crash

* Original sha: 85786666a9
* Authored by Stacey-Gammon <gammon@elastic.co> on 2016-09-19T13:27:21Z

**Commit 3:**
Merge remote-tracking branch 'elastic/master' into bug/8063/no-safari-crash

* Original sha: f29b60a9aa
* Authored by Stacey-Gammon <gammon@elastic.co> on 2016-09-19T20:23:07Z

**Commit 4:**
Clean up error message a tad

* Original sha: 36e298d957
* Authored by Stacey-Gammon <gammon@elastic.co> on 2016-09-19T20:34:21Z
2016-09-19 17:03:50 -04:00
Jim Unger
c4f6c2d17d Merge pull request #8334 from elastic/jasper/backport/8283/5.0
[backport] PR #8283 to 5.0
2016-09-19 12:54:00 -05:00
Elastic Jasper
492b43e9c4 Backport PR #8283
---------

**Commit 1:**
fixes plugin path in .gitignore

* Original sha: f74eb9b4cb
* Authored by Jim Unger <bigfunger@gmail.com> on 2016-09-14T18:40:21Z

**Commit 2:**
Moves version from plugin installer to utils

* Original sha: ae492ff066
* Authored by Jim Unger <bigfunger@gmail.com> on 2016-09-14T18:41:19Z

**Commit 3:**
Adds plugin version check to kibana startup

* Original sha: 83d0821054
* Authored by Jim Unger <bigfunger@gmail.com> on 2016-09-14T18:41:40Z

**Commit 4:**
Changes plugin version to 'kibana' in text fixture

* Original sha: 922c04abe6
* Authored by Jim Unger <bigfunger@gmail.com> on 2016-09-14T19:07:09Z

**Commit 5:**
Merge branch 'master' into check-plugin-version-on-startup

* Original sha: 5da33adfdb
* Authored by Jim Unger <bigfunger@gmail.com> on 2016-09-15T14:45:01Z

**Commit 6:**
review changes to check_version

* Original sha: 2802410573
* Authored by Jim Unger <bigfunger@gmail.com> on 2016-09-15T16:53:28Z

**Commit 7:**
reworked logic to remove config when deleting a plugin from plugin_collection

* Original sha: 2f52be62ae
* Authored by Jim Unger <bigfunger@gmail.com> on 2016-09-15T20:11:43Z

**Commit 8:**
Adds a kibanaVersion property to the Plugin class

* Original sha: e920bca051
* Authored by Jim Unger <bigfunger@gmail.com> on 2016-09-15T21:04:41Z

**Commit 9:**
move enabled check into it's own mixin, and cleaned up how you disable a plugin

* Original sha: 049c029764
* Authored by Jim Unger <bigfunger@gmail.com> on 2016-09-16T17:22:47Z
2016-09-19 13:46:26 -04:00
Court Ewing
51418f9342 Merge pull request #8319 from elastic/jasper/backport/8317/5.0
[backport] PR #8317 to 5.0 - [plugin installer] Point plugin url to artifacts.elastic.co
2016-09-16 17:30:18 -04:00
Elastic Jasper
348226a058 Backport PR #8317
---------

**Commit 1:**
[plugin installer] Point plugin url to artifacts.elastic.co

* Original sha: e719222da4
* Authored by Jonathan Budzenski <jon@jbudz.me> on 2016-09-16T20:53:19Z
2016-09-16 17:14:52 -04:00
Jonathan Budzenski
37727a8eb0 Merge pull request #8307 from jbudz/package-url
[docs] Update package version
2016-09-16 15:24:36 -05:00
Jonathan Budzenski
b7210fecd6
[docs] Update package version 2016-09-15 23:34:23 -05:00
CJ Cenizal
e87217592e Merge pull request #8296 from elastic/jasper/backport/8294/5.0
[backport] PR #8294 to 5.0 - Add comments and inline docs for visualization saving and editing process.
2016-09-14 18:33:43 -07:00
Elastic Jasper
6813bcc084 Backport PR #8294
---------

**Commit 1:**
Update README to clarify that the version numbers in the compatibility chart are only examples.

* Original sha: 3a973a2e03
* Authored by CJ Cenizal <cj@cenizal.com> on 2016-09-15T01:12:05Z
2016-09-14 21:33:15 -04:00