* Fix bugs with Create Index Pattern wizard loading state and createReasonableWait UX helper.
* Fix snapshots and refactor tests for clarity.
* Rename createReasonableWait to ensureMinimumTime, refactor for clarity, and support a time argument.
* Update form error copy.
* Convert EuiTableOfRecords to EuiBasicTable in scripted fields table.
* Convert from EuiBasicTable to EuiInMemoryTable.
* Fix bug with filtering and show 'no items' message when the filter doens't match any scripted fields.
* Filter out any empty items
Registry providers expose a `register` method to allow registration of items into the registry. This method expects as its sole argument an "item registration" function that returns an object representing the item to be registered into the registry. The arguments to this function can be other providers, allowing for dynamic construction of the item object to be returned.
This change will filter out any empty item objects before they are added to the registry. This allows the item registration function to return a falsy value if it needs to decide, dynamically at runtime, not to register an item.
* Adding unit test
* Adding skipEmptyItems spec param
* Using skipEmptyItems spec param when creating FeatureCatalogueRegistry
* Using a more generic approach instead
Now the spec takes an optional `filter` function that can be defined as per the requirements of the specific registry rather than baking in logic for skipping items for all registries into ui/registry itself.
* Renaming var to be more descriptive
* kbn history
* put Add Data section in panel and move to seperate component
* RecentlyAccessed component
* complete circle with recently accessed dashboards
* record visualizations in recent accessed history
* render recently accessed
* do not show recently accessed panel when no recently accessed history
* add test cases for home feature panels
* render dropdown when more than 5 items
* only add saved search when id is provided
* remove border around add data cards, move set up index patterns to under cards
* add dot icon to seperate recently accessed items
* fix white space issues
* add timelion sheet to recently accessed
* fix spelling errors, better name space styles, enhance dropdown label
* avoid cutting off bottom of letters, do not display separators with small screen
* wrap separator (EuiIcon) in EuiText component so it is even link text
* track history by object id to avoid duplicate entries when saved object is renamed
* align link dropdown on right side
* shift popover placement for small screens
* update recently_accessed tests to look for nodes insted of using snapshots
* move id to variable
* change 'Recently accessed' to 'Recently viewed'
* change more dropdown label
* add max-width to flex item
* include /app in link path, use arrow functions to remove bind in react props
* add to recently accessed when saved object is saved
* address cjcenizal's comments on test assertion order and react imports
* Fix one bug with input controls
* Fixed the bug, without tests.
Unfortunately adding a jest test for this would require a bit of
refactoring which I think would fit better in a separate PR, and might
not be worthwhile right now…. so just fixing it to get it in.
* remove left over console log
Previous code passed the index parameter from lodash.map to
readFileSync, so it was essentially the same thing as:
```
map(config.get('server.ssl.certificateAuthorities'), (file, index) => {
return readFileSync(file, index);
})
```
The upgrade to node8 seems to change the behavior and this was causing
an error:
```
FATAL TypeError: "options" must be a string or an object, got number instead.
at getOptions (fs.js:75:11)
at fs.readFileSync (fs.js:549:13)
at server.connection._extends.tls.ca.config.get.map (/Users/tsullivan/code/kibana/src/server/http/setup_connection.js:43:76)
at Array.map (<anonymous>)
at KbnServer.exports.default (/Users/tsullivan/code/kibana/src/server/http/setup_connection.js:43:59)
at KbnServer.mixin (/Users/tsullivan/code/kibana/src/server/kbn_server.js:97:16)
at KbnServer.exports.default (/Users/tsullivan/code/kibana/src/server/http/index.js:20:19)
at KbnServer.mixin (/Users/tsullivan/code/kibana/src/server/kbn_server.js:97:16)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
at Function.Module.runMain (module.js:686:11)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
optimizer crashed with status code 1
```
This PR fixes the issue by making the mapping through the
certificateAuthorities files with a more explicit handling of the map
items, as well as remove the unnecessary lodash import
* Increase test runs to reliably trigger failure
* Determine where dashboard is failing to pop into view mode
* Drop down to only one check
* Go back to only one run of state tests
* add failing test that would have caught this situation
* Implement onEmbeddableConfigChanged to pick up url changes from soft refreshes
* Add tests for legend and pie slice color as well as removing uiState keys to ensure it resets the config values
* address removing state from url as well as setting it.
* Fix up tests and add a link to the legend issue
* only emit once
* use for in, use better mocked clearAllKeys function
* Remove switch to setSilent
* Adjust test so it fails because of bug found where two charts will both have their slice colors updated
* Embeddable should only listen for changes to their panel's config state
* Default embeddable config to an empty object when creating a new embeddable
This PR evolves Kuery into a simplified, more lucene-like language. In a follow up PR we plan on getting rid of the language switcher dropdown and instead add a checkbox that will allow users to opt-in to this syntax, which will feel less like a separate language and more like a set of enhancements to the existing lucene query syntax.
This PR also updates the simple grammar to solve the following:
* Wildcards in field names
* "is one of" shorthand (e.g. foo:(bar OR baz OR qux))
* Don't split on whitespace (require explicit AND/ORs, case insensitive)
* "exists" query (e.g. foo:*)
* Improved range query shorthands (e.g. foo <= 1)
* Wildcard queries
Since this new syntax is simpler and does not support every filter type like old Kuery did, this PR also brings back the filter bar when kuery is selected in the language picker.
See the documentation updates in this PR if you need an overview of the new syntax (and let us know if the documentation is lacking).
* First stab at refactoring typeahead
* Don't double submit on enter
* Add item templating
* Remove unnecessary test
* Don't submit on enter
* Add clarifying comment
* Fix history log key
* Fix key handling
* Don't always hide on submit
* Check items exists
* Simplify select next/prev and reset selected on hide/backspace
* Add test
* Put persistedLog on scope so it can be tested
* Update typeahead items when language changes
* Finish that work I didn't do in the last commit
* Order matters
* use default index pattern when filter-editor is not passed any index patterns
* add functional test
* pass indexPatterns to filterBar directive
* handle check for [undefined]
* use _.compact to test if index patterns are provided
* simplify areIndexPatternsProvided
* Only update status when required
* Add missing Status.PARAMS
* Add requiresUpdateStatus to Vega vis
* Add requiresUpdateStatus for editors
* Fix stupid issue
* Create unit tests for getUpdateStatus method