Skip to content

Commit

Permalink
QA
Browse files Browse the repository at this point in the history
  • Loading branch information
andres-torres-marroquin committed Dec 10, 2024
1 parent dc0d8b9 commit ac69875
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 51 deletions.
58 changes: 10 additions & 48 deletions clients/admin-ui/cypress/fixtures/custom-reports/custom-report.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,58 +59,20 @@
"uses_profiling",
"system_lorem"
],
"columnVisibility": {
"dpo": true,
"egress": true,
"cookies": true,
"ingress": true,
"features": true,
"fides_key": true,
"legal_name": true,
"dpa_location": true,
"system_lorem": true,
"uses_cookies": true,
"data_stewards": true,
"data_subjects": false,
"legal_address": true,
"third_parties": true,
"cookie_refresh": true,
"privacy_policy": true,
"responsibility": true,
"uses_profiling": true,
"data_categories": true,
"declaration_name": true,
"retention_period": true,
"shared_categories": true,
"system_dependencies": true,
"reason_for_exemption": true,
"joint_controller_info": true,
"cookie_max_age_seconds": true,
"uses_non_cookie_access": true,
"data_security_practices": true,
"processes_personal_data": true,
"third_country_safeguards": true,
"administrating_department": true,
"legal_basis_for_profiling": true,
"legal_basis_for_transfers": true,
"impact_assessment_location": true,
"legal_basis_for_processing": true,
"link_to_processor_contract": true,
"does_international_transfers": true,
"special_category_legal_basis": true,
"DATA_SHARED_WITH_THIRD_PARTIES": true,
"exempt_from_privacy_regulations": true,
"system_undeclared_data_categories": false,
"legitimate_interest_disclosure_url": true,
"data_use_undeclared_data_categories": false,
"flexible_legal_basis_for_processing": true,
"requires_data_protection_assessments": true
}
},
"column_map": {
"data_categories": {
"label": "My Data Category Map"
}
},
"data_subjects": {
"enabled": false,
},
"system_undeclared_data_categories": {
"enabled": false,
},
"data_use_undeclared_data_categories": {
"enabled": false,
},
}
}
}
4 changes: 1 addition & 3 deletions src/fides/api/schemas/custom_report.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from enum import Enum
from typing import Any, Dict, Optional, Set

from pydantic import Field, computed_field
from pydantic import Field

from fides.api.schemas.base_class import FidesSchema

Expand Down Expand Up @@ -35,7 +35,6 @@ class CustomReportConfig(FidesSchema):
default_factory=dict, description="A map between column keys and custom labels"
)

@computed_field # type: ignore[misc]
@property
def columns_to_skip(self) -> Set[str]:
return {
Expand All @@ -44,7 +43,6 @@ def columns_to_skip(self) -> Set[str]:
if value.enabled is False
}

@computed_field # type: ignore[misc]
@property
def custom_column_labels(self) -> Dict[str, str]:
return {
Expand Down

0 comments on commit ac69875

Please sign in to comment.