-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add analytics #40
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -22,22 +22,14 @@ export const UpdateRegistrationSchema = BaseRegistrationSchema.pick({ | |||||||||
| status: z.enum(RegistrationStatus).default("pending"), | ||||||||||
| }); | ||||||||||
|
|
||||||||||
| export const UpdateBatchRegistrationSchema = z.object({ | ||||||||||
| export const UpdateBatchStatusRegistrationSchema = z.object({ | ||||||||||
| eventId: BaseRegistrationSchema.shape.eventId, | ||||||||||
| userIds: z.array(BaseRegistrationSchema.shape.userId), | ||||||||||
| status: z.enum(RegistrationStatus).default("pending"), | ||||||||||
| }); | ||||||||||
|
|
||||||||||
| export const UpdateBatchStatusRegistrationSchema = z.object({ | ||||||||||
| eventId: BaseRegistrationSchema.shape.eventId, | ||||||||||
| fromStatus: z.enum(RegistrationStatus), | ||||||||||
| toStatus: z.enum(RegistrationStatus), | ||||||||||
| }); | ||||||||||
|
|
||||||||||
| export const RegistrationsQueryFilterSchema = z.object({ | ||||||||||
| userId: UserIdSchema.shape.id.optional(), | ||||||||||
| page: z.coerce.number().min(1).default(1), | ||||||||||
| limit: z.coerce.number().min(1).max(100).default(20), | ||||||||||
| status: z.enum(RegistrationStatus).optional(), | ||||||||||
|
||||||||||
| status: z.enum(RegistrationStatus).optional(), | |
| status: z.enum(RegistrationStatus).optional(), | |
| page: z.number().int().positive().optional(), | |
| limit: z.number().int().positive().optional(), |
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.
The test comment says "CRITICAL CHANGE: Status should be pending, not waitlist" was removed. This suggests there was an important behavioral change related to registration status that should be documented. The removal of this comment loses important context about why this assertion exists.