Skip to content

Commit

Permalink
fix(ui): missing manifests and logs (#9231) (#9257)
Browse files Browse the repository at this point in the history
* fix(ui): missing manifests and logs (#9231)

Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>

* more group fixes

Signed-off-by: Michael Crenshaw <michael@crenshaw.dev>
  • Loading branch information
crenshaw-dev authored May 3, 2022
1 parent 1d765a0 commit 0e12c3d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ui/src/app/shared/services/applications-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export class ApplicationsService {
resourceName: resource.name,
version: resource.version,
kind: resource.kind,
group: resource.group
group: resource.group || '' // The group query param must be present even if empty.
})
.then(res => res.body as {manifest: string})
.then(res => JSON.parse(res.manifest) as models.State);
Expand Down Expand Up @@ -280,7 +280,7 @@ export class ApplicationsService {
resourceName: resource.name,
version: resource.version,
kind: resource.kind,
group: resource.group,
group: resource.group || '', // The group query param must be present even if empty.
patchType
})
.send(JSON.stringify(patch))
Expand All @@ -297,7 +297,7 @@ export class ApplicationsService {
resourceName: resource.name,
version: resource.version,
kind: resource.kind,
group: resource.group,
group: resource.group || '', // The group query param must be present even if empty.
force,
orphan
})
Expand Down Expand Up @@ -355,9 +355,7 @@ export class ApplicationsService {
const search = new URLSearchParams();
search.set('container', containerName);
search.set('namespace', namespace);
if (follow) {
search.set('follow', follow.toString());
}
search.set('follow', follow.toString());
if (podName) {
search.set('podName', podName);
} else {
Expand All @@ -377,6 +375,8 @@ export class ApplicationsService {
if (previous) {
search.set('previous', previous.toString());
}
// The API requires that this field be set to a non-empty string.
search.set('sinceSeconds', '0');
return search;
}

Expand Down

0 comments on commit 0e12c3d

Please sign in to comment.