-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Check for user-ticket requirements on purchase order creation #324
base: main
Are you sure you want to change the base?
Conversation
Coverage Report
File Coverage
|
dc9bcfc
to
c20f37c
Compare
where: (ut, { and, eq, inArray }) => | ||
and( | ||
eq(ut.userId, userId), | ||
inArray(ut.approvalStatus, [ |
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.
Creo que tenemos una variable para esto porque se volvió recurrente en la App
ACCESSIBLE_USER_TICKET_APPROVAL_STATUSES
expect, | ||
beforeEach, | ||
expectTypeOf, | ||
} from "vitest"; |
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.
Cuidado este warning
@@ -0,0 +1,23 @@ | |||
CREATE TABLE IF NOT EXISTS "ticket_requirements" ( | |||
"ticket_id" uuid NOT NULL, | |||
"required_ticket_id" uuid NOT NULL, |
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.
SI tenemos requirement_type
creo que este ID es complicado! Al menos que tengamos un campo adicional para required_category_id
No description provided.