-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix: Check for skipped state in task run table to fix endless duration #1134
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good. But lets DRY up the logic by creating some utility functions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/pages/Task/TaskRunTable-Tile.vue
Outdated
@@ -71,7 +72,11 @@ export default { | |||
return `%${this.searchTerm}%` | |||
} | |||
}, | |||
methods: {}, | |||
methods: { | |||
durationCalc(startTime, endTime, state) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I would import the method with this full name calculateDuration
, and rather than using another name here but calling the imported method I would just make it available to the template with
methods: {
calculateDuration
}
which should work fine since the arguments do not change
@@ -75,7 +76,11 @@ export default { | |||
return `%${this.searchTerm}%` | |||
} | |||
}, | |||
methods: {}, | |||
methods: { | |||
durationCalc(startTime, endTime, state) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same suggestion here
added method to task run details tile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ThatGalNatalie
PR Checklist:
CHANGELOG.md
Describe this PR
Resolves #1110