Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Backport of Add guards against nil derefernce panics in job/task CLI commands into release/0.11.x #4874

Conversation

hc-github-team-waypoint
Copy link
Collaborator

Backport

This PR is auto-generated from #4867 to be assessed for backporting due to the inclusion of the label backport/0.11.x.

The below text is copied from the body of the original PR.


If a project has been destroyed, both the project and app are removed from the state. Jobs and Tasks still reference things by application ID and if null in the state are being set to nil in the gRPC response.

In this PR we simply guard against nil values when outputting to the CLI. We assume a nil Project/Application means the project/application was deleted. If we use "" instead then these columns will simply not show in the output, so we felt it should be explicit that those projects/applications have been deleted.


Overview of commits

@hc-github-team-waypoint hc-github-team-waypoint merged commit 88f9993 into release/0.11.x Aug 8, 2023
@hc-github-team-waypoint hc-github-team-waypoint force-pushed the backport/job_guard_nil_app/especially-certain-eel branch from c2cfd25 to 1f8064a Compare August 8, 2023 20:04
@hc-github-team-waypoint hc-github-team-waypoint deleted the backport/job_guard_nil_app/especially-certain-eel branch August 8, 2023 20:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant