Skip to content

Conversation

@jbrockopp
Copy link
Contributor

@jbrockopp jbrockopp commented Oct 15, 2021

Based off of #471

Related to go-vela/community#364

This issue was discovered in the latest RC:

https://github.com/go-vela/server/releases/tag/v0.10.0-rc2

When navigating to a repo in the Vela UI with no deployments, you'll see a TOAST error message:

image

Unfortunately, this error message will be displayed even when you are not on the Deployments tab in the UI.

If you navigate to the Deployments tab in the UI, you'll see an "infinite" spinning wheel with the TOAST error message:

image

The reason for this issue is due to us creating an empty slice of deployments as a variable dWithBs:

var dWithBs []*library.Deployment

However, we never actually initialize that variable which causes a null value to be returned by the server to the UI:

c.JSON(http.StatusOK, dWithBs)

@jbrockopp jbrockopp added the bug Indicates a bug label Oct 15, 2021
@jbrockopp jbrockopp requested a review from a team as a code owner October 15, 2021 15:12
Copy link
Contributor

@KellyMerrick KellyMerrick left a comment

Choose a reason for hiding this comment

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

lgtm

@jbrockopp jbrockopp merged commit a2768e0 into master Oct 15, 2021
@jbrockopp jbrockopp deleted the fix/api/deployments branch October 15, 2021 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Indicates a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants