You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And I suppose we will need to have it also for the future ListUsers API.
Describe the ideal solution
Remove the code duplication. We can keep AuthorizationModelResolutionTooComplex, remove the others, and update AuthorizationModelResolutionTooComplex to hold the actual cause of the error 🤔
Alternatives and current workarounds
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
It appears this issue has been stale for at least 14 days 🗓️. If no action is taken the maintainer team may consider closing the issue. Please reach out if you need feedback or follow up actions from the maintainer team.
Checklist
Describe the problem you'd like to have solved
if errors.Is(err, graph.ErrResolutionDepthExceeded) || errors.Is(err, graph.ErrCycleDetected) {
appears in three different locations in the codebase today.
openfga/pkg/server/commands/list_objects.go
Lines 318 to 321 in a0cd000
openfga/pkg/server/commands/list_objects.go
Lines 334 to 336 in a0cd000
openfga/pkg/server/server.go
Lines 653 to 655 in 4fd659e
And I suppose we will need to have it also for the future ListUsers API.
Describe the ideal solution
Remove the code duplication. We can keep
AuthorizationModelResolutionTooComplex
, remove the others, and updateAuthorizationModelResolutionTooComplex
to hold the actual cause of the error 🤔Alternatives and current workarounds
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: