Commit Graph
20621 Commits
Author SHA1 Message Date
carlfeberhard d72dd3735c Client, polyfills: check for sessionStorage using a more cross-browser (apparently) way 2015-12-09 14:10:36 -05:00
Daniel Blankenberg d41ea8d315 Merge pull request #1276 from martenson/fix-ts-dbconnection-tag
set client_encoding for TS dockerized test db
2015-12-09 11:45:05 -05:00
Martin Cech c3e4ae11b0 set client_encoding for TS dockerized test db 2015-12-09 11:37:31 -05:00
Nicola Soranzo bd1349eb9b Merge pull request #1274 from jmchilton/workflow_fix_3
Fix tool shed tests for recent workflow changes.
2015-12-09 16:20:02 +00:00
John Chilton 37931505d4 Fix tool shed tests for recent workflow changes.
Thanks for bug report by @nsoranzo on https://github.com/galaxyproject/galaxy/pull/1263.
2015-12-09 10:26:57 +00:00
Martin Cech 7dbbac31b3 Merge pull request #1271 from carlfeberhard/jettison.history-options
Remove: history_options and options.mako (history options as a page)
2015-12-08 17:30:34 -05:00
carlfeberhard a033d798de Remove: history_options and options.mako (history options as a page) 2015-12-08 16:02:49 -05:00
Martin Cech 864472870f Merge pull request #1267 from erasche/install-logging
Log command executed during package installation
2015-12-08 14:06:21 -05:00
Eric Rasche b273e3b0c5 Improve logging during package installation 2015-12-08 13:03:03 -06:00
Martin Cech 6d16549a46 Merge pull request #1262 from carlfeberhard/fix.js-app-mako
Managers, users: properly return a boolean from has_requests
2015-12-08 12:44:36 -05:00
Martin Cech fe1c9dd293 Merge pull request #1251 from jmchilton/workflow_labels_2
Workflow Editor UI for Step Labels
2015-12-08 12:04:26 -05:00
carlfeberhard 38a9aa6a5c Managers, users: update serialized key 'requests' to 'has_requests', update test 2015-12-08 11:43:15 -05:00
carlfeberhard 7f4c3fcfc8 Managers, users: properly return a boolean from has_requests 2015-12-08 11:20:16 -05:00
Martin Cech 0e5d42f3d6 Merge pull request #1261 from carlfeberhard/fix.citations
UI, Citations: fix require of bibtex parser
2015-12-08 11:06:47 -05:00
carlfeberhard 6ba86d89bc UI, Citations: don't create new BibtexParser, remove debugging 2015-12-08 10:57:41 -05:00
carlfeberhard 5ff09896f7 UI, Citations: fix require of bibtex parser 2015-12-08 10:27:09 -05:00
John Chilton 3f8950628c Workflow label UI refinement.
- Escape workflow labels in mako.
 - Handle unlabelling steps properly (restore original node name to node and editor form titles).
2015-12-08 09:22:11 +00:00
John Chilton 4a9dad9f14 Merge pull request #12 from martenson/labels_toastr
show notifications as Toasts and not like JS alerts (bleh)
2015-12-07 15:30:28 -05:00
Martin Cech ef0b6cc459 show notifications as Toasts and not like JS alerts (bleh) 2015-12-07 15:07:14 -05:00
Nicola Soranzo bcf8ddfbd0 Merge branch 'master' into dev
Conflicts:
	lib/galaxy/jobs/runners/__init__.py
2015-12-07 15:23:04 +00:00
Martin Cech 01a919ce6a Merge pull request #1253 from nsoranzo/dev_verify_tools
Tool migration: do not mess with galaxy_config_file, if provided.
2015-12-07 08:56:14 -05:00
John Chilton 371125bc87 Merge pull request #1111 from erasche/user-search-name
Add search on username/any for API calls to user, use Select2 for sharing workflows/pages/histories
2015-12-06 16:17:34 -05:00
John Chilton 3a023f4cae Merge pull request #818 from mvdbeek/cross_toolshed_tool_fetching
Look up installed tools from different toolshed(s)
2015-12-06 15:56:31 -05:00
Björn Grüning 4fe36f8d6a Merge pull request #1199 from jmchilton/tool_opts_4
Yet More Tool Execution Optimizations
2015-12-06 21:50:15 +01:00
Björn Grüning beb4a67fb0 Merge pull request #1250 from carlfeberhard/fix.upload
Client, upload: fix passing of nginx_upload_path and ftp_upload_site …
2015-12-06 19:24:24 +01:00
carlfeberhard b55635f71b Client, upload: fix passing of nginx_upload_path and ftp_upload_site to upload-view, fix default nginx_upload_path in configuration serializer 2015-12-06 12:10:31 -05:00
John Chilton 53354c7e36 Fix collection output for less flushing in tool action handle_output. 2015-12-06 14:32:05 +00:00
John Chilton c14c45be46 Further cache user roles across batched tool executions. 2015-12-06 14:32:05 +00:00
John Chilton 836b0dfc15 Fix location of timer generation for fairer comparison in next commit. 2015-12-06 14:32:05 +00:00
John Chilton 2c6819cd87 Tool optimization - eliminate repeated role generation.
For cat1 with 5 inputs - this shaves about 100 ms off of job execution time.

