openfga / community

The Community repository is the place to go for OpenFGA support
https://openfga.dev
Apache License 2.0
27 stars 32 forks source link

Show visualization for the relationship between different Types Definitions across Types #298

Closed KamalAman closed 7 months ago

KamalAman commented 7 months ago

Checklist

Describe the problem you'd like to have solved

Right now it is difficult to visualize how a specific Type Definition is compose of direct and implied relationships.

Describe the ideal solution

Ideally there would be some way to visual the implied relationship / the complete relationship hierarchy for a given Type Definitions.

The example would be the Repo:Admin -> Org:Repo Admin Screenshot 2024-04-15 at 9 10 40 AM

I don't think just showing all relationships N-degrees away makes sense since it would be chaotic. When you hover a Type, then show the Types full definition with direct and implied relationships

Alternatives and current workarounds

Currently, I don't think there is any easy way way to see the implied relationships. You have to to read the model and assertions and reason about it / draw it out.

Additional context

As a model gets more complex, it is hard to reason about the implied relationships. Having visualizations for implied definitions would definitely help being simplicity back