* Allow config consumers to get the default value for a key
* Adding support for array notation
* Adding more tests, making default values immutable
* Changing the way we're ensure it's cloned to be more similar
* Addressing peer review feedback from Aleh
* Instead of adding a margin of error, just wait for render complete. Hopefully should fix
* actually because of page margins, we still nee a margin of error.
* go back to a single run
In order to make the license that applies to each file as clear as possible, and to be consistent with elasticsearch, we are adding Apache 2.0 license headers to the top of each file.
Existence of this header is enforced by eslint and tslint and missing headers were automatically added in the last commit by running:
```
node scripts/eslint --fix && node scripts/tslint --fix
```
For the default distribution, we were not including X-Pack during plugin installation. This broke plugin installation which relied on X-Pack interfaces.
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
* feat(12976): node version validation at runtime.
* refact(12976): move the code into a static utilities class.
* test(12976): added first test case using jest.
* test(12976): added test cases for node_version.
* feat(12976): create setup env node to bootstrap babel, ts-node and node version validator.
* refact(12976): migrated node version code from es6 to es5.
* feat(12976): node version validation at runtime.
* refact(12976): move the code into a static utilities class.
* test(12976): added first test case using jest.
* test(12976): added test cases for node_version.
* feat(12976): create setup env node to bootstrap babel, ts-node and node version validator.
* refact(12976): migrated node version code from es6 to es5.
* fix(12976): remove one level from ts node register cache directory link.
* chore(12976): added caret to semver dependecy in order to support minor versions.
* refact(12976): small change from named import to default import on node version validator.
* refact(12976): removed ts_node_register and add the code to babel_register.
* feat(12976): split eslint config in order to properly support files built to run before and after node version validator. refact(12976): convert script files to es5 code. refact(12976): delete inline eslint configs from node version check related files.
* refact(12976): remove ts node register file.
* refact(12976): completely port setup_node_env to es5.
* refact(12976): remove babel_register invokation from external dependencies in scripts.
* refact(12976): move node_version code directly into node_version_validator inside setup_node_env folder.
* refact(12976): only node version validator for kbn script.
* register list, install, and uninstall endpoints
* decorate server with methods needed to register data sets
* implement list endpoint, add flights sample data set
* stream data file
* create sample data index with mappings
* bulk insert into elsaticsearch
* more loadBulk work
* advance time stamp
* change http method back to post
* delete index on uninstall
* last 15 minutes example
* add option to preserver day of week and time of day
* import saved objects on install and delete saved objects on delete
* update uiSetting defaultIndex on install and uninstall
* use correct format for saved object json
* Adding example sample data, mappings and dashboards
* add sample data tab to Add Data page
* add launch button
* add sample data link to empy index pattern create state
* fix jest tests
* add toast nofication on success and fail install/uninstall
* move uiSettings of defaultIndex to client, clear index patterns get id cache
* put link to sample data sets on home page
* updated saved objects and data set
* add card for sample data
* add preview image
* updated dashboards and data set
* update button text
* woops, forgot vega
* compress data json file
* move flights data file to same folder as saved objects file
* add functional tests
* updates from chrisdavies review
* fix install API call - broken on last commit
* fix mistake in create_index_pattern
* updates from Stacey-Gammon review
* remove delete from install API
* add more tests to ensure dashboard renders as expected
* better error message on install and uninstall failure
* remove checks that may change from run to run to keep functional tests stable
* update scripted field to reflect changes in ES
* change saved object install/uninstall error code from 500 to 403
* add more logic to check if dataset is installed and display a disabled add button when there is a problem checking status
* make add data links be side-by-side on home page
* propery handle savedObjectClient bulkCreate errors. Ensure launch dashboard exists in test if dataset is installed
* ignore saved object delete 404s since users could have deleted some of the saved objects via the UI
* show response error in toast, delete index before trying to create, log create index error
* Allow pluggable panel actions
* Need to register it as being used in kibana
* Some cleanup
* update snapshots to match new EUI versions, set time range
* Use newer panelActions service
* add missing await
* More clean up and fixes
* bring back window reload
* Show actions in view mode too
* delete now unused files
* Use toggle action to determin if context menu is open
* Fix tests that assume the toggle is hidden in view mode.
* Add some debug logs
* Fix up assumptions
* Previous failing test was legit - we don't want to show remove option when panel is expanded
* Embeddable can be empty before the panel is loaded
* Should look for either visualize or discover page
* Address code comments
* address code review comments
* whoops, get rid of childPanelToOpenOnClick entirely
* EUI add panel
* implement add functionallity
* style flyout so top nav is not covered
* add noItemsMessage
* add new visualization button
* remove angular add_panel template
* seperate search bar and table into its own component
* fix functional tests
* make slide out panel own focus to avoid weirdness of letting other buttons in nav from getting clicked and leaving slide out open
* remove deprecated method componentWillMount
* add jest test for DashboardAddPanel
* fix paging and replace EuiSearcBar with EuiFieldSearch
* fix functional tests
* fix dashboard filter bar functional test
* another functional test fix
* add more context to functional test failure message
* give search input a default value
* remove call to waitForRenderComplete to see if tests will pass
* fix dashboard filtering test
* updates from Stacey-Gammon review
* support filtering out lab visualizations
* add functional test for testing visualize:enableLabs with add panel
* add sorting by title to SavedObjectFinder componenet
* move add panel tabs to state
* clean up labs test differently
* Making the SavedObjectsClient.find accept a string or string[] for type
* Searching is now filtered to actual types
* Adding multi-type sort
* Changing another use of includeTypes
* Fixing test's reliance on type
* Changing the find route to take type as an array
* Can't sort on type... it's not a property on the object
* Only allowing sorting on multiple types if it's a root property
* Expanding indicator of root property object
* Sorting by type, now that it's allowed and one of the few sort columns
* Adjusting comment
* Throwing better error message
Fixes#13590
Scales in line/area/bar charts are often of type 'rangeBands', that
applies padding on the sides and leaves space for the bands.
During axis label filtering, this padding was not taken in
consideration.
* Fix rendering markdown when updating open in new tab setting (#18949)
- Moved set the link target behaviour outside the constructor
- Minor style fixes
* Refactoring: recreate markdownit if openLinksInNewTab changes. Add test
* Move props checking conditions to variables. Add test for whiteListedRules prop change
* Add checks before changing the props
* [tslint/kbn-pm] apply autofixes
* [tslint/kbn-pm] whitelist all console.log calls for now
* [tslint/kbn-pm] sort object keys alphabetically
* [tslint/kbn-pm] use comments to "fill" empty blocks
* [tslint/kbn-pm] use I-prefix for interface names
* [tslint/kbn-pm] use arrow-functions where possible
* [tslint/kbn-pm] use lowerCamelCase for variable names
* [tslint/kbn-pm] prevent shadowed variable names
* [tslint/kbn-pm] avoid variable name and type clashes
* [tslint/kbn-pm] replace console.log statements with bare-bones logger
* [tslint/kbn-system-loader] remove tslint overrides
* [tslint/kbn-system-loader] apply autofixes
* [tslint/kbn-system-loader] override max-classes-per-file for tests
* [tslint/kbn-system-loader] use I-prefix for interface names
* [tslint/kbn-system-loader] use comments to "fill" empty blocks
* [tslint/kbn-system-loader] use lowerCamelCase for variable/property names
* [tslint/kbn-system-loader] sort object keys alphabetically
* [tslint/kbn-system-loader] ensure that public methods come before private ones
This adds a notification service to Kibana that can be used to send
asynchronous notifications, such as sending email and Slack messages,
which are intended to be configured via a combination of the
`kibana.yml` and Kibana keystore.
Once configured, the actions are automatically added to the notification
service and can be invoked via the server using the `notificationService`
singleton or HTTP to send it directly. See the included README for more
details.
* [tslint] lint typescript code
* [tslint] filter projects when running specific project
* [dev/ts] use more explicit types
* [dev/ts] add note about why using glob
* [dev/ts] rely on ts, use fewer getters
* Add flatten function and list class.
* Rename functions to be more descriptive.
* WIP moving flatten logic to classes.
* Finish moving flatten logic into classes, add tests.
* Simplify flattening, remove non-native dependency. Add more tests.
* Add defaults to simplify function call.
* Refactor two blocks into a function.
* Fixed broken test.
* Update classes based on PR feedback.
* Update module exports, remove obsolete file.
This PR is a pretty small change to the Reporting job complete notification service. It converts the actual code to a simple object, instead of a class that needs to be instantiated. This makes the notification service a singleton, and also exports it so it can be used in non-Angular applications.
- Converts `reportingJobCompletionNotifications` factory to a singleton
- Exports the underlying jobCompletionNotifications
- Allow use in non-angular plugins
Example use:
```js
import { jobCompletionNotifications } from 'plugins/reporting/services/job_completion_notifications';
createReportingJob() // pseudo code function that returns a reporting job id
.then(jobId => jobCompletionNotifications.add(jobId));
```
* Create a separate SavedObjectRepository that the SavedObjectClient uses
* Moving the repository into lib/
* Fixing test after moving the repository
* Revising tests based on peer review
* Removing awaits
* Adding warning comments regarding the repository's impact on the SOC