* bump query-string version to remove manual type definitions
* remove manual type declaration
* add kibana_utils tsconfig
* add refs to kibana_utils tsconfig
* add kibana_utils to the project list
* add kibana_react project
* add support for x-pack/tsconfig.refs.json
* add ts project for x-pack licensing plugins
* add glob for ts projects in src/plugins & x-pack/plugins
* add refs to projects in examples
* fix ref paths in x-pack/test
* address mistic comments
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Refactor allocation notices for tier preferences
- also removed the lingering "data_frozen" node role
* added some test coverage
* Implement copy feedback
* Minor refactors based on PR feedback
* expanded README.md with section on testing cluster state notices
* Updated copy to reference policy and updated freeze description
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* [ML] Replace use of rest_total_hits_as_int with track_total_hits
* [ML] Replace use of lodash get for obtaining hits total
* [ML] Update mocks to use new total hits format
Upgrade to Storybook 6 and attempt to use the declarative configuration.
The goals of this PR (as part of Kibana's Storybook roadmap, are:
Upgrade to Storybook 6
Still allow running Storybooks with yarn storybook plugin_name
Use the declarative configuration to (hopefully) make the configuration simpler to use an easier to understand, as well as avoiding deprecation warnings and loss of future compatibility
The ways in which what I have so far differs from how we do things today are:
In the alias configuration it takes a path to a storybook configuration directory instead of the storybook.js file from before
Each plugin (it doesn't have to be a plugin; can be any directory) has a .storybook/main.js (the aliases file in @kbn/storybook specifies these locations) where they can define their Storybook configuration. You can require('@kbn/storybook').defaultConfig to get defaults and override them
@kbn/storybook has a preset that can provide Webpack and Babel configuration and Storybook parameters and decorators
Instead of dynamically creating the list of stories to import, we define them in the globs of the stories property in .storybook/main.js.
Do not build a DLL. We are using @kbn/ui-shared-deps as externals. Startup time is not quite as fast but still acceptable.
Other things done in this PR:
Allow default exports in .stories. to allow for Common Story Format CSF stories
Add guard in Webpack configuration needed for overriding CSS rules
Update filename casing check to allow for files with required names in Storybook
Clean up observability stories
Rename *.examples.tsx and *.story.tsx to *.stories.tsx
* Add ability to fetch anomalies by metric
* Add ability to fetch anomalies to timeline
* Show anomaly annotation on timeline
* Fix type check
* Fix typos
* Add influencers to tooltip, add legend
* Remove unused variable
* Only show anomalies with a score greater than 50
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Add `wrap` to the flex group for the APM header and remove the `break-all` CSS.
Makes it so the date picker doesn't get cut off on narrow screens and the header text does not wrap unnecessarily.
* [Setup] Refactor renderApp tests
- This is anticipation of upcoming renderHeaderActions changes which will require these helpers (particularly the unmount portion, for some reason renderHeaderAction tests fail if apps are not unmounted properly)
- Add mount/unmount helper (but leave first test the same so that devs can see the normal/expected usage)
- Add missing EnterpriseSearch app test
- Add mockContainer var for brevity, pull out MockApp in anticipation of future usage
* Store renderHeaderActions in KibanaLogic
- a light wrapper/helper around params.setHeaderActionMenu
+ update renderHeaderActions - move to main renderApp block to reflect that its relationship with renderApp ('child'/should be called within renderApp/shares dependencies).
* Update WorkplaceSearch to render its header actions from app, not plugin.ts
* Update WorkplaceSearch tests (+ bonus refactor)
- We need to update WS tests to setMockValues so that it doesn't override the renderHeaderActions mock
+ bonus - add setMockActions as well because since we're already here
+ bonus - update App Search index tests as well to match
+ ?? - for some reason tests were failing beceause react router wasn't mocked properly - requireActual seems to fix that
* 🔥 Remove temporary externalUrl workaround
- set in 9d993d8e5d
- WorkplaceSearchHeaderActions should now still have the correct URL - and also now be able to access all Kea logic set up by the main app :)
Add OpenTelemetry agent names and and icon. OpenTelemetry services will have the same icon as the corresponding APM services.
Services that report "otlp" as their agent name use the OpenTelemetry icon.
The OpenTelemetry agents are now collected in the data telemetry along with the other agent names.
Change "ratio" in the telemetry to a float.
* [Dashboard][Embeddable] Add placeholder title to embeddable panel, stored 'show panel title' prop in embeddable input.
Co-authored-by: Maja Grubic <maja.grubic@elastic.co>
* Add ratio alerting to log threshold alerts
* Fix i18n
* Move grouped query must not filtering from outer to inner clause
* Use new ratio alerting layout
* Use better defaults for ratio alerts
* Remove div wrapper
* Remove type casting, use user-defined type guards
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* [Enterprise Search] Temporarily remove team-specific review requirements
The App Search and Workplace Search teams are currently too small in size (+ only a few are focused on Kibana work) to justify requiring 2 reviews (1 from each team) vs just 1 review from either team.
We will re-consider and add team-specific CODEOWNERS back in if that changes (e.g. all our front end devs switching to Kibana)
* Add additional Kea documentation with links to Kea's docs to help intro new developers
* init commit
* lots of cleanup
* starting on tests... problems
* Ready for review
* remove sample data
* remove comment and fix type
* pr changes
* fix type
* scratchy
* sourcerer in timeline
* sourcerer in timeline
* wip
* moving to redux
* working on types
* fixed
* more adjustments, tests fixed
* FF off
* pr ready
* renaming
* url state working, hoc not working
* url state working for timeline and default scope
* script to build fields for beat doc
* refactor sourcerer
* refactor host to useSourcerer
* refactor network to useSourcerer
* refactor overview to useSourcerer
* refactor detections to useSourcerer
* wip for timelines to remove all useSource
* wip indexes timeline
* do component tests
* start container tests
* start container tests
* update selection widget of index patterns + remove last useWithSource
* modifications to allow file.Ext.code_signature to be either an object or array of objects
* tweaked helper
* add indexeNames in network kpi
* fix type errors
* fix type
* missing merge master
* get existing index from config file
* fixing broken tests
* add saving button to avoid to many queries to be aborted
* try to get data from ecs data
* reducer timeline tests broke
* need to rewind
* much better
* timeline saving index names + clean up url state to only manage default
* more test fixing
* more test changes
* remove all the useWithSource + deprecated the graphql until we delete it in a new PR + delete all the beat doc
* default timeline to all index when creation + filter index patterns to make sure you do not add one who we do not know
* fix types
* test for stateful timeline render
* we should not have change that
* no chnages + snapshot
* fix test + bugs from review
* fix uncommon processes indexNames
* review III
* change design for main page of the sourcerer from design
* bug fixes when opening old timeline + implementation of new design
* fix circular deps
* remove unused attributes for event details
* design cleanup
* moved exeptions modal to use ecs data instead of non ecs timeline data
* trying to fix some merge issues
* added pr feedback
* remove unused component prop
* updated per feedback
Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>
Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
* telemetry
* [Vega] Add vega maps statistics to usage collector
Closes: #78269
* add tests
* ignore sample data visualizations
* fix PR comment
* get default vega vis from home plugin
* match_phrase doesn't work for full text search
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>