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): source can in fact be undefined (cherry-pick #20381) #20418

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

gcp-cherry-pick-bot[bot]
Copy link

Cherry-picked fix(ui): source can in fact be undefined (#20381)

  • fix(ui): source can in fact be undefined

The assumption that a source is always there is not always true. To
repro, create an app-of-apps containing a single app without any source
present. In the UI this will crash, horribly. This PR fixes that so
that instead of crashing the user will get useful info indicating what
is wrong with the app.

Signed-off-by: Blake Pettersson blake.pettersson@gmail.com

  • chore(ui): some cr tweaks

Signed-off-by: Blake Pettersson blake.pettersson@gmail.com

  • chore(ui): some cr tweaks

Signed-off-by: Blake Pettersson blake.pettersson@gmail.com


Signed-off-by: Blake Pettersson blake.pettersson@gmail.com

* fix(ui): source can in fact be `undefined`

The assumption that a source is always there is not always true. To
repro, create an app-of-apps containing a single app without any `source`
present. In the UI this will crash, horribly. This PR fixes that so
that instead of crashing the user will get useful info indicating what
is wrong with the app.

Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>

* chore(ui): some cr tweaks

Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>

* chore(ui): some cr tweaks

Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>

---------

Signed-off-by: Blake Pettersson <blake.pettersson@gmail.com>
@gcp-cherry-pick-bot gcp-cherry-pick-bot bot requested a review from a team as a code owner October 17, 2024 08:03
@ishitasequeira ishitasequeira merged commit 262c8fa into release-2.13 Oct 17, 2024
18 of 19 checks passed
@ishitasequeira ishitasequeira deleted the cherry-pick-82e9b5-release-2.13 branch October 17, 2024 11:59
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.

2 participants