Skip to content
Draft
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 @@ -211,11 +211,6 @@ export const allowedExperimentalValues = Object.freeze({
*/
newExpandableFlyoutNavigationDisabled: false,

/**
* Enables the ability to edit highlighted fields in the alertflyout
*/
editHighlightedFields: true,

/**
* Enables CrowdStrike's RunScript RTR command
* Release: 8.18/9.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('<HighlightedFields />', () => {
beforeEach(() => {
jest.clearAllMocks();
(useHighlightedFieldsPrivilege as jest.Mock).mockReturnValue({
isEditHighlightedFieldsDisabled: false,
isDisabled: false,
tooltipContent: 'tooltip content',
});
(useRuleIndexPattern as jest.Mock).mockReturnValue({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export interface HighlightedFieldsProps {
*/
showCellActions: boolean;
/**
* If true, the edit button will be shown on hover (granted that the editHighlightedFieldsEnabled is also turned on).
* If true, the edit button will be shown on hover.
* This is false by default (for the AI for SOC alert summary page) and will be true for the alerts page.
*/
showEditButton?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ describe('<InvestigationSection />', () => {
loading: false,
});
(useHighlightedFieldsPrivilege as jest.Mock).mockReturnValue({
isEditHighlightedFieldsDisabled: false,
isDisabled: false,
tooltipContent: 'tooltip content',
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import React, { memo } from 'react';
import { EuiSpacer } from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n-react';
import { useIsExperimentalFeatureEnabled } from '../../../../common/hooks/use_experimental_features';
import { useExpandSection } from '../hooks/use_expand_section';
import { ExpandableSection } from './expandable_section';
import { HighlightedFields } from './highlighted_fields';
Expand All @@ -32,8 +31,6 @@ export const InvestigationSection = memo(() => {

const expanded = useExpandSection({ title: KEY, defaultValue: true });

const editHighlightedFieldsEnabled = useIsExperimentalFeatureEnabled('editHighlightedFields');

return (
<ExpandableSection
expanded={expanded}
Expand All @@ -58,7 +55,7 @@ export const InvestigationSection = memo(() => {
investigationFields={investigationFields}
scopeId={scopeId}
showCellActions={true}
showEditButton={editHighlightedFieldsEnabled}
showEditButton={true}
ancestorsIndexName={ancestorIndex}
/>
</ExpandableSection>
Expand Down