openfga / api

Protocol Buffers used by OpenFGA
Apache License 2.0
18 stars 10 forks source link

feat: Changed to avoid duplicating stuttered field definition #162

Closed smeadows-okta closed 4 months ago

smeadows-okta commented 4 months ago

Added support for contextual tuple to assertions

Description

Currently, assertions are pure (object, relation, subject) tuples. Added support for contextual tuples to assertions for advanced scenarios.

References

946

Review Checklist

jon-whit commented 4 months ago

Note: These changes affect https://github.com/openfga/openfga/blob/main/pkg/server/commands/write_assertions.go#L68-L73 (which is already in main of OpenFGA). This code is not yet formally released yet, and we have no public contract on it as of yet, but before we release our next release we'll need to fix that code.