Before:

 galaxy.tools.execute DEBUG 2015-12-01 15:08:56,745 Tool [cat1] created job [171] (545.776 ms)
 galaxy.tools.execute DEBUG 2015-12-01 15:08:31,871 Tool [cat1] created job [170] (478.813 ms)

After :

 galaxy.tools.execute DEBUG 2015-12-01 15:07:11,401 Tool [cat1] created job [168] (371.722 ms)
 galaxy.tools.execute DEBUG 2015-12-01 15:07:42,060 Tool [cat1] created job [169] (333.296 ms)
2015-12-06 14:32:05 +00:00
John Chilton e72604be7c Instrument upload action for timing.
- Checked and cleanup datasets ~500ms
 - Create job ~200ms
 - Persisting ~20 ms
2015-12-06 14:32:05 +00:00
John Chilton 3bf466c8f5 Micro optimization in tool execute - eliminate repeated trans.app fetch. 2015-12-06 14:32:03 +00:00
John Chilton 59c3acfbf5 Tool execution optimization - remove another unneeded flush.
Flush the job and its output datasets all at the same time in one transaction.

Inuitively it makes sense that this should work and the timings seem to improve, triming another quater or third of the submission time per job.

Before:

 - galaxy.tools.execute DEBUG 2015-12-01 12:58:51,154 Tool [cat1] created job [21] (261.932 ms)
 - galaxy.tools.execute DEBUG 2015-12-01 12:59:11,354 Tool [cat1] created job [22] (278.699 ms)
 - galaxy.tools.execute DEBUG 2015-12-01 12:59:43,105 Tool [cat1] created job [23] (296.438 ms)

After:

 - galaxy.tools.execute DEBUG 2015-12-01 13:22:00,649 Tool [cat1] created job [39] (265.547 ms)
 - galaxy.tools.execute DEBUG 2015-12-01 13:22:27,720 Tool [cat1] created job [40] (214.905 ms)
 - galaxy.tools.execute DEBUG 2015-12-01 13:21:40,225 Tool [cat1] created job [38] (198.936 ms)
 - galaxy.tools.execute DEBUG 2015-12-01 13:22:44,076 Tool [cat1] created job [41] (213.096 ms)
2015-12-06 14:30:09 +00:00
John Chilton bd6a34e279 Tool optimization comments for future reference.
Including replacing a log statement with a comment.
2015-12-06 14:30:09 +00:00
John Chilton 81799bd3a7 Micro-optimizations for adding many datasets to history...
... during tool execution. Build method once instead of in each function call, use imap instead of map since we don't need a list, remove some duplicated checks. Frankly this is all stuff Python is probably doing anyway - but in case it doesn't and just so the eye doesn't jump to these optimizations again.

Timings before and after for a section of tool action execute that includes this additon show that this might have a small effect.

Before:

 - galaxy.tools.actions INFO 2015-12-01 13:11:39,446 Add outputs to history (127.379 ms)
 - galaxy.tools.actions INFO 2015-12-01 13:12:06,598 Add outputs to history (137.029 ms)
 - galaxy.tools.actions INFO 2015-12-01 13:12:23,931 Add outputs to history (118.489 ms)

After:

 - galaxy.tools.actions INFO 2015-12-01 13:13:09,999 Add outputs to history (99.456 ms)
 - galaxy.tools.actions INFO 2015-12-01 13:13:38,573 Add outputs to history (126.131 ms)
 - galaxy.tools.actions INFO 2015-12-01 13:13:54,538 Add outputs to history (137.643 ms)
 - galaxy.tools.actions INFO 2015-12-01 13:14:12,516 Add outputs to history (101.451 ms)
