Skip to content

Conversation

john-h-kastner-aws
Copy link
Contributor

@john-h-kastner-aws john-h-kastner-aws commented Apr 22, 2024

Description of changes

Issue #, if available

Adds source info onto Name and EntityUID structs and then uses these to report the precise location of the unknown entity type or action.

Some refactoring is also posted in seperate PRs that should be merged before this: #803, #804

Fixes #522

Checklist for requesting a review

The change in this PR is (choose one, and delete the other options):

  • A bug fix or other functionality change requiring a patch to cedar-policy.

I confirm that this PR (choose one, and delete the other options):

  • Updates the "Unreleased" section of the CHANGELOG with a description of my change (required for major/minor version bumps).

I confirm that cedar-spec (choose one, and delete the other options):

  • Does not require updates because my change does not impact the Cedar formal model or DRT infrastructure.

@john-h-kastner-aws john-h-kastner-aws force-pushed the unknown_entity_type_source_loc branch from 461b60b to fb093f8 Compare April 22, 2024 20:53
@john-h-kastner-aws john-h-kastner-aws marked this pull request as draft April 22, 2024 21:04
@john-h-kastner-aws john-h-kastner-aws force-pushed the unknown_entity_type_source_loc branch from 61fd636 to d4d4f68 Compare April 23, 2024 14:18
@john-h-kastner-aws john-h-kastner-aws marked this pull request as ready for review April 23, 2024 14:22
@shaobo-he-aws
Copy link
Contributor

I have the same comment: #808 (comment)

Signed-off-by: John Kastner <[email protected]>
@john-h-kastner-aws john-h-kastner-aws merged commit 392d1fe into main May 1, 2024
john-h-kastner-aws added a commit to cedar-policy/cedar-spec that referenced this pull request May 1, 2024
john-h-kastner-aws added a commit to cedar-policy/cedar-spec that referenced this pull request May 1, 2024
john-h-kastner-aws added a commit to cedar-policy/cedar-spec that referenced this pull request May 1, 2024
@john-h-kastner-aws john-h-kastner-aws deleted the unknown_entity_type_source_loc branch May 1, 2024 18:27
john-h-kastner-aws added a commit that referenced this pull request May 6, 2024
john-h-kastner-aws added a commit that referenced this pull request May 7, 2024
john-h-kastner-aws added a commit to cedar-policy/cedar-spec that referenced this pull request May 8, 2024
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.

Report source locations for undefined entity type and action errors in validation
3 participants