-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Security Solution][Endpoint] changes to Endpoint metadata API in support of space awareness #193490
base: main
Are you sure you want to change the base?
[Security Solution][Endpoint] changes to Endpoint metadata API in support of space awareness #193490
Conversation
…int-list-details-space-aware
…w SavedObjectsClientFactory
…int-list-details-space-aware
…nd add savedObject client factory
…simplify method call signatures
/ci |
…int-list-details-space-aware
/ci |
/ci |
…ils-space-aware' into task/olm-8538-endpoint-list-details-space-aware
…int-list-details-space-aware
Pinging @elastic/security-defend-workflows (Team:Defend Workflows) |
Pinging @elastic/fleet (Team:Fleet) |
…ity_solution` plugins
…ils-space-aware' into task/olm-8538-endpoint-list-details-space-aware
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
packageService: createMockPackageService(), | ||
agentPolicyService: createMockAgentPolicyService(), | ||
registerExternalCallback: jest.fn((..._: ExternalCallback) => {}), | ||
packagePolicyService: createPackagePolicyServiceMock(), | ||
createArtifactsClient: jest.fn().mockReturnValue(createArtifactsClientMock()), | ||
}; | ||
} as unknown as DeeplyMockedKeys<FleetStartContract>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we replace this createMockFleetStartContract
with the newly created createFleetStartContractMock
imported from fleet/server/mocks
?
packageService: createMockPackageService(), | ||
agentPolicyService: createMockAgentPolicyService(), | ||
registerExternalCallback: jest.fn((..._: ExternalCallback) => {}), | ||
packagePolicyService: createPackagePolicyServiceMock(), | ||
createArtifactsClient: jest.fn().mockReturnValue(createArtifactsClientMock()), | ||
}; | ||
} as unknown as DeeplyMockedKeys<FleetStartContract>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question about importing the mock from the fleet
💔 Build FailedFailed CI StepsTest Failures
Metrics [docs]Public APIs missing exports
Unknown metric groupsESLint disabled in files
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
Summary
Fleet Plugin
Security Solution
The following refactoring changes were done in preparation for forthcoming work for supporting kibana spaces:
EndpointAppContextServices
EndpointAppContextService#start()
methodEndpiontFleetServicesFactory
with:asInternalUser()
EndpintMetadataService
to:Checklist