Commit graph

14450 commits

Author SHA1 Message Date
nreese 57be6c6394 ignore filters if index does not contain field 2016-09-07 14:31:19 -06:00
Jonathan Budzenski 73c0c264de Merge pull request #8169 from jbudz/navbar-active
Active navbar should match the current background
2016-09-07 15:03:36 -05:00
Jim Unger 0b472a384e Merge pull request #8148 from BigFunger/appstatus_port
Port of appStatus from 4.x branch
2016-09-07 14:25:02 -05:00
Jim Unger 4e279c03f0 Adds restrict=E property to the directive definitions of dashboard, discover, visualize 2016-09-07 13:58:14 -05:00
Matt Bargar 64dd4977de Merge pull request #8178 from Bargs/asciiConfig
Apply the same editorconfig rules to both markdown and asciidoc files
2016-09-07 13:56:06 -04:00
ppisljar 91a8c4beb1 fixing issue with scrollbars 2016-09-07 19:47:30 +02:00
Jim Unger 860b7d7413 Changed root node type of discover, dashboard, and visualization apps 2016-09-07 11:25:38 -05:00
Jim Unger 258a12e6a5 added comment and fixed indent issue 2016-09-07 11:20:28 -05:00
Lee Drengenberg 1cebdd75cc Merge pull request #8154 from LeeDr/orderAggsByTerm8141
Test order aggs by term #8141
2016-09-07 11:05:21 -05:00
Matthew Bargar b8f128d1a3 Apply the same editorconfig rules to both markdown and asciidoc files 2016-09-07 11:41:41 -04:00
CJ Cenizal 22afe52d06 Merge pull request #8177 from cjcenizal/improvement/remove-plugins-readme
Delete core_plugins README.
2016-09-07 08:31:51 -07:00
CJ Cenizal 87c55d1e20 Delete core_plugins README. 2016-09-07 08:28:52 -07:00
LeeDr d6e620accc Removed bogus pageHeader function names 2016-09-07 09:03:15 -05:00
ppisljar ef97965d57 removing extra legend div from pie chart
(seems like a left over from old times)
2016-09-07 09:47:40 +02:00
Spencer 0ee5d4b61c Merge pull request #8022 from spalger/implement/storeStateInLocalstorage
[state] store actual state value in session storage
2016-09-06 17:25:22 -07:00
spalger 458630d49c [state] disable saving to sessionStorage by default
Rather than enable a behavior we would rather not keep by default, we'll keep it opt-in and link to it so that users who have issues can find the setting
2016-09-06 17:07:21 -07:00
spalger bf35d8aa1b Merge branch 'master' of github.com:elastic/kibana into implement/storeStateInLocalstorage 2016-09-06 16:43:39 -07:00
Lukas Olson f12d8ff8db [dev_tools] Show active dev tool 2016-09-06 16:21:18 -07:00
Lukas Olson 78838725a6 [dev_tools] Automatically redirect to first dev tool 2016-09-06 16:02:12 -07:00
Lukas Olson 2ab0ea76bc [dev-tools] Update to use flexbox so console looks nice 2016-09-06 15:16:31 -07:00
Lukas Olson 2e8350ec90 Replace underscores with spaces in breadcrumbs 2016-09-06 15:13:54 -07:00
Court Ewing ec3abde260 Merge pull request #8151 from epixa/headercheck
Separate xsrf handling and version checking
2016-09-06 17:50:32 -04:00
Court Ewing 7a1745c098 Merge pull request #8167 from epixa/8059-ascsortterms
Deprecate ascending sort for terms aggregations
2016-09-06 17:07:47 -04:00
Jonathan Budzenski 741bd78dda
Active navbar should match the current background 2016-09-06 16:02:37 -05:00
Jim Unger 9437a02df8 Merge branch 'master' into add-data-remove-pipeline 2016-09-06 15:59:06 -05:00
Lukas Olson 928f790a33 Merge branch 'master' into feature/dev-tools 2016-09-06 13:48:20 -07:00
Court Ewing 3957c92aca Merge pull request #8168 from epixa/8070-bumpvariousdeps
Bump versions on a handful of node modules
2016-09-06 16:33:43 -04:00
Court Ewing 1f6b66bc21 Bump versions on a handful of node modules 2016-09-06 16:10:54 -04:00
Court Ewing 60a7b75ad2 Deprecate ascending sort for terms aggregations
Elasticsearch is deprecating the ability to use ascending sort for terms
aggregations, so we render a deprecation notice whenever a user views a
visualization that uses a terms aggregation with ascending sort by
count. We only render this error message once per route so it does not
spam the users constantly when they have things like auto-refresh
enabled on a dashboard.
2016-09-06 15:49:52 -04:00
Court Ewing 621bf0efec Separate xsrf handling and version checking
Traditionally we've relied on the kbn-version header for csrf
protection, but that is also used for the client-side Kibana version
check that alerts users when their client is out of date and needs to be
refreshed, so it must match the version of Kibana exactly.

