* 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
```
* 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
* Update & expand reporting API tests
* remove xpack stuff from oss archive
* wrap "it"s so they are in expected order.
* Update expected recent stats
* url was pointing to a visualization not a csv
* Move comment around
* Merging with changes on master renaming stats to usage
* fix reference to old stats file.
* bad merge
* remove double modal when cloning dashboard with duplicate title
* reset duplicate state when input is updated
* update functional test for new clone workflow
* change warning message to EuiCallout
* updates from Stacey-Gammon review
* Revert "[DOCS] Removes redundant index.asciidoc files (#19192)"
This reverts commit d11b5aae9a.
* Revert "[typescript] add typescript support for the server and browser (#19104)"
This reverts commit c6112067fc.
* Revert "Option to run kibana from build for CI (#19125)"
This reverts commit 5969860303.
* Not working proto code
* More proto code
* Work in progress
* Just go back to non interactive searching, much easier
* This should be on the server
* Revert "[@kbn/ui-framework] move ui-framework to a package (#17085)"
This reverts commit ef3339bd7a.
* Revert "Revert "[@kbn/ui-framework] move ui-framework to a package (#17085)""
This reverts commit ce9ce14e1060c426090b55a5367de3ff4329e681.
* Use BasicTable properly
* Table improvements
* Small tweaks to the table
* Improvements
* Flyout mostly working
* Remove in memory table
* Getting close
* Tweaks
* Revamping server code, still need to support editing
* Progress
* Fix export
* Updates and passing functional tests
* Better links in relationships flyout
* Add skip import option
* Fixes around importing and removing unnecessary code
* Remove tags for now
* Tests for lib/
* Some fixes
* Ensure we clear index pattern cache
* Parity with master
* Revert any changes in package.json
* Reset any changes in this file
* Move the new argumen to the end to prevent test failures
* Fix functional tests
* Add relationship tests
* Fix tests
* API integration tests for relationships
* Ensure we're properly waiting for things to happen
* Fix test issue
* Wait for the table to finish loading instead of the whole page
* Tests for objects_table
* Componentry tests
* Ensure this is grabbing the right field
* Update snapshot
* Fixes with importing index patterns
* PR feedback
* PR feedback
* PR feedback
* Update snapshot
* PR feedback
* Update snapshot
* Respect the savedObjects:perPage config
* Updates from PR feedback
* More updates from PR feedback
* Make this more efficient
* Add debugging for functional test failures
* Wait longer
* Wrap each button accessor with a retry.try
* Try wrapping this in a retry.try
* Debug
* Lets make sure it is visible
* Maybe the short timeout is affecting this - use the default timeout which should be higher and allow more time for the animation to finish
* Rewrite this per suggestions from stacey
* [mocha] run tests with mocha script, remove grunt-simple-mocha
* [ci] force colored output
* [ci] disable color when reading the yarn bin
* [dev/build/exec] support tooling log having its own chalk
* [dev/mocha] avoid changing the cwd of the process
* [dev/mocha] only match files, speed up negative matches
* [cli/serve/test] strip ansi control characters from logs
* [ci] disable color in all `yarn bin` invocations
* [dev/mocha] cleanup old runInBand check
* [dev/mocha] enable gloabl leak checks
* The previous retry wouldn't work because 'click' has it's own retry, need to use exists first.
* add comment with link to issue
* fix wrong function (wish we had typescript!)
* Debug flaky test, or at least retry the spot that seems to be failing
* Fix missing await, use queryBar service, use more detailed error message
* update remaining references to dashboard.getQuery
* getQueryString not getQuery
Restructure testing with kbn-test package
- Run with multiple configs, move cli options to config
- Package-ify kbn-test
- Eventually we'll have functional_test_runner live in a package
of its own, and then this kbn-test will use that as a dependency,
probably still as a devDependency.
- Implement functional_tests_server
- Collapse single and multiple config apis into one command
Use kbn-es
Replace es_test_cluster + es_test_config with kbn/test utils
Implement new createEsTestCluster
Improve scripts, jsdocs, cli top-level tools
Lift error handling to the top level
* replace react-select with EuiComboBox
* remove constructor for ListControl component
* get working with portal version
* remove overflow visible from input_control_vis since its no longer needed
* convert index pattern select to EuiComboBox
* replace react-select with EuiComboBox for field select
* group fields by type
* remove esvm
* remove on-foxus box around input cursor
* fix jest tests
* remove broken jest test
* fix functional tests
* review changes
* remove componentWillMount from field_select
* update snapshot changed from rebasing and getting new EUI version
* use combo box clear and close buttons for clearing and closing
* jsdoc syntax fix
* Expand coverage of dashboard tests and decrease time
* Fix timing error when sub urls fail to save from too fast app link clicking
* discover doesn't have breadcrumbs
* Check top nav text so it works on both listing and saved object edit/view pages
* need to do the add panel operations one at a time
* Need both types of input in filter
* Give test data a title
* Remove incorrect and unnecessary comment
* Move data around and get rid of 6_3 specific naming as we will end up migrating the data as we progress
* Remove code accidentally checked in
* [Stats] Add metrics collector and stats API
* uptime_ms in the process namespace
* make uptime_in_millis always equal process.uptime_ms
* fix api integration test
* fix api integration test better
* fix false positive with last change
* change object detection, add fallbacks to return undefined
* update to eui 0.0.44
* keep eui dependency in x-pack
* wrap EuiBasic table column in span to avoid className prop from getting overridden
* remove brittle functional tests that are no longer needed with EUI components
* filter field list instead of chaning table size
* update x-pack snapshots
* convert dashboard listing page to react and EUI
* add jest test for DashboardListing component
* add data-test-subj attributes
* clean up jest test
* hideWriteControls and call to action when no dashboards exist
* pass initial filter to dashboard listing, get functional tests to work
* fix dashboard queries functional tests
* upgraded to EUI 0.0.29 to get defaultFocusedButton fix
* move dashboardListing directive to index
* spacing in if statement
* switch to EuiBasicTable
* pagination
* add sorting
* fix jest test
* handle out of order fetchs
* remove info.gif
* re-instate search functional test
* replace EuiSearchBar with EuiFieldSearch
* fix functional tests
* update snapshot - when code rebased - new EUI version add another prop
* add Edit link to actions column
* Support 1 Kibana and 1 Elasticsearch URL as input params
* Revert a previous change to test char substitution
* Allow setting TEST_KIBANA_URL and TEST_ES_URL for Cloud testing
* cleanup comment
* Update docs
* Refactor after PR review
* Changes from review
* fix default Kibana port to 5620
* Change es_test_config.js similar to kibana_test_server_url_parts.js
* Flesh out communication layer between embeddables and dashboard
* fix flaky legend colors
* Address code review comments
* Remove embeddableHandlerCache and push render/destroy handling of Embeddable instance into react component
* Fix a bug and adds tests that would have failed
* Whoops, fix toggleExpandPanel, in view mode it's not in the panel options
* Update readme based on newest implementation, after pushing all embeddable lifecycle handling to the embeddable_viewport component
* Push embeddable handling back up to dashboard_panel, get rid of embeddable_viewport
The options menu will eventually need access to the embeddable for
things like pluggable panel actions.
* Update README.md
* Fix jest tests
* Add two failing tests to catch current bugs
* Fix max call size exceeded err
* fix time range bug
* Add failing test for filter field index pattern bug
* Fix bug with index patterns
* Expand on definition of an embeddable
* Address code review comments
* address some code comments
rename personalization => customization
add more optional config overrides into an Embeddable constructor
* Fix refactor bug
* Revert "Remove MathJS Feature (#15652)"
This reverts commit 43bf1dbf4a.
* replacing math with tinymath
* pining version
* updating yarn.lock
* Fixing Prettier mis formatting
* fixing tests
* Adding unsupported agg back
* Adding functional test for math aggregation
- Fixing bad tests
- Resetting page for every test suite (why donesn't beforeEach work?)
- Adding test for Math agg
* Trying to fix values (due to inconsistencies in env)
* [Server/Routes] organize status routes together with others
* remove flaky assertion
* move all the status stuff into src/server/status
* sugar on imports/exports
* fix lint/jest test
* comment and todo
* add more output
This will let us know if the filter is failing to be added on the
visualization before being saved.
* run 20x
* go back to single run
* separate implicit connection between app state panels and redux tree panels.
They are now two different objects. This will help pave the way to
removing so much apostate in view mode where it isn’t necessary
* remove console output
* fix tests and propagate dashboard title & description
* Clean up with review comments
* use reduce instead of map so the array becomes an object
* adding large_string_test
* removed a failing test, modified the existing one
* new line at the end of mappings.json
* removed the data.json file and also removed the navigateTo() and clickKibanaIndices() as createIndexPattern() takes care of it
* more modifications
Makes our language updates more visible to users and removes mentions of Kuery as a separate language. Users still get the old lucene experience by default, but have the option to opt-in to "experimental query features" directly in the query bar. Goal is to get more feedback by making these new features more prominent and less of a jump from lucene.
* Don't use transforms
* dismiss toasts so they don't interfere with the snapshot tests
* try again
* Fix styling during expanded panel mode
* See if putting the sleep back fixes the build.
* fix typo
* Created general driver to accept an argument select the driver to run.
* Added environment variable for driver, changed package.json to use custim leadfoot, and made changes to browserdriver to use any driver.
* Made changes per PR.
* Fixed all nits.
* WIP - add shakespeare data for getting started guide
* Refactor of getLineChartData, getBarChartData, getAreaChartData
* Added changing extents and test
* Fix opening axis options
* Change precision from 8 to 7
* lower precision to 6
* Fix index pattern creation
* update from review, remove comments, add others
* Fixes issue preventing stdin from defaulting
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
* Prevent prompting to overwrite when using stdin
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
* Remove log
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
* When failure, log URL and save page source
* log Taking screenshot at info level
* Force a failure, then revert this
* [ftr/failureDebugging] create failure debugging service
* Cleanup and create the failure_debug/html dir, strip special chars from filenames
* Remove a debugging log
* refactored replacing invalid filename chars
* Revert forced failing tests
* change panel height from 100 to 20
* scale default height
* change number of grid columns to 48 so there is better control of panel width
* remove input controls resize test since its using EUI components and no longer needs to be functionally tested
* fix dashboard_grid_container test
* clean up rebase artifacts
* scale x and y in panel_state test
* make DASHBOARD_GRID_HEIGHT a constant
* 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).
* 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
* 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
* Add test-subj-selector module to packages dir.
* Rename to @kbn/test-subj-selector.
* Simplify rejectRejFiles Grunt task and ignore nested node_modules.
* Update jenkins_unit script to use yarn kbn CLI.
* add input to select parent control
* move lineage logic into seperate file for easier testing
* move parent candidate logic into seperate file
* decouple control factory and control initialization
* disable control if parent not set
* inherite search source from ancestors to have them filter values
* call fetch when query filter is updated for filter value changes
* delete filters when control has ancestor without value
* avoid fetching option list when ancestors have not changed
* add functional tests for nested controls
* remove unneeded file
* fix jest tests, add another test case to functional tests, update 'Parent' field copy
* add more jest test coverage
* fix useTimeFilter functionallity
* add better error message when fetch is not defined by subclass
* pass filters array instead of search source hierarchy
* only modify queryFilter when filters are submitted
* compare value array instead of concatinated string to determine if ancestors have changed
* use ES2016 syntax for array concatination
* Handle cases of importing objects that are connected to searches, but error out due to the searches index pattern not found
* Add tests and fix flaky ones
* Time field step in React
* Tests start
* Modularizing the step and adding tests
* More tests
* More clean up
* Fix test
* Update tests
* Fix bug where use can't select 'No Time Field' option
* Fix test
* Disabled button state bug fix with test
* UX improvement: early warning of index pattern collision
* More composable StepTimeField component for more readability
* PR feedback
* Remove debug
* Ensure the node exists and add back tests
* Update time field loading state
* PR feedback
* Update tests
* test huge data
* new file for testing large number of fields
* testing large fields
* large_fields_test
* add the unload of es_archiver
* incorporated the changes in kibana.yml
* Revert "incorporated the changes in kibana.yml"
This reverts commit 8682121678.
* cleanup
* code simplification
* removed commented code
* update jest tests as best as possible - found some bugs that need to be addressed
* use EuiAccordion to hide/show control editor
* set control editor to be open on load
* small changes
* fix editor jest tests
* update visualization components to EUI
* fix jest tests and updated range control to EUI
* fix bug in range control input logic
* fix button layout
* fix dashboard grid resize test
* add space between panels, change button order, switch to sort icons
* remove style attribute from component, fix spelling of id