Skip to content

Commit

Permalink
[backend/frontend] Remove feature flag for bulk create relations (#4352
Browse files Browse the repository at this point in the history
…)(#7500)
  • Loading branch information
aHenryJard authored Sep 13, 2024
1 parent 3755818 commit 7400123
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ services:
path: /tmp/e2e-start-platform/node_modules
environment:
APP__PORT: 4500
APP__DISABLED_DEV_FEATURES: '["4352_BULK_RELATIONS"]'
APP__DISABLED_DEV_FEATURES: '[]'
APP__ADMIN__PASSWORD: admin
APP__ADMIN__TOKEN: bfa014e0-e02e-4aa6-a42b-603b19dcf159
APP__APP_LOG__EXTENDED_ERROR_MESSAGE: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Button from '@mui/material/Button';
import BulkRelationDialog from '@components/common/bulk/dialog/BulkRelationDialog';
import { PaginationOptions } from 'src/components/list_lines';
import { useFormatter } from 'src/components/i18n';
import useHelper from 'src/utils/hooks/useHelper';
import { TargetEntity } from '@components/common/stix_core_relationships/StixCoreRelationshipCreationFromEntity';

type BulkRelationDialogContainerProps = {
Expand Down Expand Up @@ -35,19 +34,14 @@ const BulkRelationDialogContainer = ({
paginationOptions,
targetObjectTypes,
}: BulkRelationDialogContainerProps) => {
const { isFeatureEnable } = useHelper();
const { t_i18n } = useFormatter();

const BULK_RELATIONS_FF = isFeatureEnable('4352_BULK_RELATIONS');

const [isDialogOpen, setIsDialogOpen] = useState<boolean>(false);

const handleOpenDialog = () => setIsDialogOpen(true);

const handleCloseDialog = () => setIsDialogOpen(false);

if (!BULK_RELATIONS_FF) return null;

return (
<>
<Button onClick={handleOpenDialog} color="primary" variant="outlined" sx={inlinedStyle.button} size="small">
Expand Down
1 change: 0 additions & 1 deletion opencti-platform/opencti-graphql/config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"enabled_ui": true,
"disabled_dev_features": [
"FAB_REPLACEMENT",
"4352_BULK_RELATIONS",
"NEW_IMPORT_SCREENS",
"FILIGRAN_LOADER",
"CONTAINERS_AUTHORIZED_MEMBERS",
Expand Down

0 comments on commit 7400123

Please sign in to comment.