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

Simplify role fetching logic in query engine #282

Merged
merged 4 commits into from
Aug 22, 2024

Commits on Aug 22, 2024

  1. Simplify role fetching logic in query engine

    Prior implementations of the query engine fetched role information
    such as the owning resource ID directly from SpiceDB, as it was the
    only data store available. With the introduction of CRDB, that is no
    longer the case and the CRDB SQL table should be considered the
    authoritative source of most role data. This commit updates the query
    engine to fetch role resource owner ID and other data from the SQL DB
    whenever possible, getting rid of some obscure failure modes that
    occur when a role has no associated actions.
    
    Signed-off-by: John Schaeffer <[email protected]>
    jnschaeffer committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    bb53015 View commit details
    Browse the repository at this point in the history
  2. Fix error type in RBAC v2 tests

    As described.
    
    Signed-off-by: John Schaeffer <[email protected]>
    jnschaeffer committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    9858b9a View commit details
    Browse the repository at this point in the history
  3. Wrap LockRoleForUpdate in a method to return non-DB errors

    As described.
    
    Signed-off-by: John Schaeffer <[email protected]>
    jnschaeffer committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    90d4b15 View commit details
    Browse the repository at this point in the history
  4. Fix incorrect error in role update test case

    As described.
    
    Signed-off-by: John Schaeffer <[email protected]>
    jnschaeffer committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    556e679 View commit details
    Browse the repository at this point in the history