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

role graph serialization for front-end usage #16

Open
GopherJ opened this issue May 30, 2020 · 5 comments
Open

role graph serialization for front-end usage #16

GopherJ opened this issue May 30, 2020 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@GopherJ
Copy link

GopherJ commented May 30, 2020

Screenshot from 2020-05-26 22-49-02

I have a covid-19 project which shows virus propagation chain, so I came up with a small idea of serializing role links which can be useful for analyzing.

basically the serialized json should be similar to the following to be used by frontend libraires such as d3.js

{
  name: "alice",
  children: [
    {
       name: "bob",
       children: [
         {
            name: "eve".
            children: []
         }
       ]
    }
  ]
}
@GopherJ
Copy link
Author

GopherJ commented May 30, 2020

Or a more general format:

{
  key: "A",
  value: 5,
  children: [
    {
       key: "B",
       value: 1,
       children: [
         {
            key: "C".
            value: 3,
            children: []
         }
       ]
    }
  ]
}

The second format is more general but actually we dont care about edges so I prefer the first example.

@GopherJ
Copy link
Author

GopherJ commented May 30, 2020

A difficulty of serialization is circular link.

@nodece
Copy link
Contributor

nodece commented May 31, 2020

Visual analysis is good idea. Yang had the same idea.

@hsluoyz
Copy link
Member

hsluoyz commented Jun 5, 2020

Actually I planned to have this feature in the new Casbin dashboard project: https://dashboard.casbin.org/ but actually no progress for now because we are just in lack of developers :(

@hsluoyz hsluoyz transferred this issue from casbin/casbin Feb 20, 2021
@hsluoyz hsluoyz added the enhancement New feature or request label Feb 20, 2021
@hsluoyz
Copy link
Member

hsluoyz commented Feb 20, 2021

Actually I planned to have this feature in the new Casbin dashboard project: https://dashboard.casbin.org/ but actually no progress for now because we are just in lack of developers :(

Casbin dashboard is deprecated.

We will visualize the role inheritance in Casdoor web portal UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants