Skip to content

Commit

Permalink
remove retention field on dataset collection and field
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsachs committed Dec 13, 2023
1 parent 581c703 commit 2aa694b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
12 changes: 0 additions & 12 deletions mkdocs/docs/resources/dataset.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ A human-readable description of the collection.

Arrays of Data Category resources, identified by `fides_key`, that apply to all fields in the collection.

**collections.retention**<span class="required"/>&nbsp;&nbsp;_string_

An optional string to describe the retention policy for a Dataset collection. This field can also be applied more granularly at the field level of a Dataset.

**collections.fields**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[_object_]<br/>

An array of objects that describe the collection's fields.
Expand All @@ -82,10 +78,6 @@ A human-readable description of the field.

Arrays of Data Categories, identified by `fides_key`, that applies to this field.

**collections.fields.retention**<span class="required"/>&nbsp;&nbsp;_string_

An optional string to describe the retention policy for a field within a Dataset collection.

**collections.fields.fields**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[_object_]<br/>

An optional array of objects that describe hierarchical/nested fields (typically found in NoSQL databases)
Expand All @@ -104,7 +96,6 @@ dataset:
description: User information
data_categories:
- user
retention: 30 days post account deletion
fields:
- name: first_name
description: User's first name
Expand All @@ -118,7 +109,6 @@ dataset:
description: User's phone numbers
data_categories:
- user.contact.phone_number
retention: end of user relationship
fields:
- name: mobile
description: User's mobile phone number
Expand All @@ -141,7 +131,6 @@ dataset:
{
"name": "users",
"description": "User information",
"retention": "30 days post account deletion",
"fields": [
{
"name": "first_name",
Expand All @@ -163,7 +152,6 @@ dataset:
"data_categories": [
"user.contact.phone_number"
],
"retention": "end of user relationship",
"fields": [
{
"name": "mobile",
Expand Down
6 changes: 0 additions & 6 deletions src/fideslang/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,6 @@ class MyDatasetField(DatasetFieldBase):
data_categories: Optional[List[FidesKey]] = Field(
description="Arrays of Data Categories, identified by `fides_key`, that applies to this field.",
)
retention: Optional[str] = Field(
description="An optional string to describe the retention policy for a dataset collection or field. This field can be applied at either the Collection or field level of a Dataset.",
)


class EdgeDirection(str, Enum):
Expand Down Expand Up @@ -513,9 +510,6 @@ class DatasetCollection(FidesopsMetaBackwardsCompat):
data_categories: Optional[List[FidesKey]] = Field(
description="Array of Data Category resources identified by `fides_key`, that apply to all fields in the collection.",
)
retention: Optional[str] = Field(
description="An optional string to describe the retention policy for a Dataset collection. This field can also be applied more granularly at the field level of a Dataset.",
)
fields: List[DatasetField] = Field(
description="An array of objects that describe the collection's fields.",
)
Expand Down

0 comments on commit 2aa694b

Please sign in to comment.