feat: 发布权限 RBAC + PipelineEditor 修复 + 菜单优化
- 新增 DeployRBAC 页面: Jenkins-style Item Role 权限管理 - 正则匹配流水线 code,实时命中预览 - 内置用户分配面板,无需跳转系统管理 - 支持创建/编辑/删除/启用禁用 Item Role - 修复 PipelineEditor 成员管理 http 双解包 bug - 修复 PipelineManager 前端 code 路由迁移(delete/trigger/stop/loadRuns) - 新增批量删除流水线运行记录 API - Sidebar: 应用发布下新增「发布权限」, 仓库认证→发布配置, 移除用户组 - 恢复系统管理菜单(不受发布权限改动影响) - 后端 ItemRole CRUD handler + 正则匹配中间件已就绪
This commit is contained in:
1 parent
0fea0ccc20
commit
24f955832e
40 files changed
+7530
-1032
No files matched your search
@@ -93,3 +93,7 @@ func (r *goRedisCache) ZRangeByScore(ctx context.Context, key string, min, max s
|
||||
func (r *goRedisCache) ZRemRangeByScore(ctx context.Context, key string, min, max string) error {
|
||||
return r.client.ZRemRangeByScore(ctx, key, min, max).Err()
|
||||
}
|
||||
|
||||
func (r *goRedisCache) Publish(ctx context.Context, channel string, message string) error {
|
||||
return r.client.Publish(ctx, channel, message).Err()
|
||||
}
|
||||
@@ -50,6 +50,9 @@ type Cache interface {
|
||||
Ping(ctx context.Context) error
|
||||
Close() error
|
||||
|
||||
// Pub/Sub(实时日志推送)
|
||||
Publish(ctx context.Context, channel string, message string) error
|
||||
|
||||
// 有序集合操作(热数据指标存储,仅 go-redis 后端完整支持)
|
||||
ZAdd(ctx context.Context, key string, member SortedSetMember) error
|
||||
ZRangeByScore(ctx context.Context, key string, min, max string) ([]SortedSetMember, error)
|
||||
|
||||
@@ -111,3 +111,9 @@ func (r *redkaCache) ZRangeByScore(ctx context.Context, key string, min, max str
|
||||
func (r *redkaCache) ZRemRangeByScore(ctx context.Context, key string, min, max string) error {
|
||||
return errSortedSetNotSupported
|
||||
}
|
||||
|
||||
var errPubSubNotSupported = fmt.Errorf("Pub/Sub is not supported by the redka backend; use go-redis (driver=redis)")
|
||||
|
||||
func (r *redkaCache) Publish(ctx context.Context, channel string, message string) error {
|
||||
return errPubSubNotSupported
|
||||
}
|
||||
Reference in new issue
Block a user