Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/biocore/qiita into fix-1951
Browse files Browse the repository at this point in the history
  • Loading branch information
antgonza committed Sep 28, 2016
2 parents 9ca2437 + 8f65432 commit 50e65f2
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
9 changes: 8 additions & 1 deletion qiita_db/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,14 @@ def info(self):
logging_id = %s""".format(self._table)
qdb.sql_connection.TRN.add(sql, [self.id])

return loads(qdb.sql_connection.TRN.execute_fetchlast())
rows = qdb.sql_connection.TRN.execute_fetchlast()

if rows:
results = loads(rows)
else:
results = {}

return results

@property
def msg(self):
Expand Down
3 changes: 2 additions & 1 deletion qiita_db/support_files/populate_test_db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,8 @@ INSERT INTO qiita.message_user (message_id, email) VALUES (1, 'test@foo.bar'),(1

-- Create a loggin entry
INSERT INTO qiita.logging (time, severity_id, msg, information)
VALUES ('Sun Nov 22 21:29:30 2015', 2, 'Error message', '{}');
VALUES ('Sun Nov 22 21:29:30 2015', 2, 'Error message', NULL),
('Sun Nov 22 21:29:30 2015', 2, 'Error message', '{}');

-- Create some processing jobs
INSERT INTO qiita.processing_job
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ We support the following values: *Not applicable*, *Missing: Not collected*, *Mi

For the latest definitions and explanation visit the `EBI/ENA Missing value reporting <http://www.ebi.ac.uk/ena/about/missing-values-reporting>`__.

.. warning::
Column names in your information files cannot be named as a Postgres reserved word. For example, a column cannot be named `CONDITION`, but could instead be named `DISEASE_CONDITION`. For a full list of these reserved words, see this `link <https://www.postgresql.org/docs/9.3/static/sql-keywords-appendix.html>`__.

Sample information file
-----------------------

Expand Down
12 changes: 10 additions & 2 deletions qiita_pet/templates/study_ajax/prep_summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
var options = {
nodes: {
color: '#ffffff',
font: '16px arial black'
font: '14px arial black'
},
layout : {
hierarchical: {
Expand Down Expand Up @@ -202,7 +202,15 @@
nodes.push({id: data.node_labels[i][0], label: data.node_labels[i][1], shape: 'box'});
}

$("#graph-or-new-artifact-div").html("<div class='row'><div class='col-md-12'><h4><a class='btn btn-info' id='show-hide-btn' onclick='toggle_graphs();'>-</a><i> Files network</i></h4>(Click nodes for more information)</div></div><div class='row'><div class='col-md-12 graph' id='graph-network-div'></div></div>");
$("#graph-or-new-artifact-div").html(
"<div class='row'>" +
"<div class='col-md-12'>" +
"<h4><a class='btn btn-info' id='show-hide-btn' onclick='toggle_graphs();'>-</a><i> Files network</i></h4>" +
"<b>(Click nodes for more information)</b>" +
"</div>" +
"</div>" +
"<div class='row'><div class='col-md-12 graph' style='width:90%; left:20px;' id='graph-network-div'>" +
"</div>");
draw_graph(nodes, edges, "graph-network-div", function(params) {
if(params.nodes.length === 1) {
var artifact_id = +params.nodes[0];
Expand Down

0 comments on commit 50e65f2

Please sign in to comment.