Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@ export const allowedExperimentalValues = Object.freeze({
* if endpointRbacEnabled is enabled, it will take precedence.
*/
endpointRbacV1Enabled: true,

/**
* Enables the Guided Onboarding tour in security
*/
guidedOnboarding: false,

/**
* Enables the alert details page currently only accessible via the alert details flyout and alert table context menu
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import React, { createContext, useCallback, useContext, useEffect, useMemo, useS
import useObservable from 'react-use/lib/useObservable';
import { catchError, of, timeout } from 'rxjs';
import { useLocation } from 'react-router-dom';
import { useIsExperimentalFeatureEnabled } from '../../hooks/use_experimental_features';
import { isTourPath } from '../../../helpers';
import { useKibana } from '../../lib/kibana';
import type { AlertsCasesTourSteps } from './tour_config';
Expand Down Expand Up @@ -113,11 +112,10 @@ export const RealTourContextProvider = ({ children }: { children: ReactChild })

export const TourContextProvider = ({ children }: { children: ReactChild }) => {
const { pathname } = useLocation();
const isTourEnabled = useIsExperimentalFeatureEnabled('guidedOnboarding');

const ContextProvider = useMemo(
() => (isTourPath(pathname) && isTourEnabled ? RealTourContextProvider : TourContext.Provider),
[isTourEnabled, pathname]
() => (isTourPath(pathname) ? RealTourContextProvider : TourContext.Provider),
[pathname]
);

return <ContextProvider value={initialState}>{children}</ContextProvider>;
Expand Down