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

restructure slice & change instantiation to link #169

Merged
merged 4 commits into from
Jul 2, 2024

Conversation

khieta
Copy link
Contributor

@khieta khieta commented Jul 2, 2024

Issue #, if available:

Resolves #44

Description of changes:

I'm currently working on updating the Java code to match the FFI edits in cedar#1014. This PR pulls out some of the structural changes that I've made locally that aren't specific to the FFI change, with the goal of making future PRs smaller.

  • Moves entity & policy definitions out of the slice/ folder into dedicated folders (slice/ will be deleted as part of the updates for cedar#1014)
  • Gets rid of “instantiation” terminology in favor of “link” (Update terminology surrounding templates #44)
  • Moves serialization-specific code to the serializer/ folder


@JsonProperty("templateId")
private final String templateId;

@JsonProperty("resultPolicyId")
private final String resultPolicyId;

private final List<Instantiation> instantiations;
@JsonProperty("instantiations")
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm guessing the cedar-policy ffi interface relies on this Json property name and will be renamed in a later change?

Copy link
Contributor Author

@khieta khieta Jul 2, 2024

Choose a reason for hiding this comment

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

Yep, coming soon 😄

@khieta khieta merged commit 59fb8ef into main Jul 2, 2024
4 checks passed
@khieta khieta deleted the khieta/structural-edits branch July 2, 2024 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update terminology surrounding templates
3 participants