Skip to content

Commit

Permalink
Merge pull request #1039 from janhoon/fix/argo-frontend-helm
Browse files Browse the repository at this point in the history
fix(argo-frontend-plugin): skip helm revision metadata
  • Loading branch information
Xantier authored Jul 21, 2023
2 parents 42ae767 + 0fe8b68 commit e2a2c7a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/cool-coins-protect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@roadiehq/backstage-plugin-argo-cd': patch
---

Fix for cases where argo application history source is Helm, which would cause revision metadata api to return 500
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ export const useAppDetails = ({
const promises: Promise<void>[] | undefined =
appDetails.status?.history?.map(async (historyRecord: any) => {
const revisionID = historyRecord.revision;
if (historyRecord.source?.chart !== undefined) {
historyRecord.revision = { revisionID: revisionID };
return;
}
const revisionDetails = await api.getRevisionDetails({
url,
app,
Expand Down

0 comments on commit e2a2c7a

Please sign in to comment.