-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
NV-2335 - Template Store - Template store refactor web on blueprint creation to use #3467
NV-2335 - Template Store - Template store refactor web on blueprint creation to use #3467
Conversation
NV-2335 [Template store] Refactor WEB on blueprint creation to use notification-template POST
At the moment we are using the /notification-template/:templateId/blueprint POST, we need to update this flow to create the template using the regular /notification-template POST request that is used by the client. The additional step that we will need to refactor is instead of sending the id of the blueprint we should pass the template snapshot. |
} | ||
}); | ||
|
||
export async function createTemplateFromBlueprint({ |
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.
maybe this one should be moved to some util?
apps/api/src/app/notification-template/dto/create-notification-template.request.dto.ts
Outdated
Show resolved
Hide resolved
@@ -14,7 +14,7 @@ export class CreateNotificationTemplateRequestDto implements ICreateNotification | |||
@ApiProperty() | |||
@IsString() | |||
@IsDefined({ | |||
message: 'Notification group must be provided', | |||
message: 'Notification group must be provided ', |
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 need that space?
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.
I found that if we won't have it that the next argument will miss a space, so I added it here but if it is persistent in all cases maybe looking at how to fix it globally will be a better idea.
What change does this PR introduce?
At the moment we are using the /notification-template/:templateId/blueprint POST, we need to update this flow to create the template using the regular /notification-template POST request that is used by the client.
The additional step that we will need to refactor is instead of sending the id of the blueprint we should pass the template snapshot.
Why was this change needed?
Other information (Screenshots)