-
Notifications
You must be signed in to change notification settings - Fork 27
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
Added expiration functionality to relationship writing #458
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.
See comments - let me know if you have any questions on them.
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.
Please separate out tests that make assertions about expiration behavior and leave the existing tests as they are.
internal/commands/relationship.go
Outdated
if err := handleCaveatFlag(cmd, rel); err != nil { | ||
if err := handleCaveatAndExpirationFlags(cmd, rel); err != nil { | ||
return err | ||
} |
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'd prefer to handle the different flags inline here - remove handleCaveatAndExpirationFlags
and have a separate if
statement here for handleExpiration
.
15ee98a
to
cdbd4d6
Compare
It seems like there are some vulnerabilities with version of Go in goreleaser which trivy is complaining while analysing the built images Edit: Failing on https://github.com/authzed/zed/actions/runs/13012923194/job/36294786430?pr=456 too |
Signed-off-by: Kartikay <[email protected]>
ba7e96e
to
556a947
Compare
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.
Nice, thank you
Fixes #448 added a flag
--expiration-time
to take the input timestamp in RFC 3339 format, also added tests.