-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add a relationships read
command
#50
Conversation
9e250ea
to
4d4b1f2
Compare
read relationships
command
RelationshipFilter: readFilter, | ||
} | ||
if zedtoken := cobrautil.MustGetString(cmd, "revision"); zedtoken != "" { | ||
request.Consistency = &v1.Consistency{ |
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.
Shouldn't this be snapshot?
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.
Should it? What is the most likely "expected' behavior?
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 think this is reasonable until we address #37
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'm honestly not 100% sure which is the preferred solution, but I think its better to just use the at least as for now, since you'll likely want to see the state of the world at which a Check would operate
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.
read in zanzibar is snapshot... which is consistent with v0
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.
Right, but that's not the default now in V1 (I believe)
request := &v1.ReadRelationshipsRequest{ | ||
RelationshipFilter: readFilter, | ||
} |
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.
style nitpick, this could be one line
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.
Fixed
Signed-off-by: Joseph Schorr <josephschorr@users.noreply.github.com>
4d4b1f2
to
d49485d
Compare
read relationships
commandrelationships read
command
We can wait until the follow-up for the requested changes.
No description provided.