Skip to content

fix: fix some bugs#3734

Merged
klesh merged 1 commit intoapache:mainfrom
merico-ai:issues/3733
Nov 15, 2022
Merged

fix: fix some bugs#3734
klesh merged 1 commit intoapache:mainfrom
merico-ai:issues/3733

Conversation

@likyh
Copy link
Copy Markdown
Contributor

@likyh likyh commented Nov 14, 2022

Summary

summary write at comments

Does this close any open issues?

Closes #3733
Closes #3640
Closes #3522
Closes #3490

}, [])

const fetchAllPipelines = useCallback((status = null, fetchTimeout = 500) => {
const fetchAllPipelines = useCallback((blueprintId, status = null, fetchTimeout = 500) => {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

related to #3733

}
}, [])

const fetchPipeline = useCallback((pipelineID, refresh = false) => {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refresh hasn't been used and I don't know what it means. so it has been deleted.


useEffect(() => {
setActiveStage(stages[sK])
console.log('>> ACTIVE STAGE LANE', stages[sK])
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

related to #3490

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice job.

fetchPipeline(activePipeline?.id)
// setLastPipeline(activePipeline)
}, pollTimer)
return () => {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

related to #3640.
add a return func to cancel setInterval.

...cR,
startedAt: activePipeline?.beganAt
? dayjs(activePipeline?.beganAt).format('L LTS')
id: activePipeline.id,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

related to #3522.
delete lastPipeline and replace with activePipeline

@likyh likyh requested a review from mintsweet November 14, 2022 11:49
@likyh likyh added this to the v0.15.0 milestone Nov 14, 2022
Copy link
Copy Markdown
Member

@mintsweet mintsweet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.


useEffect(() => {
setActiveStage(stages[sK])
console.log('>> ACTIVE STAGE LANE', stages[sK])
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice job.

@klesh klesh merged commit 1fe8f24 into apache:main Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants