Skip to content

Commit 9a96fc1

Browse files
committed
ENG-1684 - Show approved status in D&D (#6794)
1 parent 59c6381 commit 9a96fc1

File tree

5 files changed

+18
-6
lines changed

5 files changed

+18
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Changes can also be flagged with a GitHub label for tracking purposes. The URL o
1919
- https://github.com/ethyca/fides/labels/high-risk: to indicate that a change is a "high-risk" change that could potentially lead to unanticipated regressions or degradations
2020
- https://github.com/ethyca/fides/labels/db-migration: to indicate that a given change includes a DB migration
2121

22-
## [Unreleased](https://github.com/ethyca/fides/compare/2.72.2..main)
22+
## [Unreleased](https://github.com/ethyca/fides/compare/2.72.3..main)
2323

2424
### Added
2525
- Added support for new experience config to delete cookie based on host domain [#6706](https://github.com/ethyca/fides/pull/6706)
@@ -34,6 +34,11 @@ Changes can also be flagged with a GitHub label for tracking purposes. The URL o
3434
- Fixed an issue where the FidesJS would sometimes incorrectly display "GPC Overridden" on initial load. [#6728](https://github.com/ethyca/fides/pull/6728)
3535
- Allow external provider consent migration to get saved to BE [#6747](https://github.com/ethyca/fides/pull/6747)
3636

37+
## [2.72.3](https://github.com/ethyca/fides/compare/2.72.2...2.72.3)
38+
39+
### Fixed
40+
- Support fields in "Approved" status in D&D [#6794](https://github.com/ethyca/fides/pull/6794)
41+
3742
## [2.72.2](https://github.com/ethyca/fides/compare/2.72.1...2.72.2)
3843

3944
### Changed

clients/admin-ui/src/features/data-discovery-and-detection/hooks/useDiscoveryResultsFilterTabs.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ const TAB_MAP: Record<DiscoveryResultFilterTabs, FilterTab> = {
1515
filters: [
1616
DiffStatus.CLASSIFICATION_ADDITION,
1717
DiffStatus.CLASSIFICATION_UPDATE,
18+
DiffStatus.APPROVED,
1819
],
1920
childFilters: [
2021
DiffStatus.CLASSIFICATION_ADDITION,
2122
DiffStatus.CLASSIFICATION_UPDATE,
23+
DiffStatus.APPROVED,
2224
],
2325
},
2426
[DiscoveryResultFilterTabs.IN_PROGRESS]: {

clients/admin-ui/src/features/data-discovery-and-detection/tables/cells/DetectionItemActionsCell.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ const DetectionItemActionsCell = ({
108108
const hasClassificationChanges =
109109
childDiffStatus &&
110110
(childDiffStatus[DiffStatus.CLASSIFICATION_ADDITION] ||
111-
childDiffStatus[DiffStatus.CLASSIFICATION_UPDATE]);
111+
childDiffStatus[DiffStatus.CLASSIFICATION_UPDATE] ||
112+
childDiffStatus[DiffStatus.APPROVED]);
112113

113114
const showStartMonitoringAction =
114115
(isSchemaType && diffStatus === undefined) ||

clients/admin-ui/src/features/data-discovery-and-detection/tables/cells/DiscoveryItemActionsCell.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,14 @@ const DiscoveryItemActionsCell = ({ resource }: DiscoveryItemActionsProps) => {
5454

5555
const itemHasClassificationChanges =
5656
diffStatus === DiffStatus.CLASSIFICATION_ADDITION ||
57-
diffStatus === DiffStatus.CLASSIFICATION_UPDATE;
57+
diffStatus === DiffStatus.CLASSIFICATION_UPDATE ||
58+
diffStatus === DiffStatus.APPROVED;
5859

5960
const childItemsHaveClassificationChanges =
6061
childDiffStatus &&
6162
(childDiffStatus[DiffStatus.CLASSIFICATION_ADDITION] ||
62-
childDiffStatus[DiffStatus.CLASSIFICATION_UPDATE]);
63+
childDiffStatus[DiffStatus.CLASSIFICATION_UPDATE] ||
64+
childDiffStatus[DiffStatus.APPROVED]);
6365

6466
const showPromoteAction =
6567
(itemHasClassificationChanges || childItemsHaveClassificationChanges) &&

clients/admin-ui/src/features/data-discovery-and-detection/utils/findResourceChangeType.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ const findResourceChangeType = (resource: StagedResourceAPIResponse) => {
1818

1919
if (
2020
resource.diff_status === DiffStatus.CLASSIFICATION_ADDITION ||
21-
resource.diff_status === DiffStatus.CLASSIFICATION_UPDATE
21+
resource.diff_status === DiffStatus.CLASSIFICATION_UPDATE ||
22+
resource.diff_status === DiffStatus.APPROVED
2223
) {
2324
return ResourceChangeType.CLASSIFICATION;
2425
}
@@ -35,7 +36,8 @@ const findResourceChangeType = (resource: StagedResourceAPIResponse) => {
3536

3637
if (
3738
resource.child_diff_statuses[DiffStatus.CLASSIFICATION_ADDITION] ||
38-
resource.child_diff_statuses[DiffStatus.CLASSIFICATION_UPDATE]
39+
resource.child_diff_statuses[DiffStatus.CLASSIFICATION_UPDATE] ||
40+
resource.child_diff_statuses[DiffStatus.APPROVED]
3941
) {
4042
return ResourceChangeType.CLASSIFICATION;
4143
}

0 commit comments

Comments
 (0)