1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-04 13:48:56 +02:00

chore: make ip mandatory (#7220)

IP should be mandatory for storing events. Automated events should use
127.0.0.1
This commit is contained in:
Gastón Fournier 2024-05-31 14:52:15 +02:00 committed by GitHub
parent 5eadce061c
commit 5845d0e552
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -349,9 +349,7 @@ export const IEventTypes = [
] as const; ] as const;
export type IEventType = (typeof IEventTypes)[number]; export type IEventType = (typeof IEventTypes)[number];
/** // this rerpresents the write model for events
* This type should only be used in the store layer but deprecated elsewhere
*/
export interface IBaseEvent { export interface IBaseEvent {
type: IEventType; type: IEventType;
createdBy: string; createdBy: string;
@ -359,7 +357,7 @@ export interface IBaseEvent {
project?: string; project?: string;
environment?: string; environment?: string;
featureName?: string; featureName?: string;
ip?: string; ip: string;
data?: any; data?: any;
preData?: any; preData?: any;
tags?: ITag[]; tags?: ITag[];