This poses a problem for any programmatic access that would only get set
up once but may run repeatedly throughout the future (e.g. watcher), so
there's now the additional option of specifying the kbn-xsrf header
instead. The value of the header does not matter, but its very presence
is all that is necessary to avoid xsrf attacks.

The xsrf protection just needs either one of these headers to exist.
2016-09-06 15:22:33 -04:00
Jim Unger adf0f48b35 Applies changes from PR #8082 2016-09-06 12:38:27 -05:00
Jim Unger 3e9f5e6e42 Merge branch 'master' into appstatus_port 2016-09-06 12:08:49 -05:00
spalger a26b850565 [crypto] add license from sha.js 2016-09-06 10:06:20 -07:00
spalger 445ceba48f [state] enable storing the state in session storage by default 2016-09-06 10:06:20 -07:00
spalger 6f9c708c6f incorporate feedback from @thomasneirynck 2016-09-06 10:06:20 -07:00
CJ Cenizal 06ed9339bb Remove LazyLruStore, HashingStore, and createStorageHash.
- Replace with HashedItemStore, createStateHash, and isStateHash.
- Refactor stubBrowserStorage.
2016-09-06 10:06:20 -07:00
CJ Cenizal df2c116561 Simplify HashingStore interface. Extract createHash method into a createStorageHash module. 2016-09-06 10:06:20 -07:00
CJ Cenizal b51b5cb3fe Rename HashingStore interface methods for consistency and clarity. Remove unused '#remove' method. 2016-09-06 10:06:20 -07:00
spalger ed12206f01 [share] stop caching unhashUrl() call 2016-09-06 10:06:20 -07:00
CJ Cenizal df8e5ac1fa Export HashingStore and LazyLruStore from index module. 2016-09-06 10:06:20 -07:00
CJ Cenizal 55a923dd77 Refactor state-hashing files into state_hashing and state_storage subdirectories. 2016-09-06 10:06:20 -07:00
spalger 8f7af7d093 [state] store url states into session storage
Kibana currently stores it's entire application state in the URL by rison encoding it and sticking it into a query string parameter, _a for AppState and _g for GlobalState.

This has functioned fine for a while, but Internet Explorer's short URL length restriction are starting to become a problem for more and more users. To provide these users with a workaround this adds an advanced config option that will store the state in sessionStorage instead of the URL.

This is accomplished by hashing the serialized version of the state, storing a short version of the hash in the URL, and storing the whole serialized state in sessionStorage using the hash + state-type as a key.

Since sessionStorage is limited in size, we must clean up old stored states after they become unreachable to the application. This is done using the new `LazyLruStore` class, a wrapper around sessionStorage. This wrapper helps us maintain the list of stored states based on the time they are accessed (On each set the access time is updates).

It's cleanup style is configured with it's maxItems, idealClearRatio, and maxIdealClearPercent configurations. The defaults for which should be sufficient.

`maxItems`: limits the store to n items, removing the oldest item when the list overflows
`idealClearRatio+maxIdealClearPercent`: when `store.setItem(key, value)` throws an error we try to clear space equal to `idealClearRatio * (key+value).length`, but no more space than `totalSize * maxIdealClearPercent`
2016-09-06 10:06:00 -07:00
LeeDr e4da8a6b93 Remove unused remote vars. 2016-09-05 13:41:22 -05:00
Rashid Khan 6aa8ca4a42 Merge pull request #7994 from rashidkpc/migrate/timelion
Add timelion to kibana core
2016-09-02 15:10:27 -07:00
Rashid Khan 95177455a0 Remove old config population function 2016-09-02 14:28:28 -07:00
Rashid Khan 1c6af33069 Remove timelion header 2016-09-02 14:22:17 -07:00
Rashid Khan 13da673bc8 Merge branch 'master' of github.com:elastic/kibana into migrate/timelion 2016-09-02 12:47:19 -07:00
Spencer d94ab0bf17 Merge pull request #8150 from spalger/test/shardTestsToEaseMemoryPressure
add test sharding
2016-09-02 12:43:30 -07:00
spalger 88427e9a43 add test sharding
The tests in master are currently failing regularly because our current browser tests are serious memory hogs. Investigation reveals that nearly every test is retaining all of the memory it causes to be allocated. We have made some progress to being able to diagnose the problems, but we expect that problem to take some serious work to fix. We need a short-term solution though, and this is it.

Rather than modify the bundling process, we will shard the top-level test suites by name. For now, we've created 4 shards, but adding new shards is trivial if we need to.

Sharding is accomplished by creating a murmur3 hash of the top level suite names, then bucketing based on the hash output. If a test suite resolves to shard2, but we are running shard1, we simply never pass the function to `mocha.describe()`. Rather than redefine every describe statement, we have shimmed the global `window.describe()` function to accomplish this.
2016-09-02 10:38:29 -07:00
Rashid Khan 8c3d9efb57 Fix precision of worldbank series 2016-09-02 09:21:11 -07:00