-
Notifications
You must be signed in to change notification settings - Fork 18
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
feat: remove operations array from the DRP #292
Conversation
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 are we keeping the private functions on the DRPs?
packages/object/src/index.ts
Outdated
query_isWriter: (peerId: string) => boolean; | ||
query_isAdmin: (peerId: string) => boolean; | ||
grant: (senderId: string, peerId: string, publicKey: string) => void; | ||
revoke: (senderId: string, peerId: string) => void; | ||
getPeerKey: (peerId: string) => string | undefined; | ||
query_getPeerKey: (peerId: string) => string | undefined; |
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.
put all queries together
query_isWriter: (peerId: string) => boolean; | ||
query_isAdmin: (peerId: string) => boolean; | ||
query_getPeerKey: (peerId: string) => string | undefined; |
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.
query_isWriter: (peerId: string) => boolean; | |
query_isAdmin: (peerId: string) => boolean; | |
query_getPeerKey: (peerId: string) => string | undefined; | |
query_isAdmin: (peerId: string) => boolean; | |
query_isWriter: (peerId: string) => boolean; | |
query_getPeerKey: (peerId: string) => string | undefined; |
nitpicking
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.
pre-approving
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.
lgtm
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.
lgtm
Description
This PR closes #257 and closes #310, removing the need to define the operations array by the DRP devs.
Key features:
add(1)
is not creating a new vertexquery_*
. By convention such functions are not creating operations