* [precommitHook] move to dev script
* [eslint] fix lint error
* [dev/eslint] do simply boolean checks first
* [dev] use shared REPO_ROOT constant
* [dev/File] precompute relative/ext of path
* [dev/eslint] fix relative import
* [dev/eslint] fix typos
* [grunt] remove unused run:eslintStaged config
* [dev/run] only create log if we are going to use it
* [dev/run/isFailError] ensure return value is Boolean
* [dev/precommitHook] use less intermediate vars
* Reactify full screen mode placeholder and remove from scope
With the toggle in react, no need to store it on scope.
* Simplify implementation by bringing in chrome.setVisible internal to the react placeholder
* rename FullScreenModePlaceholder => ExitFullScreenButton
* div => KuiButton
* Add jest tests for exit full screen button
* Use native Object.values.map instead of loadash _.map
* get rid of unnecessary return value
* set parameters like suggestions api
* provide timeout and terminate_after in initial state instead of using search_source set
* remove shard_size param and add comment about needed to replace searchsource with suggestions API
Also adds some stabilization by refactoring some retries and
expectations.
and fixes a bug that snuck in between two PRS where the pie slice css
changed.
* Add a couple tests with queries and saved searches linked to visualizations (#14878)
* Add a couple tests with queries and saved searches linked to visualizations
Fix issue when edit link is clicked too soon and embeddable hasn't finished loading
* attempt to fix flakiness
* remove duplicate lines
* Use the correct pie slice css
* [ftr/mocha] revert Mocha UI assigments after loading test files
* [ftr] add beforeTopLevelSuite and afterTopLevelSuite lifecycle hooks
* [ftr] add defaultWindowWidth and defaultWindowHeight options
Adds two configuration parameters to the functional test runner which
will set the windowSize before running the tests in any file and
restores the original window size when the tests complete.
Individual test files can set the windowSize within its own before() or
beforeEach() handlers using the same `command.setWindowSize()` command.
* [ftr/assignmentProxy] use better naming
* [ftr] restore initial window size after each suite
* [ftr] improve error message for unexpected suite definitions
* [ftr/remote] remove configuration option, rely on suite-level changes
* [ftr] fix stack manipulation order
* [ftr/remote] write tests for window size management
* pie labels
* add simple unit test
* fixing dashboard test
* fixing basedo on review
* simplifying conflict resolution
* removing unused code
* cleanup code
* minor changes based on review
* updating option templates to match new design
* updating truncate_labels to work with chars instead pixels
* Add a feature for custom panel titles
* Add tests and put back data-test-subjs
* sync with master and add padding to form
* UI/UX cleanup
- add enter on close functionality
- make reset title a link instead of a button
- Push css to visualizations instead of the panel. This means
background colors will be flush to the panel. Override for tile maps
which apparently need it (yet region maps don’t for some reason??)
* Fix refactor miss from merge
* whoops, put block display back to make link fall to bottom
* Undo accidental delete visualization name change
* Color top pop over arrow correctly
* Use naming Options and Customize Panel
* update jest snapshot
* Use custom panels for data-title attributes
* Adding method to expose the dashboard app container size to reporting
* Adding a data-shared-items-container attribute to the viewport
* Making visualize tell us how large they are
* Removing the controller methods that returned the item size
* Moving the sharing attributes to be on the actual elements, so we can
figure out their dimensions
* Passing the savedObj to the Visualize elements adding the data- attrs
* Adding the title/description to the Dashboard
* Dispatching the initial title/description
* Reverting some accidental whitespace changes
* Fixing metadata selectors
* Adding newline at end of file...
* Putting the $emit('renderComplete') back
* Passing only the savedObj to the Visualize Editor Controller
* Setting the description on the $scope.vis so we don't have to pass the
SavedObj
* Reverting more TSVB title/description code
* Removing savedObj from scope
* Putting $scope.vis back to vis
* Stop listening for ready:vis to fetch from courier
This means saved searches will get requested in their own msearch but
this actually improves dashboard loading because waiting on saved
searches can slow down a whole dashboard. Splitting up visualizations
from saved searches is an improvement and it cleans up the code, so I
think we should do this.
* Push courier.fetch into search_embeddable_handler
* timelion argument value suggestions for legend function
* update functions with argument value suggestions
* use async/await instead of promise resolve/reject for suggestion generation
* lookup value suggestions for es index and timefield arguments
* custom handlers for es metric and split arguments
* update suggestions unit test
* remove duplicate code from insertSuggestion switch
* refactor arg_value_suggestions to provide three methods instead of single getSuggetions method
* template literal
* update es index argument desc to include note about type ahead support
* [eslint] upgrade to 4.10.0
* [eslint-config-kibana] limit jest config to jest test files
* [ui_framework] remove trailing comma from rest-spreads
* [dashboard/tests] tag jest helpers with .test.js suffix
* explicitly import expect.js where used
* [eslint] apply auto-fixes
* [eslint] manually add/wrap some parens for compliance
* [npm] point to local packages for testing/review
* [jest] remove .test extension from jest helpers
* [ui_framework] fix trailing comma removal from 3bc661a1c8
* [packages] upgrade eslint packages
This prevents users from using tools which insert dashboards/visualizations directly into the index, which would cause Kibana to stop functioning.
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
This PR adds deprecation messages in two places in the Kibana UI. The first is the scripted field creation page, where a message is shown if you've chosen a deprecated language for your script. The second is the index pattern scripted field list page, where a message is shown if any existing scripted fields use a deprecated language. It also adds an error message to the list page if a completely unsupported language is detected.
* Move this logic to a separate directive. Also fix a couple bugs with it around how it interacts with angular.
* Updated variable name
* Handle some edge cases and simplify code
* Fixing typo and further simplyfing code
Introduces bin/kibana-keystore providing create, list, add, and remove actions.
Settings stored within the keystore will be loaded at runtime.
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
* introduce a mechanism to load a dashboard by title is a single one is found, if not, to refill the search box on the listing page
* Make case insensitive and prevent listing page from "blipping" up on the screen before the redirect
* Add tests