30 lines
1.1 KiB
Markdown
30 lines
1.1 KiB
Markdown
|
|
# Task ID: 115
|
||
|
|
|
||
|
|
**Title:** RBAC tasks namespace split and alias repoint
|
||
|
|
|
||
|
|
**Status:** pending
|
||
|
|
|
||
|
|
**Dependencies:** None
|
||
|
|
|
||
|
|
**Priority:** high
|
||
|
|
|
||
|
|
**Description:** Split the RBAC 'tasks' resource into 'tasks' (work items) and 'inference-tasks', update RBAC_RESOURCES and RESOURCE_ALIASES in rbac-definition.schema.ts
|
||
|
|
|
||
|
|
**Details:**
|
||
|
|
|
||
|
|
In src/mcpd/src/validation/rbac-definition.schema.ts:
|
||
|
|
1. Update RBAC_RESOURCES array to include: 'epics', 'epictasks', 'tasks', 'repos', 'sessions', 'inference-tasks'
|
||
|
|
2. Update RESOURCE_ALIASES:
|
||
|
|
- task → tasks (work items)
|
||
|
|
- epic → epics
|
||
|
|
- epictask → epictasks, et → epictasks
|
||
|
|
- repo → repos, repository → repos, repositories → repos
|
||
|
|
- session → sessions
|
||
|
|
- inference-task → inference-tasks
|
||
|
|
3. REMOVE the entry 'inference-tasks': 'tasks'
|
||
|
|
4. Export normalizeResource unchanged (it uses the alias map)
|
||
|
|
|
||
|
|
**Test Strategy:**
|
||
|
|
|
||
|
|
Unit tests in src/mcpd/tests/validation/: verify normalizeResource('task') returns 'tasks', normalizeResource('inference-task') returns 'inference-tasks', normalizeResource('et') returns 'epictasks'. Test that RBAC_RESOURCES includes all new entries.
|