casbin / casbin-hub

The hub for Casbin
https://dashboard.casbin.com
Apache License 2.0
87 stars 46 forks source link

Casbin model syntax and semantics check on Dashboard UI #61

Open hsluoyz opened 4 years ago

hsluoyz commented 4 years ago

Casbin dashboard has a page for models. We want to check whether the user has written a correct Casbin model or not. If it has syntax error, we want to prompt the error line and error reason. Just like IDE showing compile errors for languages like C++ or Java.

The syntax and semantics check can be done by frontend (like codemirror) or backend (run it on a Golang casbin enforcer) or mix the above two ways.

shakti97 commented 4 years ago

I would like to work on this

techguybiswa commented 4 years ago

Hi @hsluoyz I wanted to implement the validations but I am not getting how will I understand what is a valid Casbin Model? Is there any docs to help out?

hsluoyz commented 4 years ago

See our docs: https://casbin.org/docs/en/syntax-for-models

shakti97 commented 4 years ago

Thanks yang, Will try to implement it

techguybiswa commented 4 years ago

@hsluoyz Please check the PR at https://github.com/casbin/casbin-dashboard/pull/68 And please do let me know if my implementation is in the correct direction.

Thanks

arteevraina commented 3 years ago

@hsluoyz Is this issue still open for work?

hsluoyz commented 3 years ago

@arteevraina yes.

arteevraina commented 3 years ago

I am working on this.

arteevraina commented 3 years ago

@hsluoyz Should this feature be implemented on this page? image

hsluoyz commented 3 years ago

@arteevraina you can ask @438561537

Xiaoyang-Gu commented 3 years ago

Yes, I am working on this.@arteevraina

arteevraina commented 3 years ago

Yes, I am working on this.@arteevraina

Ok Cool!