Skip to content

Release candidate November 1st, 2017 #2373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 190 commits into from
Oct 31, 2017
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
190 commits
Select commit Hold shift + click to select a range
52e98a5
replace printable for try/except utf-8
antgonza Aug 28, 2017
e367b54
add sleeps for tests
antgonza Aug 28, 2017
5f7177e
moving wait_for_prep_information_job
antgonza Aug 28, 2017
01da18f
just leaving the changes on this pr
antgonza Aug 28, 2017
2ae9511
Fixing tests
josenavas Aug 28, 2017
2026d0c
Reverting changes
josenavas Aug 28, 2017
f098fcf
dist: precise
antgonza Aug 28, 2017
97a8397
Merge branch 'printable-to-utf8' of https://github.com/antgonza/qiita…
antgonza Aug 28, 2017
e195e07
addressing @josenavas comments
antgonza Aug 29, 2017
ef4f566
Merge pull request #2255 from antgonza/printable-to-utf8
josenavas Aug 29, 2017
7d5da5c
fix-2212
josenavas Aug 29, 2017
21f0287
Adding branch description to Contributing (#2256)
josenavas Aug 29, 2017
2e102b4
Merge branch 'dev' of https://github.com/biocore/qiita into dev
josenavas Aug 31, 2017
de5c89f
upgrading software
antgonza Aug 31, 2017
6248208
mv r_client to qiita
antgonza Aug 31, 2017
eb19870
from redis import Redis
antgonza Aug 31, 2017
120e9ac
Merge pull request #2261 from antgonza/upgrading-software
josenavas Aug 31, 2017
58e2dab
Merge branch 'remove-moi' of https://github.com/biocore/qiita into r_…
antgonza Aug 31, 2017
8b4ce80
Merge pull request #2262 from antgonza/r_client-to-qiita
josenavas Aug 31, 2017
fa7cf3d
rm moi and ipython
antgonza Aug 31, 2017
a47c13b
Move qiita_db/private.py -> qiita_ware/private_plugin.py
josenavas Aug 31, 2017
c8c1b59
_system_call as system_call
antgonza Aug 31, 2017
c46c05f
flake8
antgonza Aug 31, 2017
f7e9b1e
rm create_raw_data
antgonza Aug 31, 2017
c16b177
Transferring VAMPS submission to internal job
josenavas Aug 31, 2017
4de94cd
rm other unnecessary files
antgonza Aug 31, 2017
f50dc35
addressing @josenavas comment
antgonza Aug 31, 2017
d4f8d8c
Merge pull request #2263 from antgonza/rm-moi-ipython
josenavas Aug 31, 2017
925a3a5
Merge branch 'remove-moi' of https://github.com/biocore/qiita into rm…
antgonza Aug 31, 2017
58cd5ae
Merge branch 'remove-moi' of https://github.com/biocore/qiita into tr…
josenavas Aug 31, 2017
0be1275
Merge pull request #2264 from antgonza/rm-create_raw_data
josenavas Aug 31, 2017
263f956
Solving merge conflicts
josenavas Aug 31, 2017
efa1924
Merge branch 'transfer-submit-to-vamps' into transfer-copy-raw-data
josenavas Aug 31, 2017
4f43236
Fixing merge conflicts
josenavas Aug 31, 2017
a528e04
Adding tests to private plugin
josenavas Aug 31, 2017
242df8e
rm wrapper.py
antgonza Aug 31, 2017
0bf7307
Removing import
josenavas Aug 31, 2017
6ee9022
Fixing import
josenavas Aug 31, 2017
c13e8bd
Merge branch 'transfer-submit-to-vamps' into transfer-copy-raw-data
josenavas Aug 31, 2017
c3bc77c
Modifying GUI to use the plugin
josenavas Aug 31, 2017
fbf5402
moving qiita pet in .travis.yml
antgonza Aug 31, 2017
71c0b41
Transfer submit to vamps (#2265)
josenavas Aug 31, 2017
b6f43c0
Merge branch 'remove-moi' of https://github.com/biocore/qiita into rm…
antgonza Aug 31, 2017
8051cbb
some other .travis.yml fixes
antgonza Aug 31, 2017
10d8cfd
Fixing import
josenavas Aug 31, 2017
df5f5c8
addressing @josenavas comment
antgonza Aug 31, 2017
5230bae
Merge pull request #2266 from antgonza/rm-wrapper.py
josenavas Aug 31, 2017
044e562
Merge branch 'remove-moi' of https://github.com/biocore/qiita into tr…
josenavas Aug 31, 2017
f2a12c6
Adding success test
josenavas Aug 31, 2017
a9e302a
adding some methods
antgonza Aug 31, 2017
dde3296
flake8
antgonza Aug 31, 2017
779a5d1
Transfer copy raw data (#2267)
josenavas Aug 31, 2017
2113fa4
fix conflicts
antgonza Aug 31, 2017
e03997a
change imports
antgonza Sep 1, 2017
48abc1e
adding delete_artifact and create_sample_template
antgonza Sep 1, 2017
2d8dffa
fixing errors and gui
antgonza Sep 1, 2017
df64ef5
fix delete error
antgonza Sep 2, 2017
dc7f78c
Merge pull request #2268 from antgonza/mv-some-methods
josenavas Sep 5, 2017
9a8d271
Merge pull request #2257 from josenavas/fix-2212
adswafford Sep 6, 2017
6673792
ENH: Make jobs list modal
ElDeveloper Sep 6, 2017
c227463
erge branch 'master' of https://github.com/biocore/qiita
antgonza Sep 7, 2017
22d52f0
Transfer update delete templates (#2274)
josenavas Sep 8, 2017
fb60c20
Merge branch 'remove-moi' of git://github.com/biocore/qiita into jobs…
ElDeveloper Sep 8, 2017
0440cb7
BUG: Fix job updates
ElDeveloper Sep 8, 2017
8178bab
Merge branch 'dev' of https://github.com/biocore/qiita
antgonza Sep 9, 2017
fb65ff1
Fixing the redis DB (#2277)
josenavas Sep 9, 2017
61e66a8
Merge branch 'remove-moi' of https://github.com/biocore/qiita into re…
antgonza Sep 10, 2017
caaf730
redbiom install
antgonza Sep 10, 2017
7b906b9
redbiom to install_requires
antgonza Sep 10, 2017
ecfbaf7
Merge branch 'remove-moi' of https://github.com/biocore/qiita into mo…
antgonza Sep 10, 2017
0a9182f
mv moi-ws to qiita_websocket
antgonza Sep 11, 2017
4ed9285
Merge pull request #2279 from antgonza/moi.send
josenavas Sep 11, 2017
45e0175
Merge pull request #2260 from biocore/remove-moi
josenavas Sep 11, 2017
6525487
Merge branch 'dev' of https://github.com/biocore/qiita into redbiom-i…
antgonza Sep 11, 2017
5e99089
init commit
antgonza Sep 11, 2017
84d1ebd
addressing @wasade comment
antgonza Sep 11, 2017
21549c1
rm webdis.log
antgonza Sep 11, 2017
8ab4066
cleaning code for initial review
antgonza Sep 13, 2017
d3590f6
install latest redbiom
antgonza Sep 13, 2017
ab397c1
fix test
antgonza Sep 13, 2017
42dd9a9
Merge pull request #2278 from antgonza/redbiom-install
josenavas Sep 13, 2017
eef49b1
Merge branch 'dev' of https://github.com/biocore/qiita into initial-r…
antgonza Sep 13, 2017
c808c63
ENH: Change phrasing of upload text (#2281)
ElDeveloper Sep 13, 2017
e482bce
addressing @wasade comments and adding other tests
antgonza Sep 13, 2017
25ee54f
flake8
antgonza Sep 13, 2017
079f4eb
addressing @josenavas comments
antgonza Sep 14, 2017
9e1c1b5
Merge pull request #2282 from antgonza/initial-redbiom-code
josenavas Sep 14, 2017
e4e8ffd
fix #2258
antgonza Sep 14, 2017
49015c2
fix #2258
antgonza Sep 14, 2017
955d5cd
fix #858 (#2286)
antgonza Sep 15, 2017
d8c4a72
addressing @ElDeveloper and @josenavas comments
antgonza Sep 15, 2017
b482b4e
@ElDeveloper :|
antgonza Sep 15, 2017
a9aa1c4
Merge pull request #2287 from antgonza/fix-2258
josenavas Sep 15, 2017
d4cc989
redbiom now adds per sample studies to analysis
antgonza Sep 15, 2017
525102e
Merge branch 'jobs-list-as-modal' of https://github.com/ElDeveloper/q…
antgonza Sep 15, 2017
7906727
jobs-list-as-modal
antgonza Sep 15, 2017
de75346
addresssing @josenavas comments
antgonza Sep 15, 2017
b8e3da4
rm () from update_processing_job_data
antgonza Sep 15, 2017
46b174e
add prints to review errors
antgonza Sep 16, 2017
38e5cd7
rm prints
antgonza Sep 16, 2017
91f0051
Merge pull request #2289 from antgonza/jobs-list-as-modal
josenavas Sep 18, 2017
ae3dc0c
Merge pull request #2288 from antgonza/redbiom-per-sample
josenavas Sep 18, 2017
c9045ff
Fix 2190 (#2292)
josenavas Sep 18, 2017
15b849f
add is_from_analysis to artifact_handlers (#2293)
antgonza Sep 18, 2017
81bd7b3
WIP: rm sudo from travis
antgonza Sep 18, 2017
191199c
adding sed for config file
antgonza Sep 18, 2017
53579aa
fix sed
antgonza Sep 18, 2017
d12ed87
rm &
antgonza Sep 18, 2017
ea5d647
cat redis.conf
antgonza Sep 18, 2017
4c40d83
using local redis.conf
antgonza Sep 18, 2017
fad8935
# protected-mode yes
antgonza Sep 18, 2017
91bdbbc
# supervised no
antgonza Sep 18, 2017
e0d83bc
redis-server --port 7777 &
antgonza Sep 18, 2017
1b7e38c
Fix 1293 (#2291)
antgonza Sep 18, 2017
6adf8b1
rm redis.conf
antgonza Sep 18, 2017
20226ed
fix awaiting_approval list bug
antgonza Sep 19, 2017
d5ecf8a
Merge pull request #2295 from antgonza/rm-sudo
josenavas Sep 19, 2017
33054b2
Merge pull request #2296 from antgonza/awaiting_approval-list
josenavas Sep 19, 2017
064d35a
Fix #2276 (#2294)
josenavas Sep 19, 2017
5081f21
update dev 0917
antgonza Sep 27, 2017
07e4b7e
Fixing patch
josenavas Sep 27, 2017
05acf90
Merge branch 'master' of https://github.com/biocore/qiita into update…
antgonza Sep 27, 2017
6c855a6
fix error
antgonza Oct 2, 2017
0331592
Merge branch 'update-dev-0917' of https://github.com/antgonza/qiita i…
josenavas Oct 4, 2017
e4d2804
Fixing failing test
josenavas Oct 5, 2017
7d50388
Merge pull request #1 from josenavas/update-dev-0917
antgonza Oct 5, 2017
10286b5
Merge pull request #2314 from antgonza/update-dev-0917
josenavas Oct 5, 2017
0d16b99
fix #2214
antgonza Oct 9, 2017
34cc455
addressing @josenavas comment
antgonza Oct 10, 2017
4fe3f5e
fix #2209
antgonza Oct 10, 2017
79aa8f9
Merge pull request #2327 from antgonza/fix-2214
wasade Oct 10, 2017
041eac8
fix #2331
antgonza Oct 11, 2017
0e79434
Merge pull request #2329 from antgonza/fix-2209
josenavas Oct 11, 2017
d301b95
Merge pull request #2339 from antgonza/fix-2331
wasade Oct 11, 2017
8c7ed99
fix #2326 (#2328)
antgonza Oct 11, 2017
097e1bc
fix #2226 (#2330)
antgonza Oct 11, 2017
26d16ad
fix #2336
antgonza Oct 13, 2017
be5f7e2
fix #2316
antgonza Oct 13, 2017
2a224ca
Fixes 2269
josenavas Oct 13, 2017
65ee914
addressing @josenavas comments
antgonza Oct 13, 2017
2435f28
Merge pull request #2352 from josenavas/fix-2269
wasade Oct 16, 2017
9419b79
Fixes 2038 (#2349)
josenavas Oct 17, 2017
5f5b61f
Merge pull request #2348 from antgonza/fix-2336
josenavas Oct 17, 2017
c37188f
fix #2333
antgonza Oct 17, 2017
2b000fc
Merge pull request #2351 from antgonza/fix-2316
wasade Oct 19, 2017
19f2b07
addressing @josenavas
antgonza Oct 19, 2017
e35e838
Merge pull request #2356 from antgonza/fix-2333
josenavas Oct 19, 2017
0f44404
fixes #2245 (#2350)
josenavas Oct 19, 2017
3f4310e
Fixing Qiita installation (#2362)
josenavas Oct 19, 2017
5c49ab0
Sync-ing with master (#2367)
josenavas Oct 20, 2017
0d329b6
fix #2084 (#2365)
antgonza Oct 20, 2017
7beb06a
fix #2125 (#2366)
antgonza Oct 20, 2017
e4bb1b3
fix #2364
antgonza Oct 20, 2017
91b9e08
fix #1812
antgonza Oct 21, 2017
35b0168
add tests
antgonza Oct 21, 2017
352e9bb
flake8
antgonza Oct 21, 2017
0da47b2
populating ProcessingJob.create True
antgonza Oct 22, 2017
0dc98c6
fix more errors
antgonza Oct 22, 2017
c15303f
addressing comments from @josenavas and @stephanieorch
antgonza Oct 22, 2017
180b6d7
mv ProcessingJob.create True around
antgonza Oct 22, 2017
4d383db
Partial #2237 (#2368)
josenavas Oct 23, 2017
4105e9a
Merge pull request #2369 from antgonza/fix-2364
josenavas Oct 23, 2017
9fe81b0
fix-1591 (#2370)
antgonza Oct 23, 2017
03db962
Merge branch 'dev' of https://github.com/biocore/qiita into fix-1812
antgonza Oct 23, 2017
1fb126d
addressing @ElDeveloper and @josenavas comments
antgonza Oct 23, 2017
69b5645
Fix 2230 (#2372)
danteese Oct 23, 2017
7303611
addressing @wasade and @ElDeveloper comments
antgonza Oct 23, 2017
123ef94
fixing errors
antgonza Oct 23, 2017
c5db978
fix GUI and erros
antgonza Oct 23, 2017
aa27112
addressing @ElDeveloper comments
antgonza Oct 24, 2017
66e3b09
Merge pull request #2371 from antgonza/fix-1812
wasade Oct 24, 2017
7df64f3
rm artifacts from parameters listing
antgonza Oct 24, 2017
18bd7b6
fix flake8
antgonza Oct 24, 2017
fbde992
Merge pull request #2374 from antgonza/fix-study-list
josenavas Oct 24, 2017
b826546
fix ilike quote params
antgonza Oct 25, 2017
f0cf016
addressing @josenavas comment and adding test for job without children
antgonza Oct 25, 2017
bb82a65
fix errors
antgonza Oct 25, 2017
bee4a9b
addressing @josenavas comment
antgonza Oct 25, 2017
242741d
Merge pull request #2375 from antgonza/fix-ilike-parameters
josenavas Oct 25, 2017
0107f97
Fixing network labels (#2376)
josenavas Oct 26, 2017
5de1b5e
Update redbiom.html
adswafford Oct 27, 2017
c9bf203
Update redbiom.html
adswafford Oct 30, 2017
d1e198e
Update redbiom.html
adswafford Oct 30, 2017
735bc39
Patch 61 - transfer all parameters to str (#2379)
josenavas Oct 30, 2017
c678ff4
rm lower from redbiom
antgonza Oct 30, 2017
7a0c441
Merge pull request #2381 from antgonza/redbiom-lower
wasade Oct 31, 2017
4b3f057
Merge branch 'redbiom-help-update' of https://github.com/biocore/qiit…
antgonza Oct 31, 2017
6630cc9
fixing smal details and adding emp_release1
antgonza Oct 31, 2017
ca7810e
fixing
antgonza Oct 31, 2017
2d561f2
Merge pull request #2382 from antgonza/redbiom-help-update
josenavas Oct 31, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,3 @@ gg_13_8-*

# sphinx documentation
qiita_pet/static/doc/

# moi static files
qiita_pet/static/vendor/js/moi.js
qiita_pet/static/vendor/js/moi_list.js
1 change: 0 additions & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ Set your `QIITA_CONFIG_FP` environment variable to point to that file (into `.ba

```bash
echo "export QIITA_CONFIG_FP=$HOME/.qiita_config_test.cfg" >> ~/.bashrc
echo "export MOI_CONFIG_FP=$HOME/.qiita_config_test.cfg" >> ~/.bashrc
source ~/.bashrc
# Re-enable conda environment for qiita
source activate qiita
Expand Down
97 changes: 97 additions & 0 deletions qiita_pet/static/js/qiita.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,3 +240,100 @@ function change_artifact_name(portal_dir, artifact_id, new_name, on_success_func
}
});
}

/**
* Taken from https://goo.gl/KkQ1S4
*
* Original script information:
* @author Daniel McDonald
* @copyright Copyright 2014, biocore
* @credits Daniel McDonald, Joshua Shorenstein, Jose Navas
* @license BSD
* @version 0.1.0-dev
* @maintainer Daniel McDonald
* @email mcdonadt@colorado.edu
* @status Development
*
*
* @name qiita_websocket
*
* @class manages WebSocket for job information
*
*/

var qiita_websocket = new function () {
var
/* the server end of the websocket */
host = null,
/* the websocket */
ws = null,

/* registered callbacks */
callbacks = {},

/* the encode and decode methods used for communication */
encode = JSON.stringify,
decode = JSON.parse;

/**
*
* Registers a callback method for a given action
*
* @param {action} The associated action verb, str.
* @param {func} The associated function, function. This function must
* accept an object. Any return is ignored.
*
*/
this.add_callback = function(action, func) { callbacks[action] = func; };

/**
*
* Packages data into an object, and passes an encoded version of the
* object to the websocket.
*
* @param {action} The associated action to send, str.
* @param {data} The data to send, str or Array of str.
*/
this.send = function(action, data) {
to_send = {};
to_send[action] = data;
ws.send(encode(to_send));
};

/**
*
* Verify the browser supports websockets, and if so, initialize the
* websocket. On construction, this method will send a message over the
* socket to get all known job information associated with this client.
*
* @param {host} The URL for the websocket, minus the ws:// header, or null
* to use the default qiita_websocket-ws.
* @param {on_close} Optional function for action when websocket is closed.
* @param {on_error} Optional function for action when websocket errors.
*/
this.init = function(host, on_close, on_error) {
if (!("WebSocket" in window)) {
alert("Your browser does not appear to support websockets!");
return;
}
//check if we need regular or secure websocket
socket = window.location.protocol == "https:" ? 'wss://' : 'ws://';
ws = new WebSocket(socket + host);

// retrive all messages
var on_open_message = [];

ws.onopen = function(){};
ws.onclose = on_close;
ws.onerror = on_error;

ws.onmessage = function(evt) {
message = decode(evt.data);
for(var action in message) {
if(action in callbacks) {
callbacks[action](message[action]);
}
}
};
};
};
15 changes: 7 additions & 8 deletions qiita_pet/templates/analysis_selected.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
{% block head %}
{% from future.utils import viewitems %}
{% from itertools import chain %}
<script src="{% raw qiita_config.portal_dir %}/static/vendor/js/moi.js"></script>
<script type="text/javascript">

function error(evt) { $('#ws-error').html("<b>Server communication error. Sample removal will not be recorded. Please try again later.</b>"); };
Expand All @@ -16,7 +15,7 @@

function clear() {
if(confirm('Are you sure you want to remove all samples?')) {
moi.send('clear', {'pids': {% raw [int(p) for p in chain.from_iterable(pid.keys() for sid, pid in viewitems(sel_data))] %} });
qiita_websocket.send('clear', {'pids': {% raw [int(p) for p in chain.from_iterable(pid.keys() for sid, pid in viewitems(sel_data))] %} });
}
}

Expand All @@ -27,7 +26,7 @@

function remove_proc_data(pid, sid) {
if(confirm('Are you sure you want to remove all samples for this processed data?')) {
moi.send('remove_pd', {'proc_data': pid, 'samples': [], 'sid': sid});
qiita_websocket.send('remove_pd', {'proc_data': pid, 'samples': [], 'sid': sid});
}
}

Expand All @@ -41,7 +40,7 @@
check_empty();
}

function remove_sample(sid, pid, sample) { moi.send('remove_sample', {'proc_data': pid, 'samples': [sample], 'sid': sid}); }
function remove_sample(sid, pid, sample) { qiita_websocket.send('remove_sample', {'proc_data': pid, 'samples': [sample], 'sid': sid}); }

function remove_sample_from_html(data) {
pid = data.proc_data;
Expand All @@ -58,10 +57,10 @@
check_empty();
}
$(document).ready(function() {
moi.init(null, window.location.host + '{% raw qiita_config.portal_dir %}/analysis/selected/socket/', function(){}, error, error);
moi.add_callback('remove_pd', remove_pd_from_html);
moi.add_callback('remove_sample', remove_sample_from_html);
moi.add_callback('clear', clear_from_html);
qiita_websocket.init(window.location.host + '{% raw qiita_config.portal_dir %}/analysis/selected/socket/', error, error);
qiita_websocket.add_callback('remove_pd', remove_pd_from_html);
qiita_websocket.add_callback('remove_sample', remove_sample_from_html);
qiita_websocket.add_callback('clear', clear_from_html);
$('#clear-button').on('click', clear);
{% if sel_data %}$('#no-selected').hide(){% end %}
});
Expand Down
2 changes: 0 additions & 2 deletions qiita_pet/templates/analysis_waiting.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{% extends sitebase.html%}

{%block head%}
<script src="{% raw qiita_config.portal_dir %}/static/vendor/js/moi.js"></script>
<script src="{% raw qiita_config.portal_dir %}/static/vendor/js/moi_list.js"></script>
<script type="text/javascript">
$(document).ready(function() {
moi_list.init("{{group_id}}", undefined, window.location.host + '{% raw qiita_config.portal_dir %}/moi-ws/');
Expand Down
8 changes: 8 additions & 0 deletions qiita_pet/templates/artifact_ajax/artifact_summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@
function validate_new_name() {
$("#update-name-btn").prop('disabled', $("#new-artifact-name").val() === "");
}

$(document).ready(function() {
// Set the focus on the text input when the modal to change the artifact
// name is shown
$('#update-artifact-name').on('shown.bs.modal', function() {
$('#new-artifact-name').focus();
});
});
</script>
<div class='row'>
<div class='col-md-12'>
Expand Down
7 changes: 3 additions & 4 deletions qiita_pet/templates/list_studies.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<link rel="stylesheet" href="{% raw qiita_config.portal_dir %}/static/vendor/css/jquery.dataTables.min.css" type="text/css">
<link rel="stylesheet" href="{% raw qiita_config.portal_dir %}/static/vendor/css/select2.min.css" type="text/css">

<script src="{% raw qiita_config.portal_dir %}/static/vendor/js/moi.js"></script>
<script src="{% raw qiita_config.portal_dir %}/static/vendor/js/select2.min.js"></script>
<script src="{% raw qiita_config.portal_dir %}/static/js/sharing.js"></script>
<script src="{% raw qiita_config.portal_dir %}/static/vendor/js/tag-it.min.js" type="text/javascript" charset="utf-8"></script>
Expand All @@ -21,7 +20,7 @@
$.get('/artifact/samples/', {ids:aids})
.done(function ( data ) {
if (data['status']=='success') {
moi.send('sel', data['data']);
qiita_websocket.send('sel', data['data']);
button.value = 'Added';
$(button).removeClass("btn-info");
} else {
Expand Down Expand Up @@ -80,8 +79,8 @@
});

$("#search-waiting").hide();
moi.init(null, window.location.host + '{% raw qiita_config.portal_dir %}/study/list/socket/', function(){}, error, error);
moi.add_callback('sel', show_alert);
qiita_websocket.init(window.location.host + '{% raw qiita_config.portal_dir %}/study/list/socket/', error, error);
qiita_websocket.add_callback('sel', show_alert);
function format_biom_rows(data, row) {
var proc_data_table = '<table class="table" cellpadding="0" cellspacing="0" border="0" style="padding-left:0px;width:95%">';
proc_data_table += '<tr>';
Expand Down
35 changes: 1 addition & 34 deletions scripts/qiita-env
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
# The full license is in the file LICENSE, distributed with this software.
# -----------------------------------------------------------------------------

from sys import exit

import click

import qiita_db as qdb
Expand Down Expand Up @@ -89,44 +87,13 @@ def test(runner):
"""Test the environment

Check to make sure that basic services are up and working. These include
connectivity to postgres, redis, and the ability to submit jobs through
moi.
connectivity to postgres, and redis.

Tests are performed both on localhost and ipengines.
"""
_test(runner)


@env.command()
@click.option('--job', required=True, type=str, help='The job ID')
def job_details(job):
"""Pretty print moi job details"""
from json import loads
from redis.exceptions import ResponseError
from qiita_core.qiita_settings import r_client

try:
data = r_client.get(job)
except ResponseError:
click.echo("ID does not appear to be a job")
exit(1)

if data is None:
click.echo("Job cannot be found")
else:
data = loads(data)
for k in sorted(data):
value = data[k]

if k == 'result':
if isinstance(value, list):
value = ''.join(value)
else:
value = str(value)

click.echo("%s : %s" % (k, value))


@env.command(name="create-portal")
@click.argument('portal', required=True, type=str)
@click.argument('description', required=True, type=str)
Expand Down