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

Add guards against nil derefernce panics in job/task CLI commands #4867

Merged
merged 2 commits into from
Aug 7, 2023

Conversation

catsby
Copy link
Member

@catsby catsby commented Aug 3, 2023

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.

@catsby catsby added pr/no-changelog No automatic changelog entry required for this pull request core/cli labels Aug 3, 2023
@catsby catsby requested a review from a team as a code owner August 3, 2023 20:43
@github-actions github-actions bot added the core label Aug 3, 2023
@catsby catsby removed the pr/no-changelog No automatic changelog entry required for this pull request label Aug 3, 2023
@catsby catsby merged commit 7958a15 into main Aug 7, 2023
41 of 42 checks passed
@catsby catsby deleted the job_guard_nil_app branch August 7, 2023 16:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants