mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
fix: reduce data in FEATURE_ENVIRONMENT events
This commit is contained in:
parent
0a83abe101
commit
efdbda68e4
@ -4,14 +4,14 @@ import Addon from './addon';
|
|||||||
import slackDefinition from './slack-definition';
|
import slackDefinition from './slack-definition';
|
||||||
import { IAddonConfig, IEvent } from '../types/model';
|
import { IAddonConfig, IEvent } from '../types/model';
|
||||||
|
|
||||||
const {
|
import {
|
||||||
FEATURE_CREATED,
|
FEATURE_CREATED,
|
||||||
FEATURE_UPDATED,
|
FEATURE_UPDATED,
|
||||||
FEATURE_ARCHIVED,
|
FEATURE_ARCHIVED,
|
||||||
FEATURE_REVIVED,
|
FEATURE_REVIVED,
|
||||||
FEATURE_STALE_ON,
|
FEATURE_STALE_ON,
|
||||||
FEATURE_STALE_OFF,
|
FEATURE_STALE_OFF,
|
||||||
} = require('../types/events');
|
} from '../types/events';
|
||||||
|
|
||||||
export default class SlackAddon extends Addon {
|
export default class SlackAddon extends Addon {
|
||||||
unleashUrl: string;
|
unleashUrl: string;
|
||||||
|
@ -576,7 +576,7 @@ class FeatureToggleServiceV2 {
|
|||||||
? FEATURE_ENVIRONMENT_ENABLED
|
? FEATURE_ENVIRONMENT_ENABLED
|
||||||
: FEATURE_ENVIRONMENT_DISABLED,
|
: FEATURE_ENVIRONMENT_DISABLED,
|
||||||
createdBy: userName,
|
createdBy: userName,
|
||||||
data,
|
data: { name: featureName },
|
||||||
tags,
|
tags,
|
||||||
project: projectId,
|
project: projectId,
|
||||||
environment,
|
environment,
|
||||||
|
Loading…
Reference in New Issue
Block a user