Add workflow filters on diagram (#12974)
> [!NOTE] > The new behavior is hidden behind a feature flag. ## Before https://github.com/user-attachments/assets/30c6d001-d9c8-4006-b577-e4e450d58b12 ## After https://github.com/user-attachments/assets/79446976-4508-41d2-8044-4078f67c02e0
This commit is contained in:
committed by
GitHub
parent
7756b472a4
commit
34e9e7d836
@ -6,4 +6,5 @@ export enum FeatureFlagKey {
|
||||
IS_JSON_FILTER_ENABLED = 'IS_JSON_FILTER_ENABLED',
|
||||
IS_AI_ENABLED = 'IS_AI_ENABLED',
|
||||
IS_IMAP_ENABLED = 'IS_IMAP_ENABLED',
|
||||
IS_WORKFLOW_FILTERING_ENABLED = 'IS_WORKFLOW_FILTERING_ENABLED',
|
||||
}
|
||||
|
||||
@ -12,6 +12,15 @@ describe('featureFlagValidator', () => {
|
||||
).not.toThrow();
|
||||
});
|
||||
|
||||
it('should not throw error for new workflow filtering feature flag', () => {
|
||||
expect(() =>
|
||||
featureFlagValidator.assertIsFeatureFlagKey(
|
||||
'IS_WORKFLOW_FILTERING_ENABLED',
|
||||
new CustomException('Error', 'Error'),
|
||||
),
|
||||
).not.toThrow();
|
||||
});
|
||||
|
||||
it('should throw error if featureFlagKey is invalid', () => {
|
||||
const invalidKey = 'InvalidKey';
|
||||
const exception = new CustomException('Error', 'Error');
|
||||
|
||||
@ -40,6 +40,11 @@ export const seedFeatureFlags = async (
|
||||
workspaceId: workspaceId,
|
||||
value: true,
|
||||
},
|
||||
{
|
||||
key: FeatureFlagKey.IS_WORKFLOW_FILTERING_ENABLED,
|
||||
workspaceId: workspaceId,
|
||||
value: false,
|
||||
},
|
||||
{
|
||||
key: FeatureFlagKey.IS_IMAP_ENABLED,
|
||||
workspaceId: workspaceId,
|
||||
|
||||
Reference in New Issue
Block a user