-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Stacked PR's of - Workflow override #4773
Conversation
…dal-repository' into NV-3117-create-workflowoverride-dal-repository
…dal-repository Create Workflow Override Repository
…ride-use-case Create workflow override use-case
…ride-use-case Update workflow override use-case
…e-use-case Get workflow override use-case
…ride-use-case Delete workflow override use-case
…es-use-case Get workflow overrides use case
…apply-overrides-during-the-trigger
…he-trigger Apply Workflow Overrides during the trigger
# Conflicts: # apps/api/src/app/events/usecases/parse-event-request/parse-event-request.usecase.ts # pnpm-lock.yaml
_workflowId: 1, | ||
_environmentId: 1, | ||
}, | ||
{ unique: true } |
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.
Create it as unique so we could not create 2 overrides with the same tenant workflow.
); | ||
} | ||
|
||
@Put('/workflows/:workflowId/tenants/:tenantIdentifier') |
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 am still not sure if we should use here tenantIdentifier or _tenantId.
const message = workflowOverride ? 'Workflow is not active by workflow override' : 'Workflow is not active'; | ||
Logger.log(message, LOG_CONTEXT); |
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 wonder if we should log more here because at the moment we do not and if we would want to debug something we would be missing the information as to why the trigger failed.
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.
looks good! 🚀
What change does this PR introduce?
Why was this change needed?
Other information (Screenshots)