2015-12-06 14:30:09 +00:00
John Chilton 2b8a1423f7 Tool optimization - remove another seemingly needless flush.
Saves around a teenth of a second per job.

Before:

 - galaxy.tools.execute DEBUG 2015-12-01 13:00:56,984 Tool [cat1] created job [24] (435.468 ms)
 - galaxy.tools.execute DEBUG 2015-12-01 13:01:17,296 Tool [cat1] created job [25] (341.687 ms)
 - galaxy.tools.execute DEBUG 2015-12-01 13:01:32,896 Tool [cat1] created job [26] (354.138 ms)

After -

 - galaxy.tools.execute DEBUG 2015-12-01 12:58:51,154 Tool [cat1] created job [21] (261.932 ms)
 - galaxy.tools.execute DEBUG 2015-12-01 12:59:11,354 Tool [cat1] created job [22] (278.699 ms)
 - galaxy.tools.execute DEBUG 2015-12-01 12:59:43,105 Tool [cat1] created job [23] (296.438 ms)
2015-12-06 14:30:09 +00:00
John Chilton 0ac7c33522 Tool optimization and comment improvement. 2015-12-06 14:30:08 +00:00
John Chilton 563e363478 Tool optimization - don't set state to queued twice.
Just keep the dataset in the correct NEW state until it has actually been queued. Addresses FIXME comment added by James 7 years ago in https://github.com/galaxyproject/galaxy/commit/4c3db1af95fb0520960046ae549462aebd78b326.

This behavior feels correct to me, but it does have ramifications in the GUI. I had previously never actually seen a dataset in the "NEW" state.

Saves an extra flush per dataset, on sqlite this translates to 50ms per dataset for me.
2015-12-06 14:30:08 +00:00
John Chilton e3161b4671 Add support for workflow step labels in editor.
- If a step has a label, display it in the step editor side panel title.
 - Allow clicking the title to change the label.
 - Display the label (if set) as the workflow node box title.
 - Add icon to workflow node since the title might not be related to type anymore.
 - Enforce unique labels accross the workflow in the editor.
 - Qunit test cases for some of this behavior and other recent changes.
2015-12-06 12:27:13 +00:00
John Chilton d7ac52f6bb Add icons to existing workflow steps in workflow editor.
Tools have an icon there.
2015-12-06 10:49:17 +00:00
John Chilton d18c75ceb8 Bring gneric and tool module styles into alignment in workflow editor. 2015-12-06 10:43:09 +00:00
John Chilton f92220a74f Allow workflow outputs on non-tool steps. 2015-12-06 10:43:09 +00:00
John Chilton 73bfbf0163 Refactor some workflow API code into workflows manager.
This allows for reuse outside of the API controller, such as loading subworkflows downstream.
2015-12-06 10:43:09 +00:00
John Chilton f6d26c9ee6 Small refactor making workflow views and modules tad more generic.
- Reduce duplication between initializing generic modules and tool modules.
 - Switch tool_id to content_id as variable names throughout the client.
 - Rename get_tool_id to get_content_id on workflow modules.
 - Add some minimal documentation to the workflow module about get_content_id.

Downstream in the subworkflow commit I switch the over-the-wire communication to use content_id instead of tool_id also and use content_ids to refer to workflow ids in subworkflow moduls.
2015-12-06 10:43:09 +00:00
John Chilton f17a6c996a Synchronize decoding ids across base controller and manager base.
To ensure we have the same kind of exception thrown in both cases.
2015-12-06 10:43:09 +00:00
John Chilton 98249058e8 Cleanup error message.
Thanks @bgruening.
2015-12-06 09:50:55 +00:00
John Chilton 2aa7f04364 Replace __rip_value with dict.pop.
Thanks @bgruening.
2015-12-06 09:50:55 +00:00
John Chilton b11002bef3 Don't iterate over unused key.
Thanks to @bgruening.
2015-12-06 09:50:55 +00:00
Martin Cech 91d348a73f Merge pull request #1247 from jmchilton/editor_refactor
Refactor generic side workflow editor panel toward backbone.
2015-12-05 19:34:39 -05:00
Martin Cech e12179b016 Merge pull request #1211 from gregvonkuster/dev
Enhance the VTK datatypes to support cell data in addition to point
2015-12-05 19:19:03 -05:00