Skip to content

Commit

Permalink
Hack around bug in uploader where it sometimes posts with empty "file…
Browse files Browse the repository at this point in the history
…_type".

Galaxy really needs this to be "auto". Seems to happen in automated testing, maybe because things move faster and something hasn't had time to reset?

xref #5169
  • Loading branch information
jmchilton committed Mar 14, 2018
1 parent c6993ca commit 5ed6d50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/galaxy/scripts/mvc/upload/upload-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ export default Backbone.View.extend({
var inputs = {
file_count: items.length,
dbkey: items[0].get("genome", "?"),
file_type: items[0].get("extension", "auto")
// sometimes extension set to "" in automated testing after first upload of
// a session. https://github.com/galaxyproject/galaxy/issues/5169
file_type: items[0].get("extension") || "auto"
};
for (var index in items) {
var it = items[index];
Expand Down

0 comments on commit 5ed6d50

Please sign in to comment.