Skip to content

Commit

Permalink
added button in service edit mode which enables user to check what cu…
Browse files Browse the repository at this point in the history
…rrently attached resources will comply with the selected capabilities.
  • Loading branch information
OrGur1987 committed May 21, 2023
1 parent e198086 commit 8b1dc51
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/controllers/api/storage_services_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,12 @@ def edit_resource(type, id, data = {})
{:task_id => storage_service.update_storage_service_queue(User.current_userid, data)}
end
end

def check_compliant_resources_resource(type, id = nil, data = {})
data["_id"] = id
api_ems_resource(type, data, "Checking Compliant Resources", :supports => :check_compliant_resources) do |ems, storage_service|
{:task_id => storage_service.check_compliant_resources_queue(User.current_userid, ems, data)}
end
end
end
end
3 changes: 3 additions & 0 deletions config/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4255,6 +4255,7 @@
:identifier: storage_service
:options:
- :collection
- :custom_actions
:verbs: *gpppd
:klass: StorageService
:subcollections:
Expand All @@ -4273,6 +4274,8 @@
:identifier: storage_service_refresh
- :name: query
:identifier: storage_service_show_list
- :name: check_compliant_resources
:identifier: check_compliant_resources
:resource_actions:
:get:
- :name: read
Expand Down

0 comments on commit 8b1dc51

Please sign in to comment.