* upgrade all babel related modules, and bump lodash minors
* update kbn-pm dist
* update fetch-mock, necessary to use core-js 3
* use regenerator transform in jest tests, as required by EUI
* disable useBuiltIns rather than using regenerator plugin
* remove extra regenerator-runtime import
* Initial work
* Add check for elasticsearch.hosts
* Make --ssl apply default config values only
* Move @kbn/dev-utils to devDependencies
* Check elasticsearch url for localhost
* Cleanup
* elasticsearch.hosts can be string too
* Upgraded EUI 13.0.0 -> 13.1.0
* Bump to 13.1.1
* Reset MutationObserver polyfill to original operation
* Reset x-pack's MutationObserver polyfill to original operation
* EUIficate pie chart options tab
* Fix tests
* Size titles down to xs
* Use FormattedMessage
* EUIficate tag_cloud_vis options tab
* Get rid of ticks in the range
* Update snapshots
* Fix comments
* Change label
* Create a components folder
* Create default_editor_agg.tsx
* Create default_editor_agg_group
* Apply drag and drop
* Remove unused dragula dependency
* Remove old mocha tests
* Add ts for state
* Update functional tests
* Update touched condition
* Apply styles for accordion button content
* Apply truncate for agg description
* Remove unused styles
* Separate common props
* Move aggGroupNamesMap to agg_group.js
* Update _sidebar.scss
* Pass schemas prop
* Prevent scroll bar and add space
* Remove unused min from stats
* Add OnAggParamsChange type
* Show error as an icon
* Update background color
* Update title size
* Remove Schema.deprecate since it's not used
* eui 12.4.0
* styled-components ts conflict
* update combobox test service to always open on open call
* Revert "update combobox test service to always open on open call"
This reverts commit 43074e6006.
* scroll combobox into view
* scroll before filter
* eui 12.3.1
* add data logos
* Fix TS uses, one SCSS use of euiOverflowShadow
* fix overflow shadow mixin in sass
* homepage logos
* refix typo on homepage
* hp snaps
* Addresses an issue where Chromium user-data-dirs aren't cleaned properly, and moves to TS
* Fixing renovate config issues
* Fixing issues with typedef's missing
* Using prior-set typedefs for logger
* Updating to @elastic/lodash to 3.10.1-npm-kibana2
* Updating lodash to 4.17.13
There's a stray dependency to lodash 4.17.11 via cypress which doesn't
use "^". This is a dev dependency, so we can ignore it for a bit while
they update their package.json
* Updating some forgotten references to @elastic/lodash@3.10.1-kibana1
* Updating lodash-es to 4.17.13
* Updating to @elastic/lodash to 3.10.1-npm-kibana3
* Using the root resolutions to update cypress's version of lodash.
Thanks @spalger!!!
* [ts] upgrade to 3.5.2
* [ts] run from cwd so that relative paths are correct
* move eslint-disable-line comment into jsx attribute
* autofix eslint violations
* avoid generic type, it's not necessary and problematic
* make elasticsearch.cluster optional, many instances don't have them
* remove invalid prop
* expand AllowUnknownProperties to cleanly handle arrays
* esfilter values can sometimes be an array of strings
* allow exception objects to have unknown properties
* define accumulator as a boolean
* fix return type
* return a 404 if beat isn't found after update
* use Object.values for better types
* define return type of get() call
* define value type for Set
* define return value of get()
* define State property type
* use less get(), so ts can infer types
* define Set item type
* map state type
* make default_operator optional, since it's not always defined
* remove seemingly unused prop
* define return type of get() fn
* define inner type for state
* don't define base types are objects with index signatues
* regenerate public api docs
* make indices privileges optional too
* remove unnecessary index-signature from Exception interface
* use variadic _arg instead
* [core/plugin] use Record<string, any> rather than {}
* replace a couple more instances of {}
* revert some unnecessary changes
* remove unused types
* [reporting] output, payload, and meta are required properties
* bump to latest patch version
* chore(NA): first efforts to enable cache-loader relative paths and disable babel-register cache. chore(NA): allow to use cache-loader results everywhere as a persistent cache.
* chore(NA): last change to support cache loader across envs.
* fix(NA): cache-loader config generator function scope.
* refact(NA): static cache config for dll compiler.
* chore(NA): support for force writable cache flag. use built assets for cache on distributable.
* chore(NA): update cache-loader to last version. fix(NA): logic bug with force writable cache flag.
* chore(NA): move optimize cache to built_assets.
* chore(NA): relative paths for sourcemap configurations.
* chore(NA): remove redudant check for process.env var.
* refact(NA): simplify double negated expression.
* chore(NA): remove webpack prefix from devtoolModuleFilenameTemplate.
* chore(NA): rename cache write force flag to KBN_CACHE_LOADER_WRITABLE.
* chore(NA): readd babel register cache.
* chore(NA): change .cache to .ui_bundles_cache
* chore(NA): change .ui_bundles_cache to cache/ui_bundles
* chore(NA): update gitignore with .babel_register_cache.json
* chore(NA): rollback devtool module filename template to asbolute resource path.
* chore(NA): apply cache-loader patch.
* chore(NA): added new version definition for cache-loader package.
* chore(NA): updated yarn lock with new cache-loader version
* window.crypto.subtle cannot be used in insecure env
* set extension. otherwise definition prioritiezed over js file
* move js to ts. fix build
* remove polyfills
* remove ext
* remove crypto from legacy
* Add rendering of canvas images and update percy agent package
* Spencer's fix for eslint issues
* restore canvas elements after taking snapshot
* copy over all styles from canvas to image stand-in
* percy snapshots only run in chrome, so they can use modern js features
* only run visual regression suites
* add stub maps test
* fix arg order
* use more modern syntax that totally works in chrome
* typo
* fix ftr test timeout when using --inspect-brk
* Revert "add stub maps test"
This reverts commit 32dc965adb.
* Upgarde enzyme to v3.10.0
*update snapshots (React components which are using Memo());
*revert pending test in list_control_editor.test.js;
*replace component.html() and component.text() function calls
which expect null to component.isEmptyRender() for consistency
* [ftr/percy] integrate percy with functional test runner
* execute ftr within `percy exec`
* share PERCY_BIN and GRUNT_BIN vars in setup
* [license] whitelist `(Unlicense OR Apache-2.0)`
* [percy] include pr/parallel info in env
* echo the actual variable value
* destructure required modules
* [ci] calculate percy env in a script
* remove outdated eslint overrides
* oops, nonce should be the same for each build
* take snapshots in context tests
* add percy snapshots to some dashboard tests
* account for extra execution of PERCY_BIN
* remove usage of percy service
* rename service to `visualTesting`
* write a simple test
* switch left-over percy test to visualTesting
* set log level for percy agent
* trigger ci
* try using the system chrome install instead of downloading one
* fix export definition
* Don't skip chromium download
* Add Spencer's fix to point to chrome installation
* Attempting to split tests into own ci job and test files
* Renumber job
* Add tag to decorations file
* Try new files with existing CI job
* Try again to create a new CI job
* Fix eslint problem with space
* eslint updates
* fix console test
* make test names unique
* Update ci group names
* Try old name again
* save
* add separate visual_regression ci job
* add visual regression ci job
* add new job to jobs.yml
* update path to take_percy_snapshot script
* use fixed percy job total
* fix common services import
* move visual_create_and_add_embeddables to visual_regression project
* finish moving create_and_add_embeddables
* add x-pack visual regression job
* migrate dashboard_snapshots tests to visual_regression
* remove references to removed test files
* restore some unnecessary changes
* reimplement the login page tests
* yarn.lock update
* fix test
* remove old CI_GROUP 100 block
* update failed_tests trap
* reduce yarn.lock changes
* disable debug logging
* disable visual-regression tests for now, we can enable them in specific prs
* [Infra UI] Format arrays as ul elements in LogEntryFieldColumn
* Add enzyme test for LogEntryFieldColumn
* Fix tests
* Swap ul's for comma separation
* Use semantic markup for inline list
* Fix tests
* Use ::after element for comma separation
* Move ::after element to :not(:last-child)
* Hoist CommaSeparatedLi
* Use EuiThemeProvider in tests instead of isEnzyme prop
* Suppress type error with issue link
* Embeddable API plugin
* Expose new embeddableActions uiExport endpoint
* Add missing getInjectedUIAppVars to Server type
* Add jest tests
* Most basic skeleton of the sample plugin to see if it still kills ci
* strip even more out to see if it passes ci
* It passed, put back init fn
* add back in a uiExport to see if that is what is killing ci
* Passed again, add back embeddableActions uiExports and require kibana line
* Add everything back but the sass import
* Found two bugs with customize panel title action, added jest test coverage and fixes
* Functionally test embeddable explorer plugin
* Addressing review feedback part 1
* Simplify action context menu - remove support for nested actions/child panels, which was never exposed anyway.
* More review feedback
* Spread out orders to let developers inject their own actions in the middle.
* Remove check for overwriting ApplyFilterAction
* use createRegistry for EmbeddableFactoryRegistry
* Add comment for getInheritedInput
* Use kbn-es-query Filter types
* Fix missed file after createRegistry switch over for EmbeddableFactoryRegistry
* Use delete instead of setting to undefined
* upgrade EUI to match kibana version
* Add getIsContainer on base embeddable class
* Run functional tests of sample plugin
* move all tests classes outside __test__ and inside test_samples folder so not to potentially create issues with mocha
* fix: 🐛 remove unused imports
* fix: 🐛 set to undefined explicitly
* chore: refactored getRoot functionality
* fix: refactor miss from folder rename __test__ -> test_samples
* fix: add eui switch to let the user indicate “hide this title” to improve ux.
* fix: customize panel flout test
* Try to fix issue with multiple rxjs bundles I hit before.
See https://github.com/ReactiveX/rxjs/issues/3828
* Use an rxjs polyfill to work around the issue of multiple rxjs bundles
* chore: change customize panel flyout to modal post design feedback
* capitalize Reset
* fix: type errors in customize panel modal
* fix: remove extra line added to prevent EUICallout overflow from spilling over panel edges
The bug this was intended to fix doesn’t appear yet because dashboard isn’t using this, and it causes other issues, so for now, just remove.
* Clean up some classes and SASS
* Inline styles needed to get the containers to take up the full height of the app.
* Use the same old style of error messaging in panels
* chore: add untilEmbeddableLoaded tests, expose on interface, and use in embeddable_child_panel
* Remove unused styles, add padding
* Verify trigger Context containers an array of Filters for apply filter action
* Remove panel.embeddableId param, use panel.explicitInput.id instead
* Check `isCompatible` as well as the type guard needed for typescript.
* executeTriggerActions should account for getHref
* Remove unnecessary check for context being defined
* use npStart instead of getNewPlatform
* Conform to latest NP changes
* Use new np_mocks in all the tests
* Address review feedback on rxjs polyfill
* Convert simple files to TS
* Fix jest tests
* Rename saved_objects_client{.js => .ts}
* WIP saved_objects_client
* saved_objects repository{.js => .ts}
* includedFields support string[] for type paramater
* Repository/saved_objects_client -> TS
* Fix tests and dependencies
* Fix saved objects type errors and simplify
* saved_objects/index saved_objects/service/index -> ts
* Fix saved objects export test after switching to typed mock
* Workaround type error
* Revert "Workaround type error"
This reverts commit de3252267eb2e6bf56a5584d271b55a7afdc1c53.
* Correctly type Server.savedObjects.SaveObjectsClient constructor
* saved_objects/service/lib/index.{js -> ts}
* saved_objects/service/lib/scoped_client_provider{js -> ts}
* Typescriptify scoped_client_provider
* Fix x-pack jest imports
* Add lodash/internal/toPath typings to xpath
* Introduce SavedObjectsClientContract
We need a way to specify that injected dependencies should adhere to the
SavedObjectsClient "contract". We can't use the SavedObjectsClient class
itself since it contains the private _repository property which in TS is
included in the type signature of a class.
* Cleanup and simplify types
* Fix repository#delete should return {}
* Add SavedObjects repository test for uncovered bug
Test for a bug in our previous js implementation that can lead to data
corruption and data loss.
If a bulkGet request is made where one of the objects to fetch is of a type
that isn't allowed, the returned result will include documents which have the
incorrect id and type assigned. E.g. the data of an object with id '1' is
returned with id '2'. Saving '2' will incorrectly override it's data with that
of the data of object '1'.
* SavedObject.updated_at: string and unify saved_object / serializer types
* Cleanup
* Address code review feedback
* Don't mock errors helpers in SavedObjectsClient Mock
* Address CR feedback
* CR Feedback #2
* Add kibana-platform as code owners of Saved Objects
* Better typings for SavedObjectsClient.errors
* Use unknown as default for generic type request paramater
* Bump @types/elasticsearch
* Fix types for isForbiddenError
* Bump x-pack @types/elasticsearch
* chore(NA): first efforts to enable cache-loader relative paths and disable babel-register cache. chore(NA): allow to use cache-loader results everywhere as a persistent cache.
* chore(NA): last change to support cache loader across envs.
* fix(NA): cache-loader config generator function scope.
* refact(NA): static cache config for dll compiler.
* chore(NA): support for force writable cache flag. use built assets for cache on distributable.
* chore(NA): update cache-loader to last version. fix(NA): logic bug with force writable cache flag.
* chore(NA): move optimize cache to built_assets.
* chore(NA): relative paths for sourcemap configurations.
* chore(NA): remove redudant check for process.env var.
* refact(NA): simplify double negated expression.
* chore(NA): remove webpack prefix from devtoolModuleFilenameTemplate.
* chore(NA): rename cache write force flag to KBN_CACHE_LOADER_WRITABLE.
* chore(NA): readd babel register cache.
* chore(NA): change .cache to .ui_bundles_cache
* chore(NA): change .ui_bundles_cache to cache/ui_bundles
* chore(NA): update gitignore with .babel_register_cache.json
* chore(NA): rollback devtool module filename template to asbolute resource path.
* chore(NA): apply cache-loader patch.
* skip and adjust functional tests for Firefox
* downgrade geckodriver to 0.22.0
* [ftr] add firefox specific config file
* remove hard coded firefox adjustments
* remove firefox specific screenshot directory
* run functional tests in firefox in x-pack
* pass the logger to readConfigFile()
* rename local var
* skip xpack firefox config
* run xpack firefox functional tests in separate command
* update report name for XPack firefox results
* adjust viz shared item test
* skip shared item test
* [test/feature_controls] increase timeout to 20 sec & use forceLogout
* FF timeout on TSVB, refresh page on failure for url navigation
* [feature_controls/visualize_security] increase timeout to 20 sec
* skip dev_tools_spaces tests on FF
* run all groups 3 times
* skip more func tests
* skip more tests
* skip all feature controls tests for Firefox
* revert back changes in feature controls tests
* rename xpack report for chrome
* skip tile map for FF, wait for render before saving
* Revert "run all groups 3 times"
This reverts commit 12b4f69627.
* revert refresh on login
* apply feedback
* Pin dependencies
* include core-js in babel packages
* specify core-js version when using `useBuiltIns`
* dedupe @babel/types to avoid "range of null" problem
* Pin dependencies
* [eslint] ignore large files that take a long time to parse
* [eslint-plugin-import] force `querystring` to be considered a core module
* [eslint-plugin-import] auto-fix import order issues
* move charts to separate components
* replace areachart
* apply custom styles
* customize barchart color
* customize color for areachart
* move reusable functions into common
* exchange x & y value in barchart dataset
* replace pure component with react memo and upgrade enzyme adapter
**v4.5.5**
- Support Github Enterprise by allowing custom Github hostname
**v4.5.4**
- Add ability to customize PR title (`--prTitle`)
**v4.5.0 - 4.5.3**
- Add ability to append text to PR description: (`--prDescription`)
- More helpful message for handling conflict resolution
- Gracefully handle invalid access tokens
- Drop ssh keys requirement and use access token for everything
- Create an official Docker image, which allows users without Node.js and/or git to use Backport
**v4.4.2:**
- Update all dependencies to latest version
* Returning live data
* Adding TSVB data population
* adding tests
* Adding UI
* Adding rough draft of metrics control
* Breaking out metric component; adding useCallback to callbacks; adding intl strings
* seperating out form
* Break metrics form out; change to custom color picker; create custom color palette;
* fixing bug with color picker
* changes to color palette; fix callback issue
* Fixing count label
* Fix chart label to truncate
* Changing by to graph per
* Making the metric popover wider to ease field name truncation
* critical changes to the import order
* Changing metrics behavior
* Hide metrics when choosing document count
* Updating chart tooltip; fixing types;
* Setting intial state to open metrics; Tweaking toolbar sizes
* fixing linting issues
* Allow users to filter by a grouping by clicking on the title
* Change rate to rateMax; add rateMin and rateAvg; fix title text-align
* Use relative paths to fix base path bug
* fixing typescript errors; removing rateAvg and rateMin; removing extranious files;
* Fixing formatting issues
* Fixing i18n linting errors
* Changing to elastic-charts
* fixing typing errors with charts
* Moving afterKey out of URL to fix bug with pagination
* Adding support for multiple axises
* Adding tests for useMetricsExplorerData hook
* breaking up the charting code; removing multi-axis support; changing color palette to use blue and red for first two color
* Adding drop down menu to charts for filtering and linking to TSVB
* Adding more tests for useMetricsExplorerData hook; adding error message; adding chart options to non-groupby charts
* only display groupings that have the metric fields
* Refactor page level state into custom hook; add test for options handlers;
* Fixing linting
* removing color picker
* removing useInterval
* Changing group by to use the pills; Changing context menu button; adding icons to context menu.
* Adding test for color palette
* Adding test for createFormatterForMetric()
* removing tsx extension; adding tests for createMetricLabel()
* removing tsx extension; adding tests for createMetricLabel()
* re-organizing helpers
* Moving helpers from libs to helpers; adding test for metricToFormat
* Fixing bug in tsvb link fn; adding timeRange props; adding createTSVBLink() test
* fixing timeRange fixture import; fixing aria label for action button
* removing some unecessary useCallbacks
* Adding test for MetricsExplorerChartContextMenu component
* Fixing linting issues
* Optimizing test
* Adding empty prompts for no metrics and no data
* Removing duplicate sereis def
* tcs has lost it's mind so I had to copy enzyme_helpers.tsx into our plugin
* Appeasing prettier
* Update x-pack/plugins/infra/public/components/metrics_exploerer/metrics.tsx
Co-Authored-By: simianhacker <chris@chriscowan.us>
* fixing path typo
* Adding supportFiltering to dependicy; change options to be more specific
* remove typo
* Fixing typo
* Adding logColumns to source fixture; fixing typo
* Fixing path to be more sane
* Bump api-extractor to fix missing warning bug
* Fix api-extractor not failing build on api changes
Workaround for upstream bug
* Don't fail build for api-extractor warnings
Warnings like forgotten exports won't fail the build. Instead these
will be added as comments to the api review files. Thus even though
the build won't break, these warnings will show up in code review and
should be fixed by the author.
This is to allow us to merge the workaround for the upstream bugs
without breaking master until we've addressed all the warnings.