Skip to content
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

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

kartikaysaxena
Copy link
Contributor

Fixes #448 added a flag --expiration-time to take the input timestamp in RFC 3339 format, also added tests.

Copy link
Contributor

@tstirrat15 tstirrat15 left a 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.

Copy link
Contributor

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.

Comment on lines 494 to 504
if err := handleCaveatFlag(cmd, rel); err != nil {
if err := handleCaveatAndExpirationFlags(cmd, rel); err != nil {
return err
}
Copy link
Contributor

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.

@kartikaysaxena kartikaysaxena force-pushed the expiration-time-flag branch 2 times, most recently from 15ee98a to cdbd4d6 Compare January 28, 2025 10:24
@kartikaysaxena
Copy link
Contributor Author

kartikaysaxena commented Jan 28, 2025

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]>
Copy link
Contributor

@tstirrat15 tstirrat15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you

@tstirrat15 tstirrat15 merged commit 1e82253 into authzed:main Jan 28, 2025
11 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 28, 2025
@kartikaysaxena kartikaysaxena deleted the expiration-time-flag branch January 28, 2025 23:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add expiration functionality to relationship writing
2 participants