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): Reconnect to DAG. Fixes #4301 #4378

Merged
merged 2 commits into from
Oct 27, 2020
Merged

Conversation

alexec
Copy link
Contributor

@alexec alexec commented Oct 26, 2020

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

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
  • The title of the PR is (a) conventional, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
  • My organization is added to USERS.md.
  • I've signed the CLA.
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My builds are green. Try syncing with master if they are not.

Signed-off-by: Alex Collins <alex_collins@intuit.com>
…details.tsx

Signed-off-by: Alex Collins <alex_collins@intuit.com>
@alexec alexec marked this pull request as ready for review October 27, 2020 17:48
@alexec alexec linked an issue Oct 27, 2020 that may be closed by this pull request
@@ -47,6 +47,10 @@ export class WorkflowDetails extends React.Component<RouteComponentProps<any>, W
private changesSubscription: Subscription;
private timelineComponent: WorkflowTimeline;

private get resourceVersion() {
return this.state.workflow && this.state.workflow.metadata.resourceVersion;
Copy link
Member

@simster7 simster7 Oct 27, 2020

Choose a reason for hiding this comment

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

If this.state.workflow.metadata === null, then we could have a NPE

Copy link
Contributor Author

@alexec alexec Oct 27, 2020

Choose a reason for hiding this comment

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

I don't think this.state.workflow.metadata could ever be null? That would be an anonymous resource. I don't think you can have them?

Copy link
Member

Choose a reason for hiding this comment

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

Even so, it would probably be good for our code to be tolerant

Copy link
Member

Choose a reason for hiding this comment

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

Up to you

@alexec alexec merged commit ddd45b6 into argoproj:master Oct 27, 2020
@alexec alexec deleted the ui-prog branch October 27, 2020 21:01
alexec added a commit that referenced this pull request Oct 27, 2020
Signed-off-by: Alex Collins <alex_collins@intuit.com>
alexcapras pushed a commit to alexcapras/argo that referenced this pull request Nov 12, 2020
Signed-off-by: Alex Collins <alex_collins@intuit.com>
Signed-off-by: Alex Capras <alexcapras@gmail.com>
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.

View Workflow Page Not Receiving Progress Updates
2 participants