-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Add Trigger Identifier to the Subscriber Preferences response #4559
Add Trigger Identifier to the Subscriber Preferences response #4559
Conversation
NV-2842 Add Trigger Identifier to the Subscriber Preferences response
What?Add the Line 252 in 58c46d7
Why?Some users would love to filter the preferences based on the identifier of the trigger. Definition of Done
|
…iber-preferences-response
|
||
export interface ITriggerVariable { | ||
name: string; | ||
type: TemplateVariableTypeEnum; | ||
} | ||
|
||
export interface ITriggerReservedVariable { | ||
type: TriggerContextTypeEnum; | ||
variables: ITriggerVariable[]; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have a reason for having those in the DAL?
i noticed that they are duplicated and not aligned with the interface in the Shared lib.
…iber-preferences-response
@@ -253,6 +254,7 @@ function mapTemplateConfiguration( | |||
name: template.name, | |||
tags: template?.tags || [], | |||
critical: template.critical != null ? template.critical : true, | |||
triggers: template.triggers, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please update the Swagger API response in the subscriber's controller?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely! i knew I forgot something here 🤦♂️
…iber-preferences-response
…iber-preferences-response
What change does this PR introduce?
Add the triggers field to be part of the response to the query. The mapping functionality is required.
Why was this change needed?
Some users would love to filter the preferences based on the identifier of the trigger.
Other information (Screenshots)
Created this initial solution and still have a couple of questions left hanging, will change this PR to ready from draft state after i figure it out.
closes #4417