* Remove modal for removing a policy from card
* new `assignPolicyToTrustedApps()` and `removePolicyFromTrustedApps()` methods for TrustedAppsService
* Additional tests for the policy details Trusted Apps List page/tab
* several tests for RemoveTrustedAppFromPolicyModal (but not all)
* enable --skip-lib-check for all projects in typeCheck and fix existing issues
* fix graph types
* transpile TS to ES2019, but not all the way back to es5
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Fix API call and refactor component to show different summary when size is small
* Refactored fleet trusted app card with new m design
* Removed unused code
* fix ts error
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* added new data-render-error attribute, read it and store it on job object
* added data-render-error to the example app
* added jest test
* address pr feedback
- make renderErrors optional in interfaces
- create separate selectors for data render error selector/attr
- Tidy up mergeMap behaviour
* fix observable.test.ts snapshots and browser driver mock
* updated jest snapshots
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Adds new card design to event filters and also adds comments list
* Adds nested comments
* Hides comments if there are no commentes
* Fixes i18n check error because duplicated key
* Fix wrong type and unit test
* Fixes ts error
* Address pr comments and fix unit tests
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Show add agent link instead of 0 agents
* Add popover
* open and close popover
* fill button
* add popover to agent cell
* PR feedback
* only add offset to props if it's provided
* make code clearer
* Update x-pack/plugins/fleet/public/components/add_agent_help_popover.tsx
Co-authored-by: Dave Snider <dave.snider@gmail.com>
* remove unused import
* whitespace
Co-authored-by: Dave Snider <dave.snider@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Use the new data stream (if exists) to write action request to
and then the fleet index. Else do as usual.
fixes elastic/security-team/issues/1704
* fix legacy tests
* add relevant additional tests
* remove duplicate test
* update tests
* cleanup
review changes
refs elastic/security-team/issues/1704
* fix lint
* Use correct mapping keys when writing to index
* write record on new index when action request fails to write to `.fleet-actions`
review comments
* better error message
review comment
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [APM] Removes the apm_oss plugin and deprecates related configs (#108160)
* removes commented lines
* fixes typescript errors
* performs start up migration on the saved objects mapping for apm-indices
* removes all references to the deprecated apm_oss.* config paths in APM
* fixes missing bundle error
* fixes type error
* fixes eslint error with disabled rules
* fixes saved object mappings for es_archvices for tests
* fixes eslint error
* Updates default index values to include the more general apm-*. Fixes broken tests.
* removing unused configs from the config path migration: apm_oss.indexPattern and apm_oss.fleetMode
* - replaces full index configuration paths with references in the `xpack.apm.indices` namespace
- removes mergeConfig function and test
* fixes proxy mock object in unit test
* fixes linting issues
* PR feedback and failed test
* changes the configs at `xpack.apm.indices.*` from plural to singular to match `processor.event` values
* Fix unsaved changes prompt showing up between tabs
We already added a reducer for this but forgot to implement this. Because we have shared state between the tabs, we need to overrule the unsaved changes prompt when simply navigating between tabs.
* Fix some timezone issues
After wiring up the backend and converting to UTC, some changes to mocks and time formats had to be made.
* Refactor to remove blockedWindows reducer
This commit refactors to make use of the already-in-state schedule object. Previously, while wiring up the static views, I used a blockedWindows array directly on the state tree. This simplifies things so that equality checks can be done with one object.
* Wire up ability to remove blocked window
* Fix key and remove fallback
It was hard to test removing an item from an array that doesn’t exist so I changed the code to expect the array to be present (! operator), since the other path is not possible.
Also updated the server value from deletion to delete to match the API
* Wire up blocked windows form to change values and update state
* Pass formatted blocked_windows to server
(test was covered in previous commit)
* Update link text, hrefs, and replace temp copy
One of the links was removed intentionally
* Fix typo
* Fix edge case where unsaved changes shown when removing last item
The API omits the key when there are no items so we need to have the item removed as well in the UI state. Otherwise, removing the last item will cause the UI to say there are unsaved changes when there are not.
I tried setting it as:
schedule.blockedWindows = undefined
but the selector did not see those as equal but deleting the key does.
* More typo fixes
Syncronization -> Synchronization (+h)
* Fix link address
* Refactor for simplicity
Was unable to figure out the TypeScript but did some more digging
* Upgraded the version of EUI to 38.2.0 from 38.0.1
* Updated the i18n mappings required for EUI v.38.2.0
* Update i18n snapshots and resolve linting error
* Removed html_id_generator mocks.
Current mock was failing due to missing useGeneratedHtmlId export. This is safe to remove because EUI contains a .testenv that contains an mock for html_id_generator. More info at https://github.com/elastic/eui/blob/master/src/services/accessibility/html_id_generator.testenv.ts
* Resolve linting error in i18n mapping file
* Removed html_id_generator mocks.
Current mock was failing due to missing useGeneratedHtmlId export. This is safe to remove because EUI contains a .testenv that contains a mock for html_id_generator. More info at https://github.com/elastic/eui/blob/master/src/services/accessibility/html_id_generator.testenv.ts
* Update plugin snapshots
* Resolve merge conflict in license_checker config.ts file
* Upgrade EUI to version 39.0.0 from the original target (38.2.0) to handle an issue found with a functional test during the original upgrade
* Updated the i18n mapping for EUI v.39.0.0
* Update various snapshots to account for the an i18n translation token addition in EUI v. 39.0.0
* Updated test cases marked as obsolete by CI
* Update src/dev/license_checker/config.ts
Removing TODO comments from src/dev/license_checker/config.ts as they are no longer needed.
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
* Move copy function to `isCopyable` on EuiCodeBlock
* Using EuiMarkdownFormat for Content
* Using KibanaPageTemplate for not found page
* Using KibanaPageTemplate for tutorial page and splitting into more panels
* Better spacing inside instruction_set
* Rendering Introduction as a EuiPageHeader
* Changed module notice “NOTE” to icon
* Moving tabs to the first set of content in an instructions set; Using EuiSplitPanel
* Changed fields button to a simple link
* Changed button group to wide, text colored, left-aligned set