diff --git a/app/assets/javascripts/ide/stores/modules/pipelines/actions.js b/app/assets/javascripts/ide/stores/modules/pipelines/actions.js index 60561292c9d..9cf8d5a360e 100644 --- a/app/assets/javascripts/ide/stores/modules/pipelines/actions.js +++ b/app/assets/javascripts/ide/stores/modules/pipelines/actions.js @@ -139,6 +139,7 @@ export const receiveJobLogsSuccess = ({ commit }, data) => export const fetchJobLogs = ({ dispatch, state }) => { dispatch('requestJobLogs'); + // update trace endpoint once BE compeletes trace re-naming in #340626 return axios .get(`${state.detailJob.path}/trace`, { params: { format: 'json' } }) .then(({ data }) => dispatch('receiveJobLogsSuccess', data)) diff --git a/app/assets/javascripts/jobs/components/job_app.vue b/app/assets/javascripts/jobs/components/job_app.vue index 059772e8cb9..2914e4918df 100644 --- a/app/assets/javascripts/jobs/components/job_app.vue +++ b/app/assets/javascripts/jobs/components/job_app.vue @@ -80,13 +80,13 @@ export default { 'isLoading', 'job', 'isSidebarOpen', - 'trace', - 'isTraceComplete', - 'traceSize', - 'isTraceSizeVisible', + 'jobLog', + 'isJobLogComplete', + 'jobLogSize', + 'isJobLogSizeVisible', 'isScrollBottomDisabled', 'isScrollTopDisabled', - 'isScrolledToBottomBeforeReceivingTrace', + 'isScrolledToBottomBeforeReceivingJobLog', 'hasError', 'selectedStage', ]), @@ -97,7 +97,7 @@ export default { 'shouldRenderTriggeredLabel', 'hasEnvironment', 'shouldRenderSharedRunnerLimitWarning', - 'hasTrace', + 'hasJobLog', 'emptyStateIllustration', 'isScrollingDown', 'emptyStateAction', @@ -155,7 +155,7 @@ export default { this.updateSidebar(); }, beforeDestroy() { - this.stopPollingTrace(); + this.stopPollingJobLog(); this.stopPolling(); window.removeEventListener('resize', this.onResize); window.removeEventListener('scroll', this.updateScroll); @@ -168,7 +168,7 @@ export default { 'toggleSidebar', 'scrollBottom', 'scrollTop', - 'stopPollingTrace', + 'stopPollingJobLog', 'stopPolling', 'toggleScrollButtons', 'toggleScrollAnimation', @@ -270,7 +270,7 @@ export default {
@@ -278,7 +278,7 @@ export default {
@@ -289,22 +289,22 @@ export default { 'has-archived-block': job.archived, }" :erase-path="job.erase_path" - :size="traceSize" + :size="jobLogSize" :raw-path="job.raw_path" :is-scroll-bottom-disabled="isScrollBottomDisabled" :is-scroll-top-disabled="isScrollTopDisabled" - :is-trace-size-visible="isTraceSizeVisible" + :is-job-log-size-visible="isJobLogSizeVisible" :is-scrolling-down="isScrollingDown" @scrollJobLogTop="scrollTop" @scrollJobLogBottom="scrollBottom" /> - +
- diff --git a/app/assets/javascripts/jobs/components/log/log.vue b/app/assets/javascripts/jobs/components/log/log.vue index 0134e5dafe8..ef95d79b8ab 100644 --- a/app/assets/javascripts/jobs/components/log/log.vue +++ b/app/assets/javascripts/jobs/components/log/log.vue @@ -10,10 +10,10 @@ export default { }, computed: { ...mapState([ - 'traceEndpoint', - 'trace', - 'isTraceComplete', - 'isScrolledToBottomBeforeReceivingTrace', + 'jobLogEndpoint', + 'jobLog', + 'isJobLogComplete', + 'isScrolledToBottomBeforeReceivingJobLog', ]), }, updated() { @@ -39,7 +39,7 @@ export default { * In order to scroll the page down after `v-html` has finished, we need to use setTimeout */ handleScrollDown() { - if (this.isScrolledToBottomBeforeReceivingTrace) { + if (this.isScrolledToBottomBeforeReceivingJobLog) { setTimeout(() => { this.scrollBottom(); }, 0); @@ -50,18 +50,18 @@ export default {