Skip to content

Commit 23cd418

Browse files
workflows table: add cylc version column (#2171)
* Add a version column to the workflow table. * Fix a problem where the "workflow-table" was not registering its subscription properly so was relying on the "workflows view" subscription for the data it needed. * Removed fields from the "workflows view" subscription that are not needed for the workflows view.
1 parent 946c1ac commit 23cd418

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

src/views/Dashboard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
6565
Workflows Table
6666
</v-list-item-title>
6767
<v-list-item-subtitle>
68-
View name, host, port, etc. of your workflows
68+
View name, host, version, etc. of your workflows
6969
</v-list-item-subtitle>
7070
</v-list-item>
7171
<v-list-item to="/user-profile" data-cy="user-settings-link">

src/views/Workflows.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@ fragment WorkflowData on Workflow {
6060
id
6161
status
6262
statusMsg
63-
owner
64-
host
65-
port
6663
stateTotals
6764
latestStateTasks(states: [
6865
"failed",

src/views/WorkflowsTable.vue

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
5454
<td>
5555
{{ item.node.status }}
5656
</td>
57+
<td>
58+
{{ item.node.cylcVersion }}
59+
</td>
5760
<td>
5861
{{ item.node.owner }}
5962
</td>
@@ -75,8 +78,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
7578
import { mapState, mapGetters } from 'vuex'
7679
import { i18n } from '@/i18n'
7780
import { mdiTable } from '@mdi/js'
78-
import subscriptionMixin from '@/mixins/subscription'
7981
import SubscriptionQuery from '@/model/SubscriptionQuery.model'
82+
import subscriptionComponentMixin from '@/mixins/subscriptionComponent'
8083
import WorkflowIcon from '@/components/cylc/gscan/WorkflowIcon.vue'
8184
import gql from 'graphql-tag'
8285
@@ -103,6 +106,7 @@ subscription Workflow {
103106
fragment WorkflowData on Workflow {
104107
id
105108
status
109+
cylcVersion
106110
owner
107111
host
108112
port
@@ -113,7 +117,7 @@ export default {
113117
name: 'WorkflowsTable',
114118
115119
mixins: [
116-
subscriptionMixin
120+
subscriptionComponentMixin,
117121
],
118122
119123
components: {
@@ -164,6 +168,11 @@ export default {
164168
title: 'Status',
165169
key: 'node.status'
166170
},
171+
{
172+
sortable: true,
173+
title: 'Cylc Version',
174+
key: 'node.cylcVersion'
175+
},
167176
{
168177
sortable: true,
169178
title: i18n.global.t('Workflows.tableColumnOwner'),

0 commit comments

Comments
 (0)