* 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 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>
* 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
* 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>
* Clean up ui/documentation_links in vis_default_editor
* Replace move from ui/utils/collection
* Remove loading stateManagementConfig since it is unused
* Inline SimpleEmitter
* Inline Binder to get rid of a dep
* Remove unused imports
* Update unit test
* Fix test
* Remove unused legacyChrome
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* log meta in pattern layout
* address pgayvallet comment
* add conversion patterns for timestamp
* use comparison instead of inline snapshots
* logs. use elasticsearch and LP compatible timezone format in json layout
* use regexp groups and dot separator for ms. as in default iso format
* use America/New_York timezone as default as it set in guess anyway
* fix APM tests. they need to reset timezone locally and restore it after
* fix logging tests
* Give a bit more time for machines on CI
* Remove unnecessary sleep
* Dummy error logs [do not commit to master]
* Revert "Dummy error logs [do not commit to master]"
Also only update data (and call serializer) on a success response, not on an error response.
* Remove common.sleep and rewrite the comment explaining the use of retry.waitFor
* Fix typo
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Exposed common EuiExpressions to separate components be able to reuse for building new for Alert Types (#56466)
* Exposed common Expression to separate components be able to reuse
* Expressions with unit tests
* Fixed type check
* Fixed merge issues
* Fixed due to review
* Cleaned up some not used params and added position popover definition
* fixed type check
* Unbinded alerting reusable components from application context
* Added consumer and alertTypeId with enable change alert type button props
* Fixed case for default alert type id was set
* Fixed chart visualization issues
* Exposed registry in triggers and actions ui
* Fixed alert_list to enable charts
* Fixed due to comments and simplified props
* Fixed type check issue
* type check error
* Explicitly test custom appRoutes (#55405)
* Explicitly test custom appRoutes
* Extract common navigation function
Fixing flaky CI tests for custom appRoutes
* test only flaky tests. DO NOT MERGE IN 7.x
* chore(NA): removes use of parallel option in the terser minimizer
* docs(NA): update note
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>