Skip to content

Commit

Permalink
Update source/destination copy and hide system dependency column (#3057)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAndrewJackson authored Apr 13, 2023
1 parent 8558b80 commit 9ec160d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion clients/admin-ui/src/features/datamap/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ export const SYSTEM_PRIVACY_DECLARATION_DATA_SUBJECTS_RIGHTS_AVAILABLE =
export const SYSTEM_PRIVACY_DECLARATION_NAME =
"system.privacy_declaration.name";

export const SYSTEM_INGRESS = "system.ingress";
export const SYSTEM_EGRESS = "system.egress";

type NameMap = {
[column: string]: string;
};
Expand All @@ -64,7 +67,6 @@ COLUMN_NAME_MAP[DATA_CATEGORY_COLUMN_ID] = "Data Category";
COLUMN_NAME_MAP[SYSTEM_PRIVACY_DECLARATION_DATA_SUBJECTS_NAME] = "Data Subject";
COLUMN_NAME_MAP[SYSTEM_PRIVACY_DECLARATION_DATA_SUBJECTS_RIGHTS_AVAILABLE] =
"Data Subject Rights";
COLUMN_NAME_MAP[SYSTEM_SYSTEM_DEPENDENCIES] = "Data Flow";
COLUMN_NAME_MAP[DATASET_NAME] = "Datasets";
COLUMN_NAME_MAP[SYSTEM_ADMINISTRATING_DEPARTMENT] = "Department";
COLUMN_NAME_MAP[SYSTEM_DATA_RESPONSIBILITY_TITLE] = "Responsibility";
Expand All @@ -86,6 +88,8 @@ COLUMN_NAME_MAP[
SYSTEM_PRIVACY_DECLARATION_DATA_USE_LEGITIMATE_INTEREST_IMPACT_ASSESSMENT
] = "Legitimate Interests Assessment";
COLUMN_NAME_MAP[SYSTEM_PRIVACY_DECLARATION_NAME] = "Processing Activity";
COLUMN_NAME_MAP[SYSTEM_INGRESS] = "Source Systems";
COLUMN_NAME_MAP[SYSTEM_EGRESS] = "Destination Systems";
// COLUMN_NAME_MAP[] = 'Data Steward'; # needs to be added in backend
// COLUMN_NAME_MAP[] = 'Geography'; # needs to be added in backend
// COLUMN_NAME_MAP[] = 'Tags'; # couldn't find it
Expand Down
2 changes: 2 additions & 0 deletions clients/admin-ui/src/features/datamap/datamap.slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
SYSTEM_PRIVACY_DECLARATION_DATA_SUBJECTS_NAME,
SYSTEM_PRIVACY_DECLARATION_DATA_USE_LEGAL_BASIS,
SYSTEM_PRIVACY_DECLARATION_DATA_USE_NAME,
SYSTEM_SYSTEM_DEPENDENCIES,
} from "~/features/datamap/constants";
import { DataCategory } from "~/types/api";

Expand Down Expand Up @@ -64,6 +65,7 @@ const DEPRECATED_COLUMNS = [
"dataset.fides_key",
"system.link_to_processor_contract",
"system.privacy_declaration.data_use.legitimate_interest",
SYSTEM_SYSTEM_DEPENDENCIES,
// 'system.fides_key', it looks like this is needed for the graph. Disable properly later.
];

Expand Down

0 comments on commit 9ec160d

Please sign in to comment.