* WIP
add tabs for endpoint details
* fetch activity log for endpoint
this is work in progress with dummy data
* refactor to hold host details and activity log within endpointDetails
* api for fetching actions log
* add a selector for getting selected agent id
* use the new api to show actions log
* review changes
* move util function to common/utils
in order to use it in endpoint_hosts as well as in trusted _apps
review suggestion
* use util function to get API path
review suggestion
* sync url params with details active tab
review suggestion
* fix types due to merge commit
refs 3722552f73
* use AsyncResourseState type
review suggestions
* sort entries chronologically with recent at the top
* adjust icon sizes within entries to match mocks
* remove endpoint list paging stuff (not for now)
* fix import after sync with master
* make the search bar work (sort of)
this needs to be fleshed out in a later PR
* add tests to middleware for now
* use snake case for naming routes
review changes
* rename and use own relative time function
review change
* use euiTheme tokens
review change
* add a comment
review changes
* log errors to kibana log and unwind stack
review changes
* search on two indices
* fix types
* use modified data
* distinguish between responses and actions and respective states in UI
* use indices explicitly and tune the query
* fix types after sync with master
* fix lint
* do better types
review suggestion
* add paging to API call
* add paging info to redux store for activityLog
* decouple paging action from other API requests
* use a button for now to fetch more data
* add index to fleet indices
else we get a type check error about the constant not being exported correctly
from `x-pack/plugins/fleet/common/constants/agent`
* add tests for audit log API
* do semantic paging from first request
* fix ts error
review changes
* add document id and total to API
review suggestions
* update test
* update frontend to consume the modified api correctly
* update mock
* rename action
review changes
* wrap mock into function to create anew on each test
review changes
* wrap with schema.maybe and increase page size
review changes
* ignore 404
review changes
* use i18n
review changes
* abstract logEntry component logic
review changes
* move handler logic to a service
review changes
* update response object
review changes
* fix paging to use 50 as initial fetch size
* fix translations and move custom hook to component file
review changes
* add return type
review changes
* update default value for page_size
review changes
* remove default values
review changes
https://github.com/elastic/kibana/tree/master/packages/kbn-config-schema#schemamaybehttps://github.com/elastic/kibana/tree/master/packages/kbn-config-schema#default-values
* fix mock data
refs 1f9ae70194
* add selectors for data
review changes
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Ashokaditya <am.struktr@gmail.com>
Adds Capacity Estimation to the Task Manager Health Endpoint.
Below is a diagram depicting what information we use to estimate the varying capacity variables.
Please use the user facing docs to understand how it fits together. If the docs aren't clear enough - make a review comment and I'll clarify in the docs.
* Removes zlib compression when creating artifacts. Also fixes related unit tests and removes old code
* Replaces artifact in new manifest using the ones from fleet client with zlip compression
* Fixes create_policy_artifact_manifest pushArtifacts missing new manifest. Also fixes unit tests
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: David Sánchez <davidsansol92@gmail.com>
* Fixes filter is applied even if is disabled on a dashboard
* Fix 18n problem
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* updated add agent flyout buttons
* move close button to left
* added new optional prop for the add agent flyout and factored out a component from the index.tsx file
* quite a big refactor, moved the agent policy authentication to own component and reused in two places
* fixed layout on view where policy was not selected, also fixed a render cycle
* removed unnecessary filter
* move handler to function body instead of in JSX
* remove unused i18n
* added jest test for agent enrollment flyout steps behaviour
* fix issues after master merge
* Fix bad import in type file
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
* Revert "[FTR] Use importExport for saved_object/basic archive (#100244) (#102016)"
This reverts commit 9851b7bcfa.
* Revert "[7.x] [FTR][CI] Use default distribution for all tests (#94968) (#101118)"
This reverts commit 73225daa87.
* [FTR][CI] Use default distribution for all tests (#94968)
* [FTR] Use importExport for saved_object/basic archive (#100244)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
* [Enterprise Search] Add owner and description properties to kibana.json
Adds owner and description properties to kibana.json
* Reorder to match other plugins
Both others have the props at the end of the file:
https://github.com/elastic/kibana/blob/master/src/plugins/bfetch/kibana.json
Also removes redundant prefix from description
* Copy change
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
* [APM] Improvments in the APM fleet integration (#95501)
* added unit test and line comment
* fixes eslint issues
Co-authored-by: Oliver Gupte <ogupte@users.noreply.github.com>
* Copy lazy_wrapper and suspense_error_boundary from Spaces plugin
These components are needed to enable async loading of Security components into Enterprise Search.
The components are copied without any changes except for i18n ids, so it's easier to DRY out in the future if needed.
* Create async versions of personal_info and change_password components
* Create ui_api that allows to load Security components asuncronously
The patterns were mostly copied from Spaces plugin
* Make ui_api available through Security components's lifecycle methods
* Import Security plugin into Enterprise Search
* Add Security plugin and Notifications service to Kibana Logic file
* Export the required components from the Security plugin and
use them in the new AccountSettings component
* Update link to the Account Settings page
* Move getUiApi call to security start and pass core instead of getStartServices
* Simplify import of change_password_async component by providing...
... `notifications` and `userAPIClient` props in the security plugin
* Remove UserAPIClient from ui_api
It's not needed anymore since the components are initiated with this prop already passed
* Export ChangePasswordProps and PersonalInfoProps from account_management/index.ts
This makes it easier to import these props from outside the account_management folder
* Remove notifications service from kibana_logic
It is not needed anymore since we're initializing security components with notifications already provided
* Add UiApi to SecurityPluginStart interface
* Utilize index files for exporting Props types
* Replace Pick<...> with two separate interfaces as it doesn't work well with our docs
* Add a comment explaining why we're not loading async components through index file
Co-authored-by: Vadim Yakhin <yakhin.v@gmail.com>
* Create AssignmentSelectors
These components will be used in both the Role Mapping and User flyouts to create and edit role mappings and users, respectively
* Implement AssignmentSelectors in components
Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>
* Add shared actions component
Both tables use the same actions
* Refactor RoleMappingsTable to use EuiInMemoryTable
This is way better than the bespoke one I wrote and it comes with pagination for free
- Also fixes a typo in the i18n id
Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>
* Fixing app_container
* Use EUI mixin `euiHeaderAffordForFixed()` to maintain parity
* Adding `aria-busy` when `showSpinner`
* i18n for the loading aria-label
The plugin CLI watches for warnings with a function taking the logger as
an argument. There are two cases where we're passing a settings object
as the first argument, causing syntax errors instead of properly
logging. This removes the extra argument.
Co-authored-by: Jonathan Budzenski <jon@budzenski.me>