Skip to content

Commit

Permalink
Clean project from self invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
alekGbuz committed Dec 6, 2024
1 parent 9ef77dc commit dbf79ae
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 67 deletions.
18 changes: 1 addition & 17 deletions descriptors/ModuleDescriptor-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@
"converter-storage.actionprofile.post",
"converter-storage.mappingprofile.post",
"source-storage.source-records.item.get",
"bulk-operations.permissions-self-check.get",
"data-import.splitconfig.get",
"data-import.uploadUrl.item.get",
"data-import.assembleStorageFile.post",
Expand Down Expand Up @@ -280,15 +279,6 @@
"pathPattern": "/bulk-operations/used-tenants/{operationId}",
"permissionsRequired": ["bulk-operations.used.tenants.get"],
"modulePermissions": [ ]
},
{
"methods": [ "GET" ],
"pathPattern": "/bulk-operations/permissions-self-check",
"permissionsRequired": ["bulk-operations.permissions-self-check.get"],
"modulePermissions": [
"perms.users.get",
"permissions.users.item.get"
]
}
]
},
Expand Down Expand Up @@ -431,11 +421,6 @@
"displayName" : "bulk edit users write permissions",
"description" : "Bulk edit users write permissions"
},
{
"permissionName" : "bulk-operations.permissions-self-check.get",
"displayName" : "Set of users permissions for self check",
"description" : "Set of users permissions for self check"
},
{
"permissionName" : "bulk-operations.all",
"displayName" : "bulk-operations all",
Expand All @@ -456,8 +441,7 @@
"bulk-operations.files.item.delete",
"bulk-operations.item.cancel.post",
"bulk-operations.item.query.post",
"bulk-operations.used.tenants.get",
"bulk-operations.permissions-self-check.get"
"bulk-operations.used.tenants.get"
]
}
],
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,4 @@ public ResponseEntity<List<String>> getListUsedTenants(UUID operationId) {
public ResponseEntity<BulkOperationDto> triggerBulkEditByQuery(UUID xOkapiUserId, QueryRequest queryRequest) {
return new ResponseEntity<>(bulkOperationMapper.mapToDto(bulkOperationService.triggerByQuery(xOkapiUserId, queryRequest)), HttpStatus.OK);
}

@Override
@Deprecated
public ResponseEntity<List<String>> getUsersPermissions() {
return new ResponseEntity<>(userPermissionsService.getPermissions(), HttpStatus.OK);
}
}
29 changes: 0 additions & 29 deletions src/main/resources/swagger.api/bulk-operations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -582,38 +582,9 @@ paths:
schema:
type: string
example: Internal server error
/bulk-operations/permissions-self-check:
get:
description: Get users permissions
operationId: getUsersPermissions
responses:
'200':
description: List of actual users permissions for current tenant
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/userPermission"
'404':
description: No found
content:
text/plain:
schema:
type: string
example: Desired permissions not found
'500':
description: Internal server errors, e.g. due to misconfiguration
content:
text/plain:
schema:
type: string
example: Internal server error

components:
schemas:
userPermission:
type: string
bulkOperationCollection:
$ref: 'schemas/bulk_operation_collection.json#/BulkOperationCollection'
bulkOperationDto:
Expand Down

0 comments on commit dbf79ae

Please sign in to comment.