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

Schema compiler support for relationship expiration trait #2142

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

josephschorr
Copy link
Member

Part 2 of support for expiration trait: adds support for the new trait in the schema IR, the compiler and the generator

@josephschorr josephschorr requested a review from a team as a code owner November 25, 2024 23:06
@github-actions github-actions bot added area/schema Affects the Schema Language area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) labels Nov 25, 2024
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, otherwise LGTM

/**
* ExpirationTrait is an expiration trait of a relation.
*/
message ExpirationTrait {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this functionally just a presence/absence marker?

Copy link
Member Author

Choose a reason for hiding this comment

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

Currently, yes. We might use it in the future to store additional information for the trait, such as if we add a required range of expirations

@josephschorr josephschorr added this pull request to the merge queue Nov 25, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 25, 2024
@josephschorr josephschorr added this pull request to the merge queue Nov 26, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 26, 2024
@josephschorr josephschorr added this pull request to the merge queue Nov 26, 2024
Merged via the queue into authzed:main with commit 3001a3d Nov 26, 2024
22 checks passed
@josephschorr josephschorr deleted the rel-expiration-compiler branch November 26, 2024 15:34
@github-actions github-actions bot locked and limited conversation to collaborators Nov 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/schema Affects the Schema Language area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants