post merge fixes

This commit is contained in:
Kfir Peled 2024-11-21 13:17:54 +00:00
parent b0f73b9477
commit c7fb622c2a
3 changed files with 7 additions and 6 deletions

View file

@ -12,6 +12,7 @@ import type { Maybe } from '@kbn/timelines-plugin/common/search_strategy/common'
import { useKibana } from '../../../../common/lib/kibana';
import { DocumentDetailsLeftPanelKey, DocumentDetailsRightPanelKey } from '../constants/panel_keys';
import { GRAPH_VISUALIZATION_ID } from '../../left/components/graph_visualization';
import { DocumentEventTypes } from '../../../../common/lib/telemetry';
export interface UseNavigateToGraphVisualizationParams {
/**
@ -83,7 +84,7 @@ export const useNavigateToGraphVisualization = ({
const navigateToGraphVisualization = useCallback(() => {
if (isFlyoutOpen) {
openLeftPanel(left);
telemetry.reportDetailsFlyoutTabClicked({
telemetry.reportEvent(DocumentEventTypes.DetailsFlyoutTabClicked, {
location: scopeId,
panel: 'left',
tabId: 'visualize',
@ -93,7 +94,7 @@ export const useNavigateToGraphVisualization = ({
right,
left,
});
telemetry.reportDetailsFlyoutOpened({
telemetry.reportEvent(DocumentEventTypes.DetailsFlyoutOpened, {
location: scopeId,
panel: 'left',
});

View file

@ -21,14 +21,14 @@ export default function (providerContext: FtrProviderContext) {
const supertest = getService('supertest');
const postGraph = (agent: Agent, body: GraphRequest, auth?: { user: string; pass: string }) => {
const req = agent
let req = agent
.post('/internal/cloud_security_posture/graph')
.set(ELASTIC_HTTP_VERSION_HEADER, '1')
.set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana')
.set('kbn-xsrf', 'xxxx');
if (auth) {
req.auth(auth.user, auth.pass);
req = req.auth(auth.user, auth.pass);
}
return req.send(body);

View file

@ -28,14 +28,14 @@ export default function (providerContext: FtrProviderContext) {
const cspSecurity = CspSecurityCommonProvider(providerContext);
const postGraph = (agent: Agent, body: GraphRequest, auth?: { user: string; pass: string }) => {
const req = agent
let req = agent
.post('/internal/cloud_security_posture/graph')
.set(ELASTIC_HTTP_VERSION_HEADER, '1')
.set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana')
.set('kbn-xsrf', 'xxxx');
if (auth) {
req.auth(auth.user, auth.pass);
req = req.auth(auth.user, auth.pass);
}
return req.send(body);