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

Refactor: update role and permisson management. #228

Closed
9 tasks done
jessun opened this issue Jan 20, 2022 · 0 comments
Closed
9 tasks done

Refactor: update role and permisson management. #228

jessun opened this issue Jan 20, 2022 · 0 comments
Assignees
Labels
feature not_compatible not compatible old version ui this issue is is related to the FE verified the issue all pr is verified
Milestone

Comments

@jessun
Copy link
Contributor

jessun commented Jan 20, 2022

1. 用户及权限系统重构 User and permission system refactoring

依据开发团队的需求,用户和权限管理需要被重构。将权限视为“角色”的属性,并且包含了动作权限和数据源。
As internal PRD of devlopment team. User and Permission management shoud be refactored. "Role" is a collection of permissions and it chould contains operations and datasources.

sqle_rbac

``

2. 目前支持的可配置的权限 operations code list

// 系统/用户/角色等操作保留 0-19999

// 工单相关操作 20000-29999
查看他人创建的工单           20100
创建/编辑工单                   20200

// 其他待完善 >30000              

3. Tasks

  • Refactor Model Role;
  • Add or update api implementations:
    • GET:"/v1/operations"
    • GET:"/v2/roles";
    • POST:"/v2/roles";
    • PATCH:"/v2/roles";
    • DELETE:"/v1/roles";
  • Mark roles v1 api as "DEPRECATED", and they will return msg "this api is deprecated.";
  • Add permission checks for all APIs.
@jessun jessun added feature ui this issue is is related to the FE not_compatible not compatible old version labels Jan 20, 2022
@jessun jessun self-assigned this Jan 20, 2022
@sjjian sjjian added this to the v1.2201.1 milestone Jan 24, 2022
@sjjian sjjian closed this as completed Feb 22, 2022
@Marcus9530 Marcus9530 added the verified the issue all pr is verified label Feb 25, 2022
jessun pushed a commit to actiontech/sqle-docs-cn that referenced this issue Feb 28, 2022
jessun pushed a commit to actiontech/sqle-docs-cn that referenced this issue Feb 28, 2022
taolx0 pushed a commit that referenced this issue Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature not_compatible not compatible old version ui this issue is is related to the FE verified the issue all pr is verified
Projects
None yet
Development

No branches or pull requests

3 participants