Skip to content
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

fix(ui): Fixed reconnection hot-loop. Fixes #4580 #4663

Merged
merged 2 commits into from Dec 9, 2020

Conversation

alexec
Copy link
Contributor

@alexec alexec commented Dec 7, 2020

Signed-off-by: Alex Collins alex_collins@intuit.com
Fixes #4580

Checklist:

Signed-off-by: Alex Collins <alex_collins@intuit.com>
@alexec
Copy link
Contributor Author

alexec commented Dec 7, 2020

PR in draft mode pending end-user testing.

@@ -134,8 +134,12 @@ export class WorkflowDetails extends React.Component<RouteComponentProps<any>, W
)
}}>
<div className={classNames('workflow-details', {'workflow-details--step-node-expanded': !!selectedNode})}>
{(this.selectedTabKey === 'summary' && this.renderSummaryTab()) ||
(this.state.workflow && (
{this.state.error ? (
Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved error higher up the render stack

@@ -337,7 +340,7 @@ export class WorkflowDetails extends React.Component<RouteComponentProps<any>, W
.map(changeEvent => changeEvent.object)
.subscribe(
workflow => this.setState({workflow, error: null}),
error => this.setState({error}, () => this.loadWorkflow(namespace, name))
error => this.setState({error})
Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed hot-loop

@alexec alexec marked this pull request as ready for review December 8, 2020 18:39
@alexec alexec requested a review from simster7 December 8, 2020 18:39
@alexec
Copy link
Contributor Author

alexec commented Dec 8, 2020

PR ready for review as end user testing has been successful.

There maybe another PR to address the "resource version too old" problem.

@alexec alexec merged commit 9becf30 into argoproj:master Dec 9, 2020
@alexec alexec deleted the ui-err branch December 9, 2020 16:40
alexec added a commit that referenced this pull request Dec 9, 2020
Signed-off-by: Alex Collins <alex_collins@intuit.com>
@simster7
Copy link
Member

Back-ported to v2.12.0-rc5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Argo Server UI repeatedly requests resource with too old version
2 participants