Skip to content

Commit

Permalink
remove registry construct
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsachs committed Dec 11, 2023
1 parent 799bb1b commit ce20cfb
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 98 deletions.
4 changes: 0 additions & 4 deletions demo_resources/demo_registry.yml

This file was deleted.

9 changes: 4 additions & 5 deletions mkdocs/docs/resources/dataset.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ A Dataset takes a database schema (tables and columns) and adds Fides privacy ca

```
organization
|-> registry (optional)
|-> system
|-> ** dataset **
|-> collections
|-> fields
|-> system
|-> ** dataset **
|-> collections
|-> fields
```

* The schema is represented as a set of "collections" (tables) that contain "fields" (columns). These can also be arbitrarily nested to handle document-type databases (e.g., NoSQL or S3).
Expand Down
53 changes: 0 additions & 53 deletions mkdocs/docs/resources/registry.md

This file was deleted.

5 changes: 2 additions & 3 deletions mkdocs/docs/resources/system.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ A System is a model for describing anything that processes data for your organiz

```
organization
|-> registry (optional)
|-> ** system **
|-> privacy declarations
|-> ** system **
|-> privacy declarations
```

## Object Structure
Expand Down
1 change: 0 additions & 1 deletion mkdocs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ nav:
- Resources:
- Organization: resources/organization.md
- Policy: resources/policy.md
- Registry: resources/registry.md
- System: resources/system.md
- Dataset: resources/dataset.md
- About Ethyca: https://ethyca.github.io/fides/ethyca/
Expand Down
2 changes: 0 additions & 2 deletions src/fideslang/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
PolicyRule,
PrivacyDeclaration,
PrivacyRule,
Registry,
System,
Taxonomy,
)
Expand All @@ -55,7 +54,6 @@
"dataset": Dataset,
"organization": Organization,
"policy": Policy,
"registry": Registry,
"system": System,
"evaluation": Evaluation,
}
Expand Down
13 changes: 0 additions & 13 deletions src/fideslang/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -771,15 +771,6 @@ class Policy(FidesModel):
)


# Registry
class Registry(FidesModel):
"""
The Registry resource model.
Systems can be assigned to this resource, but it doesn't inherently
point to any other resources.
"""


# System
class DataProtectionImpactAssessment(BaseModel):
Expand Down Expand Up @@ -962,9 +953,6 @@ class System(FidesModel):
Describes an application and includes a list of PrivacyDeclaration resources.
"""

registry_id: Optional[int] = Field(
description="The id of the system registry, if used.",
)
meta: Optional[Dict] = meta_field
fidesctl_meta: Optional[SystemMetadata] = Field(
description=SystemMetadata.__doc__,
Expand Down Expand Up @@ -1132,5 +1120,4 @@ class Taxonomy(BaseModel):
system: Optional[List[System]] = Field(default_factory=list)
policy: Optional[List[Policy]] = Field(default_factory=list)

registry: Optional[List[Registry]] = Field(default_factory=list)
organization: List[Organization] = Field(default_factory=list)
8 changes: 0 additions & 8 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,8 @@ def resources_dict():
data_uses=models.PrivacyRule(matches="NONE", values=["provide.system"]),
data_subjects=models.PrivacyRule(matches="ANY", values=[]),
),
"registry": models.Registry(
organization_fides_key=1,
fides_key="test_registry",
name="Test Registry",
description="Test Regsitry",
systems=[],
),
"system": models.System(
organization_fides_key=1,
registryId=1,
fides_key="test_system",
system_type="SYSTEM",
name="Test System",
Expand Down
8 changes: 0 additions & 8 deletions tests/fideslang/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ def test_system_valid(self) -> None:
],
)
],
registry_id=1,
system_type="SYSTEM",
tags=["some", "tags"],
)
Expand Down Expand Up @@ -164,7 +163,6 @@ def test_system_valid_nested_meta(self) -> None:
name="declaration-name",
)
],
registry_id=1,
system_type="SYSTEM",
tags=["some", "tags"],
)
Expand Down Expand Up @@ -200,7 +198,6 @@ def test_system_valid_no_meta(self) -> None:
name="declaration-name",
)
],
registry_id=1,
system_type="SYSTEM",
tags=["some", "tags"],
)
Expand All @@ -221,7 +218,6 @@ def test_system_valid_no_egress_or_ingress(self) -> None:
name="declaration-name",
)
],
registry_id=1,
system_type="SYSTEM",
tags=["some", "tags"],
)
Expand Down Expand Up @@ -251,7 +247,6 @@ def test_system_no_egress(self) -> None:
name="declaration-name",
)
],
registry_id=1,
system_type="SYSTEM",
tags=["some", "tags"],
)
Expand Down Expand Up @@ -281,7 +276,6 @@ def test_system_no_ingress(self) -> None:
name="declaration-name",
)
],
registry_id=1,
system_type="SYSTEM",
tags=["some", "tags"],
)
Expand Down Expand Up @@ -309,7 +303,6 @@ def test_system_user_ingress_valid(self) -> None:
name="declaration-name",
)
],
registry_id=1,
system_type="SYSTEM",
tags=["some", "tags"],
)
Expand All @@ -321,7 +314,6 @@ def test_expanded_system(self):
tags=["some", "tags"],
name="Exponential Interactive, Inc d/b/a VDX.tv",
description="My system test",
registry_id=1,
meta={"some": "meta stuff"},
system_type="SYSTEM",
egress=[
Expand Down
1 change: 0 additions & 1 deletion tests/fideslang/test_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,6 @@ def test_valid_policy():
def test_create_valid_system():
System(
organization_fides_key=1,
registryId=1,
fides_key="test_system",
system_type="SYSTEM",
name="Test System",
Expand Down

0 comments on commit ce20cfb

Please sign in to comment.