* ✨ Unify escaping logic for csv export
* 📝 Update api doc
* ✅ Fix test with new escape logic
* 👌 First batch of feedback
* 💬 Fix typo
* 👌 Memoize function
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
## Summary
Some changes to the order & summaries in the OpenAPI docs.
* Removed `Fleet - ` and `EPM - ` text from the summaries. It saves space and I don't think the extra text helped the user
* Replaced `Enrollment` prefix with `Enrollment API Key`
* Used plural (`policies`, `agents`) for operations that return a list
* Rearranged the order of the routes to group the routes vs using an alphabetic sort.
* Not sure if it's priority/domain but it feels better to me
* `/setup` is the first route; not last.
* installing integrations and adding agents are "above the fold"
<details><summary>screenshots from one viewer - before (left) vs PR (right)</summary>
<img align="top" width="40%" alt="Screen Shot 2021-07-15 at 1 53 48 PM" src="https://user-images.githubusercontent.com/57655/125836353-1b3c10e2-6c1d-4a7a-99c7-04d49a37cbac.png"><img align="top" width="40%" alt="Screen Shot 2021-07-15 at 1 53 57 PM" src="https://user-images.githubusercontent.com/57655/125836358-6f0647c3-4209-43a3-8fc7-7b33ad97d543.png">
</details>
* Move swimlane annotation out of container, add new axis width prop
* [ML] Fix alignment if some annotations overflow
* [ML] Move utils function to inside anomaly_timeline_service
* [ML] Fix y chart overflow
* [ML] Enforce stricter check on isOverallSwimlaneData
* [ML] Update logic to check if only one label
* Convert enrichment icon from the security logo to an (i)
Feedback was that the security logo was confusing.
* Move tooltip icon to the right of our content
Placing it on the left was meant to call out these fields as distinct
from others, but placing it on the right is more in line with EUI
guidelines.
This also updates the relative spacing of these elements to account for
this new position.
* Allows header to span multiple lines if content would wrap
Without this, both the tooltip icon and the inspect button could be
hidden if the indicator matched a field with a particularly long value
(e.g. a file hash).
* Update copy with latest from product
I took a guess at extending the verbiage for some of the more detailed
descriptions, since product has not yet provided those.
* Final copy updates
Each panel now includes the CTI CTA as well.
* Improve schema from object to $ref
* Add description and response schema for /agent-status endpoint
* Remove code related to removed /install/:os endpoint
* Add response schemas for enrollment-api-key operations
* Add response schemas for /agents/:agentId
* Fix two security scheme names
* Change format for reference selectors
* Replace Ingest Manager with Fleet in OpenAPI spec
* Replace instances of Ingest Manager with Fleet
* Update instructions to create bundled specs
* Adds security-onboarding-and-lifecycle-mgt as a codeowner of /public/management and /server/endpoint/routes/trusted_apps
* Add more server folders that we own
* adds more sub paths and split our team from the security one using a comment line
* sort imports
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [APM] @kbn/typed-router-config
* [APM] typed route config
* Breadcrumbs, wildcards
* Migrate settings, home
* Migrate part of service detail page
* Migrate remaining routes, tests
* Set maxWorkers for precommit script to 4
* Add jest types to tsconfigs
* Make sure transaction distribution data is fetched
* Fix typescript errors
* Remove usage of react-router's useParams
* Add route() utility function
* Don't use ApmServiceContext for alert flyouts
* Don't add onClick handler for breadcrumb
* Clarify ts-ignore
* Remove unused things
* Update documentation
* Use useServiceName() in ServiceMap component
* Basic setup of error plugin.
* Removed not used `function` files at `error` expression.
* Moved related components from canvas.
* Changed imports of components.
* Fixed renderer and storybook.
* Fixed types errors.
* Added limits.
* Removed useless translations and fixed .i18nrc.json
* added `done` handler call.
* Added more fixes fo i18nc.
* Added docs.
* More fixes of i18nrc.
* Fixed async functions.
Written current code, based on https://github.com/storybookjs/storybook/issues/7745
* Fixed one test with Expression input.
After changing the way of rendering in stories, all elements are mounting and componentDidMount is involved. The previous snapshot was without
mounted `monaco` editor.
* Fixed storybook error.
* More fixes.
* removed unused translations.
* Removed handlers and changed the way of handling `resize` and calling `done`.
* Fixed i18n error.
* Fixed storybook.
* Replaced Popover with EuiPopover.
* Moved `Popover` back to `canvas`
* Removed `Popover` export from presentation_utils components.
* Moved error_component and debug_component from presentation_util to expression_error.
* Fixed translations and imports.
* Moved `debug renderer` to `expression_error` plugin.
* Fixed error.
* Fixed lazy exports.
* Fixed imports
* Fixed storybook snapshot.
* Removed `.i18nrc.json`.
* Fixed color of `error`.
* Exported concrete elements from popover.
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
###Summary
This PR adds the subfeature UI for alerts to security solution. Note that the ability to customize subfeatures is still a gold feature. How will this map with existing users? The feature and subfeature are tied. So if a user was previously assinged All for security solution - they would get all for alerts, etc.
It still remains behind a feature flag, so to see the change you'll need to have the following in your kibana.dev.yml
xpack.securitySolution.enableExperimental: ['ruleRegistryEnabled']
xpack.ruleRegistry.write.enabled: true
* Bump EUI to v35.0.0, update euiContextMapping to match latest i18n tokens
* Updated i18n_service jest snapshot
* Added license override for EUI
* Attempting to clean up some forced dependency resolutions
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [Reporting] Refactor types for API response data
* fix api test
* Update x-pack/plugins/reporting/common/types.ts
Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
* more verbose comments
* set comments in interface type definition
* Update x-pack/plugins/reporting/common/types.ts
Co-authored-by: Michael Dokolin <dokmic@gmail.com>
* more strict
* Update x-pack/plugins/reporting/public/management/report_info_button.tsx
Co-authored-by: Michael Dokolin <dokmic@gmail.com>
* Update x-pack/plugins/reporting/public/management/report_info_button.tsx
Co-authored-by: Michael Dokolin <dokmic@gmail.com>
* fix suggestion
* fix accidental declaration of interface methods as function properties
* fix info panel
Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
Co-authored-by: Michael Dokolin <dokmic@gmail.com>
* Fix route validation
This param is not always required. Was already fixed for org version but the personal dashboard came later and was not fixed.
Original fix for org:
30d8b1dfa8 (diff-07f094b2a4719e8511f003d8e278a77cd6b808d11b14d1c528705f9b259c328fR373)
* Fix route to account for private github route
Previously had the org route hard-coded
* Move the logic for parsing the query params to template
Because the useEffect call comes after the initial render, the chrome flashes. We originally got around this by hiding the chrome always because in non-github scenarios, this worked fine.
However, because the oauth plugin sends the state in the quert params and uses the same URL, we need to parse that to determine whether this is an org or accoutn route. We now do that logic in the template and set the chrome before calling the useEffect.
We still need to pass both the parsed params and the original quert string because the redirect passes that string to the next view.
## Summary
* Fixes flake where it looks like pre-built rules can take longer than 1 minute to load, so I increased that to 5 minutes
* There are problems with how the `cy.intercept` is not always working on CI we don't understand yet, so I am removing the failing call but keeping the rest of the test for the failure.
Backporting these two into `7.14` to add stability to `7.14` tests as well.
### Checklist
- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios