From ae1fbc0c56c8732fb85b555eccd4fddb5d8e5437 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 31 Aug 2022 04:44:28 +0300 Subject: Commit missing files. --- qc_app/templates/insert_error.html | 28 ++++++++++++++++++++++++ qc_app/templates/insert_success.html | 15 +++++++++++++ qc_app/templates/stdout_output.html | 10 +++++++++ tests/test_data/average_inconsistent_columns.tsv | 7 ++++++ 4 files changed, 60 insertions(+) create mode 100644 qc_app/templates/insert_error.html create mode 100644 qc_app/templates/insert_success.html create mode 100644 qc_app/templates/stdout_output.html create mode 100644 tests/test_data/average_inconsistent_columns.tsv diff --git a/qc_app/templates/insert_error.html b/qc_app/templates/insert_error.html new file mode 100644 index 0000000..56dd195 --- /dev/null +++ b/qc_app/templates/insert_error.html @@ -0,0 +1,28 @@ +{%extends "base.html"%} + +{%block title%}Data Insertion Failure{%endblock%} + +{%block contents%} +

Insertion Failure

+ +

+ There was an error inserting data into the database +

+ +

+ Please notify the developers of this issue when you encounter it, + providing the information below. +

+ +

Debugging Information

+ + + +

STDERR Output

+
+ {{job["stderr"]}} +
+ +{%endblock%} diff --git a/qc_app/templates/insert_success.html b/qc_app/templates/insert_success.html new file mode 100644 index 0000000..4406c66 --- /dev/null +++ b/qc_app/templates/insert_success.html @@ -0,0 +1,15 @@ +{%extends "base.html"%} +{%from "stdout_output.html" import stdout_output%} + +{%block title%}Insertion Success{%endblock%} + +{%block contents%} +

Insertion Success

+ +

Data inserted successfully!

+ +

The following queries were run:

+ +{{stdout_output(job)}} + +{%endblock%} diff --git a/qc_app/templates/stdout_output.html b/qc_app/templates/stdout_output.html new file mode 100644 index 0000000..f3fcde5 --- /dev/null +++ b/qc_app/templates/stdout_output.html @@ -0,0 +1,10 @@ +{%macro stdout_output(job)%} + +

STDOUT Output

+
+ {%for line in job.get("stdout", "").split("\n\n"):%} +

{{line}}

+ {%endfor%} +
+ +{%endmacro%} diff --git a/tests/test_data/average_inconsistent_columns.tsv b/tests/test_data/average_inconsistent_columns.tsv new file mode 100644 index 0000000..77fcbeb --- /dev/null +++ b/tests/test_data/average_inconsistent_columns.tsv @@ -0,0 +1,7 @@ +ProbeSetID BXD95 BXD27 BXD98 +10608724 6.356 6.532 6.515 +10608724 6.356 6.532 6.515 +10608724 6.356 6.532 6.515 6.563 +10608724 6.356 6.532 +10608724 6.356 6.532 6.515 6.563 6.471 6.472 +10608724 6.356 6.532 6.515 \ No newline at end of file -- cgit v1.2.3