feat: 일괄 릴리스 실행 계획을 추가한다
Gateway와 권한 있는 프로필 작업을 하나의 고정 커밋과 순서로 영속화한다. 앞 대상 성공 뒤 다음 작업을 claim하고 실패 대상은 같은 작업 ID로 재시도한다.
This commit is contained in:
@@ -120,6 +120,13 @@ export const resolveAdminActionCapability = (path: string, rawInput?: unknown):
|
||||
if (path.endsWith('.users.createLocal')) return 'admin.users.create';
|
||||
if (path.includes('.users.')) return 'admin.users.manage';
|
||||
if (path.includes('.system.')) return 'admin.notice.manage';
|
||||
if (path.endsWith('.bulkReleases.request')) {
|
||||
const includeGateway =
|
||||
rawInput && typeof rawInput === 'object'
|
||||
? (rawInput as { includeGateway?: unknown }).includeGateway
|
||||
: false;
|
||||
return includeGateway ? 'admin.releases.manage' : 'admin.profiles.deploy';
|
||||
}
|
||||
if (path.includes('.releases.')) return 'admin.releases.manage';
|
||||
if (path.endsWith('.profiles.requestAction') && rawInput && typeof rawInput === 'object') {
|
||||
const action = (rawInput as { action?: unknown }).action;
|
||||
|
||||
Reference in New Issue
Block a user