* build immutable bundles for new platform plugins (#53976)
* build immutable bundles for new platform plugins
* only inspect workers if configured to do so
* [navigation] use an index.scss file
* add yarn.lock symlink
* set pluginScanDirs in test so fixtures stay consistent
* cleanup helpers a little
* fix type error
* support KBN_OPTIMIZER_MAX_WORKERS for limiting workers via env
* test support for KBN_OPTIMIZER_MAX_WORKERS
* expand the available memory for workers when only running one or two
* add docs about KBN_OPTIMIZER_MAX_WORKERS environment variable
* fix README link
* update kbn/pm dist
* implement bundle caching/reuse
* update kbn/pm dist
* don't check for cache if --no-cache is passed
* update renovate config
* standardize on index.scss, move console styles over
* add support for --no-cache to cli
* include worker config vars in optimizer version
* ignore concatenated modules
* update integration test
* add safari to browserslist to avoid user-agent warnings in dev
* update docs, clean up optimizer message/misc naming
* always handle initialized messages, don't ignore states that are attached to specific events
* reword caching docs, add environment var to disable caching
* tweak logging and don't use optimizer.useBundleCache as that's disabled in dev
* handle change notifications
* batch changes for 1 second
* rename CompilerState type to CompilerMsg
* getChanges() no longer needs to assign changes to dirs
* remove unused deps
* split up run_worker.ts and share cacheKey generation logic
* add a couple docs
* update tests and remove unused imports
* specify files when creating bundle cache key
* remove one more unused import
* match existing dev cli output more closely
* update kbn/pm dist
* set KBN_NP_PLUGINS_BUILT to avoid warning in CI
* avoid extending global window type
* add note to keep pluginScanDirs in sync
* pass browserslistEnv in workerConfig so it is used for cache key
* load commons.bundle.js in parallel too
* emit initialized+success states if all bundles are cached
* load bootstraps as quickly as possible
* skip flaky suite
* bump
* update jest snapshots
* remove hashing from cache key generation
* remove unnecessary non-null assertion
* improve docs and break up Optimizer#run()
* remove unused import
* refactor kbn/optimizer to break up observable logic, implement more helpful cache invalidation logic with logging
* fix tests
* add initializing phase
* avoid rxjs observable constructor
* remove unnecessary rxjs helper, add tests for bundle cache
* update consumers of optimizer
* update readme with new call style
* replace "new platform" with "kibana platform"
* fix a couple more renames
* add support for several plain-text file formats
* fix naming of OptimizerMsg => OptimizerUpdate, use "store" naming too
* one more OptimizerMsg update
* ensure bundles are not cached when cache config is false
* test for initializing states and bundle cache events
* remove unnecessary timeout change
* Remove unnecessary helpers
* Add tests for BundleCache class
* Add tests for Bundle class
* test summarizeEvent$
* missing paths are no longer listed in mtimes map
* add tests for optimizer/cache_keys
* Add some extra docs
* Remove labeled loop
* add integration test for kbn-optimizer watcher components
* querystring-browser removed
* tweak logging a smidge, improve info and final message
* remove unused imports
* remove duplication of getModuleCount() method
* move type annotation that validates things
* clear up the build completion message
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* [kbn/optimizer] Fix windows support (#57592)
* [kbn/optimizer] simplify run_workers.ts a smidge
* use Path.resolve() to create windows paths from normalized ones
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 343bc9c303)
* remove istanbul/code coverage references
* fix webpack config syntax
* removal of querystring-browser was backported to 7.x
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Fix to trigger a chart update with the correct width when resizing the browser window. Previously after a browser refresh, or opening the view from a bookmarked URL, the chart would not resize until a state change was made to the view (such as moving the zoom slider or altering the time range).
* Fix Console performance bug for large request bodies
The legacy_core_editor implemenation was calculating the current editor line
count by .split('\n').length on the entire buffer which was very inefficient
in a tight loop. This caused a performance regression. Now we use the cached
line count provided by the underlying editor implementation.
* Fix performance regression inside of ace token_provider implementation
* Clean up another unnecessary use of getValue().split(..).length.
Probably was not a performance issue, just taking unnecessary steps. Not
sure that this function is even being used.
* handle viewing sample dashboards on default dist
* re-work change to not break jest test
* Update snap for addition of data-test-subj
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Fixes brush visibility. The brush will no longer be hidden if it covers the full available timespan. Removes all code that was earlier used to manage brush visibility.
* Use app id instead of pluginId to generate navlink from legacy apps (#57542)
* properly use app id instead of pluginId to generate navlink
* extract convertToNavLink, add more tests
* use distinct mapping methods
* fix linkToLastSubUrl default value
* nits & doc
* update generated doc
* [ML] New Platform server shim: update job service routes to use new platform router (#57403)
* wip: convert jobService route file to TS and use NP router
* add schema definitions for route params
* add api docs description for routes
* update schema and rename client
* update calendarManager
* fix typo in schema
* use NP context savedObjectsClient for rollup true
* request no longer passed to JobServiceProvider
* update anomalyDetectors schema for job update
* add missing key to anomalydetectors schema
* update schema
* address comments
* use log4j-like syntax in layout pattern
* %timestamp --> %date to match log4j conversion pattern
* %context --> %logger to match log4j pattern
* remove file from pre-defined appenders.
file name is required. let users to setup everything
* matchAll is not polyfilled in runtime
* document available patterns and migration path
* document BWC requirements
* Revert "matchAll is not polyfilled in runtime"
This reverts commit 9f491d4f53.
* address comments
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Several tests using the
savedQueryManagementComponent.saveNewQueryMissingOrFail method have been
failing with 'waiting for element'. Temproary adding a skip for tests
using this method
Related #50018
Related #44631
Related #45348
(cherry picked from commit 431a1e9c89)
* [Alerting] make actionGroup name's i18n-able (#57404)
We want to make the Action Group i18n-able for display in the AlertDetails page, so instead of just a list of ids, the AlertType now registers an object where key is the id and value is the human readable, and translatable, value.
* fixed issue introduced by merge conflict
* fixed merge conflict
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Add autocomplete="off" for input type="password" to appease the scanners
* Using new-password instead of off for the new/confirm passwords
* Setting more autoComplete="new-password" attributes
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* [Maps] do not show border color for icon in legend when border width is zero
* fix jest tests
* fix jest tests
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* prevents creation of rules when duplicate rule_id is present
* adds unit test to reflect change
* genericizes duplicate discovery functions, allows creation of non-duplicated rules even when duplicates are discovered, keeps same return type signature, updates relevant test for duplicates in request payload
* utilizes countBy and removes reduce in favor of a filter on getDuplicates function
* fix type
* removes skip from e2e test for duplicates on bulk create, updates expected response in e2e test, fixes bug where duplicated error messages appeared for each instance of a duplicated rule_id (found this one through the e2e tests)! Adds unit test to catch this case.
* getDuplicate returns empty array instead of null, removes unnecessary return logic
* removes null coalescing from includes in filter
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* [APM] Remove initial time range for service maps
The initial time range for the service maps request might no longer be necessary, from what I can tell. Not having it improves the overall loading time and the user experience.
* Remove loading indicator for service maps
* Don't unnecessarily paginate
* Unset loading indicator if component unmounts
* [Maps] type ahead for stop values for custom color maps and custom icon maps
* use Popover to show type ahead suggestions
* datalist version
* use EuiComboBox
* clean up
* wire ColorStopsCategorical to use StopInput component for autocomplete
* clean up
* cast suggestion values to string so boolean fields work
* review feedback
* fix problem with stall suggestions from previous field
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>