Skip to content

Commit

Permalink
pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
clairelin135 committed Mar 12, 2024
1 parent 017862e commit 76fe99a
Showing 1 changed file with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import styled from 'styled-components';
import {AssetGlobalLineageButton, AssetPageHeader} from './AssetPageHeader';
import {ASSET_CATALOG_TABLE_QUERY} from './AssetsCatalogTable';
import {fetchRecentlyVisitedAssetsFromLocalStorage} from './RecentlyVisitedAssetsStorage';
import {AssetTableDefinitionFragment} from './types/AssetTableFragment.types';
import {
AssetCatalogTableQuery,
AssetCatalogTableQueryVariables,
Expand Down Expand Up @@ -49,17 +50,10 @@ type CountPerCodeLocation = {
};

type AssetDefinitionMetadata = {
definition: {
owners: Array<
{__typename: 'UserAssetOwner'; email: string} | {__typename: 'TeamAssetOwner'; team: string}
>;
computeKind: string | null;
groupName: string | null;
repository: {
name: string;
location: {name: string};
};
} | null;
definition: Pick<
AssetTableDefinitionFragment,
'owners' | 'computeKind' | 'groupName' | 'repository'
> | null;
};

export function buildAssetCountBySection(assets: AssetDefinitionMetadata[]): AssetCountsResult {
Expand Down

0 comments on commit 76fe99a

Please sign in to comment.