Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Error - Removal of Resource Causes Failure Instead of Gracefully Informing User. #589

Closed
esacci opened this issue Mar 23, 2018 · 2 comments
Assignees
Labels

Comments

@esacci
Copy link

esacci commented Mar 23, 2018

Mac dev7.

To recreate - (1) click on resource which itself has a resource dependent, (2) click "-", (3) click 'yes' I'm sure I want to delete the resource.

screen shot 2018-03-23 at 15 55 02

screen shot 2018-03-23 at 15 57 10

screen shot 2018-03-23 at 15 55 32

Cate Desktop, version 2.0.0-dev.7

delete_workspace_resource() call raised exception: "Cannot delete resource "ds_1" because the following resource(s) depend on it: res_2"

An error (code 20) occurred in Cate Core:

Traceback (most recent call last):
File "/Users/edpechorro/cate-2.0.0.dev7/lib/python3.6/site-packages/cate/util/web/jsonrpchandler.py", line 192, in send_service_method_result
result = future.result()
File "/Users/edpechorro/cate-2.0.0.dev7/lib/python3.6/concurrent/futures/_base.py", line 425, in result
return self.__get_result()
File "/Users/edpechorro/cate-2.0.0.dev7/lib/python3.6/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
File "/Users/edpechorro/cate-2.0.0.dev7/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/Users/edpechorro/cate-2.0.0.dev7/lib/python3.6/site-packages/cate/util/web/jsonrpchandler.py", line 275, in call_service_method
result = method(*method_params)
File "/Users/edpechorro/cate-2.0.0.dev7/lib/python3.6/site-packages/cate/webapi/websocket.py", line 269, in delete_workspace_resource
workspace = self.workspace_manager.delete_workspace_resource(base_dir, res_name)
File "/Users/edpechorro/cate-2.0.0.dev7/lib/python3.6/site-packages/cate/core/wsmanag.py", line 333, in delete_workspace_resource
workspace.delete_resource(res_name)
File "/Users/edpechorro/cate-2.0.0.dev7/lib/python3.6/site-packages/cate/core/workspace.py", line 435, in delete_resource
'depend on it: %s' % (res_name, ', '.join(dependent_steps)))
cate.core.workspace.WorkspaceError: Cannot delete resource "ds_1" because the following resource(s) depend on it: res_2

@forman forman self-assigned this Mar 26, 2018
@forman
Copy link
Member

forman commented Mar 26, 2018

Should be addressed when fixing #393

@forman
Copy link
Member

forman commented Apr 17, 2018

Closed with #593

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants