From 0ed9c897782653ffbb47f7268dd2715774de15ae Mon Sep 17 00:00:00 2001 From: Bryan Brancotte Date: Thu, 19 May 2022 11:26:02 +0200 Subject: [PATCH 1/7] Add queue status as a menu entry, remove it from projects, add dedicated page --- client/layouts/default.vue | 31 +++++++++++++ client/pages/projects/_id.vue | 23 ---------- client/pages/workload.vue | 82 +++++++++++++++++++++++++++++++++++ 3 files changed, 113 insertions(+), 23 deletions(-) create mode 100644 client/pages/workload.vue diff --git a/client/layouts/default.vue b/client/layouts/default.vue index 05ffa73..fb27c0a 100644 --- a/client/layouts/default.vue +++ b/client/layouts/default.vue @@ -24,6 +24,18 @@ :key="i" :to="item.to" v-text="item.title"> + + + @@ -38,6 +50,8 @@ export default { data () { return { + activeTask: null, + pendingTask: null, clipped: false, drawer: false, fixed: false, @@ -125,6 +139,23 @@ export default { ], }, } + }, + created(){ + this.getQueueStatus(); + }, + methods:{ + async getQueueStatus(){ + if (this.isready) + return; + await this.$axios.$get('/queue_status').then((function (resultStatus) { + console.log(resultStatus); + this.activeTask = resultStatus.active; + this.pendingTask = resultStatus.reserved; + setTimeout(this.getQueueStatus, 5000); + }).bind(this)).catch((function () { + setTimeout(this.getQueueStatus, 10000); + }).bind(this)); + }, } } diff --git a/client/pages/projects/_id.vue b/client/pages/projects/_id.vue index d8dc4c4..7ff2474 100644 --- a/client/pages/projects/_id.vue +++ b/client/pages/projects/_id.vue @@ -29,13 +29,6 @@ {{progress}} % - - Task: {{activeTask}} running and {{pendingTask}} pending. - @@ -304,8 +297,6 @@ export default { isready: false, isready2: false, progress:0, - activeTask: 1, - pendingTask: 0, gencov:null, metadata:{"nb_phenotypes":0,"nb_snps":0}, summary:{"JASSSignif":{"MinUnivNotSignif":0,"MinUnivSignif":0},"JASSNotSignif":{"MinUnivNotSignif":0,"MinUnivSignif":0}}, @@ -316,7 +307,6 @@ export default { created(){ this.status = this.getStatus(); - this.getQueueStatus(); }, @@ -570,19 +560,6 @@ methods:{ this.Regions=this.manhattan.data.datarows }, - async getQueueStatus(){ - if (this.isready) - return; - await this.$axios.$get('/queue_status').then((function (resultStatus) { - console.log(resultStatus); - this.activeTask = resultStatus.active; - this.pendingTask = resultStatus.reserved; - setTimeout(this.getQueueStatus, 5000); - }).bind(this)).catch((function () { - setTimeout(this.getQueueStatus, 10000); - }).bind(this)); - }, - async getStatus(){ diff --git a/client/pages/workload.vue b/client/pages/workload.vue new file mode 100644 index 0000000..5614f63 --- /dev/null +++ b/client/pages/workload.vue @@ -0,0 +1,82 @@ + + + -- GitLab From f2b3e6b8c0c16b613fe678a7ed6f8de3062d6542 Mon Sep 17 00:00:00 2001 From: Bryan Brancotte Date: Fri, 20 May 2022 13:36:18 +0200 Subject: [PATCH 2/7] will->would --- client/pages/workload.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/pages/workload.vue b/client/pages/workload.vue index 5614f63..4ed00fe 100644 --- a/client/pages/workload.vue +++ b/client/pages/workload.vue @@ -37,13 +37,13 @@ v-if="activeTask===0" style="text-align:center" cols=12> - Your analysis will start right away. + Your analysis would start right away. - Your analysis will be queued, and processed as soon as possible. + Your analysis would be queued, and processed as soon as possible. Date: Fri, 20 May 2022 13:36:53 +0200 Subject: [PATCH 3/7] speed-dial can already be the top element, put it on top of its parent --- client/components/ShareLink.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client/components/ShareLink.vue b/client/components/ShareLink.vue index 55bc38a..d5b1408 100644 --- a/client/components/ShareLink.vue +++ b/client/components/ShareLink.vue @@ -1,6 +1,5 @@