Skip to content

Conversation

@NSeydoux
Copy link
Contributor

This PR fixes #2339. It relies on #2368 and #2369 , so these should be reviewed first.

With these changes, getResourcePolicyAll gets a new options argument, which can be set to { acceptBlankNodes: true } in order for unnamed policies to be included in the result set. The default behavior of getResourcePolicyAll is unchanged, because otherwise this would be a breaking change, as the return type of the function would change.

  • I've added a unit test to test for potential regressions of this bug.
  • The changelog has been updated, if applicable.
  • Commits in this PR are minimal and have descriptive commit messages.

- Discover policies from access control: This goes toward supporting blank nodes policies, but fails because `getThing` doesn't support blank nodes.
- Fix blank nodes ids used for matching
- Align option name with getThingAll
@NSeydoux NSeydoux enabled auto-merge (squash) April 24, 2024 12:22
@NSeydoux NSeydoux merged commit f9e7ce0 into main Apr 24, 2024
@NSeydoux NSeydoux deleted the fix/SDK-3296/acp-api-blank-nodes branch April 24, 2024 21:16
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.

Policy under unnamed node is not returned from getResourcePolicyAll()

4 participants