-
Notifications
You must be signed in to change notification settings - Fork 73
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
Events V2: implement indexing for events #8087
Conversation
Oops! Looks like you forgot to update the changelog. When updating CHANGELOG.md, please consider the following:
|
@@ -62,18 +64,23 @@ export const appRouter = router({ | |||
return getEventById(input) | |||
}), | |||
actions: router({ | |||
notify: publicProcedure.input(ActionNotifyInput).mutation((options) => { | |||
notify: publicProcedure.input(NotifyActionInput).mutation((options) => { |
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.
why don't we need .omit({ type }) here?
|
||
import { z } from 'zod' | ||
|
||
const Status = z.enum([ |
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 actions were defined as a const object, this would align better with Zod so should we use this method there as well. Can the specific statuses be accessed with Status.enum.CREATED
or sth?
id: { type: 'keyword' }, | ||
type: { type: 'keyword' }, | ||
status: { type: 'keyword' }, | ||
createdAt: { type: 'date' }, | ||
createdBy: { type: 'keyword' }, | ||
createdAtLocation: { type: 'keyword' }, | ||
modifiedAt: { type: 'date' }, | ||
assignedTo: { type: 'keyword' }, | ||
updatedBy: { type: 'keyword' }, | ||
data: { type: 'object', enabled: 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.
wonder if this could be satisfies EventDocument
'ed in someway
Your environment is deployed to https://ocrvs-7875.opencrvs.dev |
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.
👍
No description provided.