Skip to content
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

[backend/frontend] Remove feature flag for bulk create relations (#4352)(#7500) #8342

Merged
merged 1 commit into from
Sep 13, 2024
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
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