* add an excess validation instead of the exact match
* fix readble type + unit test
* review I
* remove buildRouteValidation to use buildRouteValidationWithExcess
* move test_helpers to the core
* create base tsconfig
* all tsconfigs use the base one
* use test_helpers exposed from the src/core
* move getFieldFormatsRegistry to data plugin
* add test_utils project
* compile types after checkout
* add a stub for platform tsconfig.json
* fix broken import
* fix broken path to the base config
* set tsBuildInfoFile for project without outDir
* do not commit tsbuildinfo file
* do not check output d.ts files
* fix type error
* use separate config to build types
* rollback changes to include paths
* mute import zone error
* rename files to avoid references to tsd
* do not use tsd for type tests
* include all ts files in project
* run buildRefs before type check to ensure the latest version
* store tsbuildinfo locally
* update paths to base config
* comment out core/tsconfig.json
* remove ui path
* fix wrong tsbuildinfo path
* remove legacy kibana plugin
* as ES as a dependency to security instead of kibana
* remove 'kibana' plugin presence check in so mixin
* moved the `kibana` config section to the server
* Fixes storybook anomaly score generation and better utilizes available screen space
* Closes#71770 for APM service maps by replacing breadthfirst layout with
one from the cytoscape-dagre extension. Also replaces the taxi edges
with cubic bezier edges. Finally, this adds the ability to drag
individual nodes around the service map.
* Removes unused code
* removes commented line of code
* - Adds ability for scripts/notice.js to check files with the .tsx file extension
- Adds attribution for `applyCubicBezierStyles`
* Refine comment text and MIT license url
## Summary
Removes RuleTypeSchema in favor of Type for TypeScript. Does break out one function called `parseScheduleDates` into its own file to remove a circular ref issue.
## Summary
Mistmatch caught between the io-ts type and the corresponding typescript enum. Currently, io-ts does not have support for enums - as a workaround I had made a matching typescript enum type. Tests were added to try to ensure the two stayed in sync, but didn't do a straight up comparison of the two.
Updated the tests to now error if the keys do not match.
@elastic/enterprise-search-frontend is a shared team of both app-search-frontend and workplace-search-frontend, but combining it into one group means only 1 reviewer is required (as opposed to 1 per team).
## Summary
**Components affected:** ExceptionsViewer
**Current behavior:**
- when a user edits an exception item, the order of the exception items in the viewer changes. This creates confusion and looks like updates weren't applied (even though they were, just item order changed)
**New behavior:**
- when a user edits an exception item, the order of the exception items in the viewer don't change. Sort order is now based on `created_at`
* Add shared images and export file
* Migrate SourceIcon component
* Add util to format routes
We need a way to format routes using parametrized routes in Workplace Search. We used to the `react-router-named-routes` library, but it is 5 years old has has no typings. I extracted the function we needed into a util.
* Update recent_activity to use formatRoute
For the 7.9 Kibana MVP, we used a temporary function to generate this route. Aligning this component to use the helper other parts of the app will use after migration.
* Add types and constants
Various types and constants migrated for use in groups component
* Migrate SourceRow component
Also adds a mock for contentSources. For now the array only has one item needed for this test, but in future tests, more sources will be added to that array.
* Migrate SourcesTable component
* Migrate TablePaginationBar component
* Migrate UserIcon component
* Migrate UserRow component
* Refactor format_route
Uses Object.entries instead of for…in. This is more modern and allows for 100% test coverage.
Also removed `toString()` as `encodeURIComponent()` seems to automatically cast to string
* Remove unused import
* Use forEach instead of map
We’re not returning anything so map is not needed
* Minify images
* Remove formatRoute in favor of generatePath
Unike formatRoute, generatePath adds the trailing slash automatically
* Stop renaming methods
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* move analysis stats to own section in expanded row
* fix type errors
* move stats to separate tab in expanded row
* handle parameters and hyperparameters not defined
* Big bang commit removing top-level success property in API response
Left in check-permissions and in array of objects returned by delete package configs
* Remove success property from mocks
* Resolve conflict from upstream changes
* Remove success property (after upstream merge)
* Remove more 'success'es after merging in upstream
* Remove success from some tests
* Remove success from OpenAPI spec
* Revert prior try/catch. Use res.ok
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Add new 404 NotFound shared view
* Add new telemetry ui_error.not_found metric
* Add check for licensed users who should be sent to support.elastic.co
* wip: switch analyticsList inMemoryTable to basic and implement search bar
* move basicTable settings to custom hook and update types
* update types
* add types for empty prompt
* ensure sorting works
* add refresh to analytics management list
* ensure table still updates editing job
* [ML] Switching to new es client
* further conversions
* fixing tests
* updating responses
* test commit
* refactoring shared services to removed context parameter
* removing last scoped clients
* removing ml js client
* udating file data viz errors
* fixing jest tests
* fixing types after merge with master
* error response changes
* adding default sizes to some requests
* adding custom error types for license checks
* tidying up shared function checks
* removing test data
* removing need for DummyKibanaRequest
* updating comment
* fixing functional api tests
* removing comments
* fixing types after master merge
* throw error rather than return it
* removing placeholder error
* changes based on review comments
* fixing types after merge with master
* fixing missing return
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
- Added some more spacing for the indention inside a nested accordion
- Added additional spacing to the CausedBy accordions that created some space between the content and the containers.
* let the user specify multiple kibana urls
* add validation to kibana urls so paths and protocols cannot differ
* update i18n message
* only send the first url to the instructions
* udpate all agent configs' revision when settings is updated
* fix jest test
* update endpoint full agent policy test
* fix type
* dont add settings if standalone mode
* fix ui not handling errors from /{agentPolicyId}/full endpoint
* fix formatted message id
* only return needed fields
* fill in updated_by and updated_at attributes of the ingest-agent-policies when revision is bumped
* throw error if kibana_urls not set and update tests
* change ingest_manager_settings SO attribute kibana_url: string to kibana_urls: string[] and add migration
* leave instructions single kibana url
* make kibana_url and other attributes created during setup required, fix types