2 new commits in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/5435d68586aa/ Changeset: 5435d68586aa User: dan Date: 2015-02-04 15:02:20+00:00 Summary: In API, when removing or refreshing a data table, send the reload signal to the worker queue. Change return values of reload and delete to be the new table contents, instead of the only-internally-useful 'version'. Affected #: 1 file diff -r 9bc22ec1a8156fe640fd049399cb39c8755eef73 -r 5435d68586aa09f74391504030b6d30eb627f66e lib/galaxy/webapps/galaxy/api/tool_data.py --- a/lib/galaxy/webapps/galaxy/api/tool_data.py +++ b/lib/galaxy/webapps/galaxy/api/tool_data.py @@ -5,6 +5,7 @@ from galaxy.web import _future_expose_api as expose_api from galaxy.web import _future_expose_api_raw as expose_api_raw from galaxy.web.base.controller import BaseAPIController +import galaxy.queue_worker class ToolData( BaseAPIController ): @@ -36,7 +37,11 @@ """ decoded_tool_data_id = id data_table = trans.app.tool_data_tables.data_tables.get(decoded_tool_data_id) - return data_table.reload_from_files() + data_table.reload_from_files() + galaxy.queue_worker.send_control_task( trans, 'reload_tool_data_tables', + noop_self=True, + kwargs={'table_name': decoded_tool_data_id} ) + return self._data_table( decoded_tool_data_id ).to_dict( view='element' ) @web.require_admin @@ -78,7 +83,11 @@ trans.response.status = 400 return "Invalid data table item ( %s ) specified. Wrong number of columns (%s given, %s required)." % ( str( values ), str(len(split_values)), str(len(data_table.get_column_name_list()))) - return data_table.remove_entry(split_values) + data_table.remove_entry(split_values) + galaxy.queue_worker.send_control_task( trans, 'reload_tool_data_tables', + noop_self=True, + kwargs={'table_name': decoded_tool_data_id} ) + return self._data_table( decoded_tool_data_id ).to_dict( view='element' ) @web.require_admin @expose_api https://bitbucket.org/galaxy/galaxy-central/commits/dee88f35c796/ Changeset: dee88f35c796 User: dannon Date: 2015-02-04 17:45:56+00:00 Summary: Merged in dan/galaxy-central-prs (pull request #659) In API, when removing or refreshing a data table, send the reload signal to the worker queue. Change return values of reload and delete to be the new table contents, instead of the only-internally-useful 'version'. Affected #: 1 file diff -r 7c04c98d7b6af49164615bf3988942a19a1fc620 -r dee88f35c796e413ae071a49716dff1a9238d66c lib/galaxy/webapps/galaxy/api/tool_data.py --- a/lib/galaxy/webapps/galaxy/api/tool_data.py +++ b/lib/galaxy/webapps/galaxy/api/tool_data.py @@ -5,6 +5,7 @@ from galaxy.web import _future_expose_api as expose_api from galaxy.web import _future_expose_api_raw as expose_api_raw from galaxy.web.base.controller import BaseAPIController +import galaxy.queue_worker class ToolData( BaseAPIController ): @@ -36,7 +37,11 @@ """ decoded_tool_data_id = id data_table = trans.app.tool_data_tables.data_tables.get(decoded_tool_data_id) - return data_table.reload_from_files() + data_table.reload_from_files() + galaxy.queue_worker.send_control_task( trans, 'reload_tool_data_tables', + noop_self=True, + kwargs={'table_name': decoded_tool_data_id} ) + return self._data_table( decoded_tool_data_id ).to_dict( view='element' ) @web.require_admin @@ -78,7 +83,11 @@ trans.response.status = 400 return "Invalid data table item ( %s ) specified. Wrong number of columns (%s given, %s required)." % ( str( values ), str(len(split_values)), str(len(data_table.get_column_name_list()))) - return data_table.remove_entry(split_values) + data_table.remove_entry(split_values) + galaxy.queue_worker.send_control_task( trans, 'reload_tool_data_tables', + noop_self=True, + kwargs={'table_name': decoded_tool_data_id} ) + return self._data_table( decoded_tool_data_id ).to_dict( view='element' ) @web.require_admin @expose_api Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.