Skip to content

Commit

Permalink
Merge branch 'master' into flow-table-max-items
Browse files Browse the repository at this point in the history
  • Loading branch information
znicholasbrown authored Sep 2, 2021
2 parents e308302 + c39ab61 commit 11aa4ab
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 42 deletions.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@
### Features and Improvements

- Increase default number of flows shown in the flow table - [#1027](https://github.com/PrefectHQ/ui/pull/1027)
- Remove global max width on dashboard etc screens - [#1026](https://github.com/PrefectHQ/ui/pull/1026)
- Route to task run page on timeline click - [#1024](https://github.com/PrefectHQ/ui/pull/1024)
- Remove references to unused task attributes - [#1011](https://github.com/PrefectHQ/ui/pull/1011)

### Bugfixes

- Remove parent query from task run page - [#1025](https://github.com/PrefectHQ/ui/pull/1025)
- Fix issue where Skipped flow runs incorrectly displayed end_time and duration data - [#1030](https://github.com/PrefectHQ/ui/pull/1030)
- Stop role reset in the team member invite dialog - [#1019](https://github.com/PrefectHQ/ui/pull/1019)

## 2021-08-18
Expand Down
1 change: 0 additions & 1 deletion src/components/NavTabBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ export default {
$vuetify.breakpoint.smAndDown ? 'tabs-hidden' : '',
pageScrolled ? 'elevation-4' : ''
]"
style="max-width: 1440px;"
>
<v-tabs-slider color="blue"></v-tabs-slider>
<template v-for="tb in mainTabs">
Expand Down
8 changes: 7 additions & 1 deletion src/components/TimelineTooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@ export default {
</span>
</div>

<div v-if="props.tooltip.data.start_time" class="text-subtitle-1">
<div
v-if="
props.tooltip.data.start_time &&
(props.tooltip.data.end_time || !props.tooltip.data.finished)
"
class="text-subtitle-1"
>
Duration:
<component
:is="$options.components.DurationSpan"
Expand Down
12 changes: 0 additions & 12 deletions src/graphql/TaskRun/parent.gql

This file was deleted.

3 changes: 1 addition & 2 deletions src/layouts/SubPageNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ export default {
:class="{
'justify-center': $vuetify.breakpoint.smAndDown
}"
style="height: 64px;
max-width: 1440px;"
style="height: 64px;"
>
<v-col :sm="$slots['page-actions'] ? 6 : 12" class="d-flex align-end">
<div class="mr-2">
Expand Down
4 changes: 2 additions & 2 deletions src/layouts/TileLayout-Alternate.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<v-container fluid style="max-width: 1440px;" class="mx-auto pt-0 px-3 pb-12">
<v-sheet fluid color="transparent" class="mx-auto pt-0 px-3 pb-12">
<v-row no-gutters>
<v-col cols="12" md="4" class="py-0">
<v-row v-if="$slots['col-1-tile-1']" class="justify-start">
Expand Down Expand Up @@ -87,5 +87,5 @@
</v-row>
</v-col>
</v-row>
</v-container>
</v-sheet>
</template>
4 changes: 2 additions & 2 deletions src/layouts/TileLayout-Full.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<v-container style="max-width: 1440px;" class="pt-0 pb-12">
<v-sheet color="transparent" class="pt-0 pb-12">
<v-row v-if="$slots['row-1-tile']" no-gutters>
<v-col cols="12" class="pb-0">
<v-row>
Expand All @@ -21,5 +21,5 @@
</v-row>
</v-col>
</v-row>
</v-container>
</v-sheet>
</template>
7 changes: 5 additions & 2 deletions src/mixins/flowRunHistoryMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const flowRunHistoryMixin = {
let end = new Date(d.end_time),
start = new Date(d.start_time)
d.duration = end - start
} else if (d.start_time) {
} else if (d.start_time && notPastRunStates.includes(d.state)) {
let now = new Date(),
start = new Date(d.start_time)
d.duration = now - start
Expand All @@ -113,11 +113,14 @@ export const flowRunHistoryMixin = {
if (
!d.end_time &&
d.start_time &&
!notPastRunStates.includes(d.state)
!notPastRunStates.includes(d.state) &&
d.state !== 'Skipped'
) {
d.end_time = new Date()
}

d.finished = !notPastRunStates.includes(d.state)

// We do the same for running flows without start_time
if (!d.start_time && d.state == 'Running') {
d.start_time = new Date()
Expand Down
1 change: 0 additions & 1 deletion src/pages/Agents/AgentPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ export default {
<v-tabs-items
v-model="tab"
class="px-6 mx-auto tabs-border-bottom tab-full-height"
style="max-width: 1440px;"
:style="{
'padding-top': $vuetify.breakpoint.smOnly ? '30px' : '80px'
}"
Expand Down
3 changes: 0 additions & 3 deletions src/pages/Dashboard/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,6 @@ export default {
<v-tabs-items
v-model="tab"
class="px-6 mx-auto tabs-border-bottom tab-full-height"
style="
max-width: 1440px;
"
:style="{
'padding-top': $vuetify.breakpoint.smOnly ? '80px' : '130px'
}"
Expand Down
1 change: 0 additions & 1 deletion src/pages/Flow/Flow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,6 @@ export default {
v-model="tab"
v-if="flowGroup"
class="px-6 mx-auto tabs-border-bottom tab-full-height"
style="max-width: 1440px;"
:style="{
'padding-top': $vuetify.breakpoint.smOnly ? '80px' : '130px'
}"
Expand Down
1 change: 0 additions & 1 deletion src/pages/FlowRun/FlowRun.vue
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,6 @@ export default {
v-model="tab"
class="px-6 mx-auto tabs-border-bottom tab-full-height"
:style="{
'max-width': tab == 'chart' ? 'auto' : '1440px',
'padding-top': $vuetify.breakpoint.smOnly ? '80px' : '130px'
}"
mandatory
Expand Down
1 change: 0 additions & 1 deletion src/pages/Task/Task.vue
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@ export default {
<v-tabs-items
v-model="tab"
class="px-6 mx-auto tabs-border-bottom tab-full-height"
style="max-width: 1440px;"
:style="
$vuetify.breakpoint.mdAndUp ? 'padding-top: 130px' : 'padding-top: 80px'
"
Expand Down
13 changes: 0 additions & 13 deletions src/pages/TaskRun/TaskRun.vue
Original file line number Diff line number Diff line change
Expand Up @@ -188,18 +188,6 @@ export default {
loadingKey: 'loading',
pollInterval: 5000,
update: data => data.task_run_by_pk || 'not-found'
},
parent: {
query: require('@/graphql/TaskRun/parent.gql'),
variables() {
return {
taskId: this.taskRun ? this.taskRun.task.id : null,
flowRunId: this.taskRun ? this.taskRun.flow_run.id : null
}
},
loadingKey: 'loading',
pollInterval: 5000,
update: data => (data.task_run ? data.task_run.length : null)
}
}
}
Expand Down Expand Up @@ -276,7 +264,6 @@ export default {
<v-tabs-items
v-model="tab"
class="px-6 mx-auto tabs-border-bottom tab-full-height"
style="max-width: 1440px;"
:style="{
'padding-top': $vuetify.breakpoint.smOnly ? '80px' : '130px'
}"
Expand Down

0 comments on commit 11aa4ab

Please sign in to comment.