Skip to content

Commit

Permalink
Merge pull request #13137 from richard-cox/fix-fleet-bundles-2.10
Browse files Browse the repository at this point in the history
Fix gitrepo bundle list and bundle list when there's a gitrepo that does not contain a summary
  • Loading branch information
richard-cox authored Jan 16, 2025
2 parents 6632b97 + 9d8b5fa commit 946fd38
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"e2e:dev": "START_SERVER_AND_TEST_INSECURE=1 server-test start:dev https-get://localhost:8005 cy:run:sorry",
"e2e:build": "mkdir dist && TEST_INSTRUMENT=false ./scripts/build-e2e",
"e2e:docker": "yarn docker:local:stop && ./scripts/e2e-docker-start $RANCHER_VERSION_E2E",
"e2e:prod": "BUILD_DASHBOARD=$BUILD_DASHBOARD GREP_TAGS=$GREP_TAGS TEST_USERNAME=$TEST_USERNAME TEST_BASE_URL=https://127.0.0.1/dashboard yarn cy:run:sorry",
"e2e:prod": "BUILD_DASHBOARD=$BUILD_DASHBOARD GREP_TAGS=$GREP_TAGS TEST_USERNAME=$TEST_USERNAME TEST_BASE_URL=https://127.0.0.1/dashboard yarn cy:run",
"coverage": "npx nyc merge coverage coverage/coverage.json",
"storybook": "cd storybook && yarn storybook",
"build-storybook": "cd storybook && yarn install --no-lockfile && NODE_OPTIONS=--max_old_space_size=4096 yarn build-storybook --quiet",
Expand Down
3 changes: 2 additions & 1 deletion shell/components/fleet/FleetBundles.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ export default {
class="text-warning"
>
{{ row.status.summary.ready }}/{{ row.status.summary.desiredReady }}</span>
<span v-else-if="row.status">{{ row.status.summary.desiredReady }}</span>
<span v-else-if="row.status && row.status.summary">{{ row.status.summary.desiredReady }}</span>
<span v-else>-</span>
</template>
</ResourceTable>
</div>
Expand Down
4 changes: 2 additions & 2 deletions shell/list/fleet.cattle.io.bundle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ export default {
>
<template #cell:deploymentsReady="{row}">
<span
v-if="row.status && (row.status.summary.desiredReady !== row.status.summary.ready)"
v-if="row.status && row.status.summary && (row.status.summary.desiredReady !== row.status.summary.ready)"
class="text-warning"
>
{{ row.status.summary.ready }}/{{ row.status.summary.desiredReady }}</span>
<span v-else-if="row.status">{{ row.status.summary.desiredReady }}</span>
<span v-else-if="row.status && row.status.summary">{{ row.status.summary.desiredReady }}</span>
<span v-else>-</span>
</template>
</ResourceTable>
Expand Down

0 comments on commit 946fd38

Please sign in to comment.