Skip to content

Commit

Permalink
Merge pull request #2853 from PrefectHQ/remove-work-pool-queue-scopes
Browse files Browse the repository at this point in the history
Remove work_pool_queue permissions because they do not exist
  • Loading branch information
pleek91 authored Dec 9, 2024
2 parents a963504 + c67c3cc commit 035e315
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/models/WorkPoolQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface IWorkPoolQueue {
priority: number,
lastPolled: Date | null,
status: WorkPoolQueueStatus,
can: ObjectLevelCan<'work_pool_queue'>,
can: ObjectLevelCan<'work_queue'>,
}

export class WorkPoolQueue implements IWorkPoolQueue {
Expand All @@ -48,7 +48,7 @@ export class WorkPoolQueue implements IWorkPoolQueue {
public priority: number
public lastPolled: Date | null
public status: WorkPoolQueueStatus
public can: ObjectLevelCan<'work_pool_queue'>
public can: ObjectLevelCan<'work_queue'>

public constructor(workPoolQueue: IWorkPoolQueue) {
this.id = workPoolQueue.id
Expand Down
4 changes: 0 additions & 4 deletions src/services/can.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export const workspacePermissions = [
'create:task_run',
'create:variable',
'create:work_queue',
'create:work_pool_queue',
'create:work_pool',
'create:workspace_bot_access',
'create:workspace_user_access',
Expand All @@ -34,7 +33,6 @@ export const workspacePermissions = [
'delete:saved_search',
'delete:task_run',
'delete:work_queue',
'delete:work_pool_queue',
'delete:work_pool',
'delete:worker',
'delete:workspace_bot_access',
Expand All @@ -53,7 +51,6 @@ export const workspacePermissions = [
'read:task_run',
'read:variable',
'read:work_queue',
'read:work_pool_queue',
'read:work_pool',
'read:worker',
'read:workspace_bot_access',
Expand All @@ -70,7 +67,6 @@ export const workspacePermissions = [
'update:task_run',
'update:variable',
'update:work_queue',
'update:work_pool_queue',
'update:work_pool',
'update:workspace_bot_access',
'update:workspace_settings',
Expand Down

0 comments on commit 035e315

Please sign in to comment.