Skip to content

Commit

Permalink
fix: update prop names for process api (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoval authored Nov 21, 2022
1 parent 8fed6ac commit 8cd0b41
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/API/REST.interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ export type ProcessGroupResponse = EntityBaseResponse & EntityMetricsResponse;

export interface ProcessResponse extends EntityBaseResponse, EntityMetricsResponse {
parent: string;
siteName: string; // parent is siteId
parentName: string;
groupIdentity: string;
group: string;
groupName: string;
imageName: string;
sourceHost: string;
hostName: string;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Addresses/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const AddressesController = {
port: destPort,
imageName: process.imageName,
groupId: process.groupIdentity,
groupName: process.group,
groupName: process.groupName,
bytes: process.octetsSent,
byteRate: process.octetSentRate,
};
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Processes/components/ProcessesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const ProcessesTable: FC<ProcessesTableProps> = function ({ processes }) {
},
{
name: ProcessesTableColumns.Site,
prop: 'siteName' as keyof ProcessResponse,
prop: 'parentName' as keyof ProcessResponse,
component: 'linkCellSite',
},
];
Expand Down
8 changes: 4 additions & 4 deletions src/pages/Processes/views/Process.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ const Process = function () {

const {
parent,
siteName,
parentName,
name,
imageName,
group,
groupName,
groupIdentity,
sourceHost,
hostName,
Expand Down Expand Up @@ -129,7 +129,7 @@ const Process = function () {
<DescriptionListDescription>
<ResourceIcon type="site" />
<Link to={`${SitesRoutesPaths.Sites}/${parent}`}>
{siteName}
{parentName}
</Link>
</DescriptionListDescription>
</DescriptionListGroup>
Expand All @@ -144,7 +144,7 @@ const Process = function () {
<Link
to={`${ProcessGroupsRoutesPaths.ProcessGroups}/${groupIdentity}`}
>
{group}
{groupName}
</Link>
</DescriptionListDescription>
</DescriptionListGroup>
Expand Down

0 comments on commit 8cd0b41

Please sign in to comment.