Skip to content

Commit 67cba9d

Browse files
authored
Add Collections Skip Processing Flag (#165)
* Add "skip_processing" flag underneath Collection > fides_meta for DSR processing.
1 parent f0563cd commit 67cba9d

File tree

3 files changed

+52
-1
lines changed

3 files changed

+52
-1
lines changed

CHANGELOG.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,20 @@ The types of changes are:
1414
- `Fixed` for any bug fixes.
1515
- `Security` in case of vulnerabilities.
1616

17-
## [Unreleased](https://github.com/ethyca/fideslang/compare/2.0.2...main)
17+
## [Unreleased](https://github.com/ethyca/fideslang/compare/2.0.3...main)
18+
19+
20+
### Changed
21+
22+
- Add Collection > Fides Meta > Skip Processing Flag to skip collections in DSR processing [#165](https://github.com/ethyca/fideslang/pull/165)
23+
24+
25+
## [2.0.3](https://github.com/ethyca/fideslang/compare/2.0.2...2.0.3)
26+
27+
### Changed
28+
29+
- Relax system legal basis for transfer fields [#162](https://github.com/ethyca/fideslang/pull/162)
30+
1831

1932
## [2.0.2](https://github.com/ethyca/fideslang/compare/2.0.1...2.0.2)
2033

@@ -39,6 +52,14 @@ The types of changes are:
3952
- Updated the Data Categories and Data Uses to support GVL [#144](https://github.com/ethyca/fideslang/pull/144)
4053
- Add version metadata to the default taxonomy items [#147](https://github.com/ethyca/fideslang/pull/147)
4154

55+
56+
## [1.4.6 (Hotfix)](https://github.com/ethyca/fideslang/compare/1.4.5...1.4.6)
57+
58+
### Changed
59+
60+
- Relax system legal basis for transfer fields [#162](https://github.com/ethyca/fideslang/pull/162)
61+
62+
4263
## [1.4.5 (Hotfix)](https://github.com/ethyca/fideslang/compare/1.4.4...1.4.5)
4364

4465
### Changed

src/fideslang/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ class CollectionMeta(BaseModel):
604604
"""Collection-level specific annotations used for query traversal"""
605605

606606
after: Optional[List[FidesCollectionKey]]
607+
skip_processing: Optional[bool] = False
607608

608609

609610
class DatasetCollection(FidesopsMetaBackwardsCompat):

tests/fideslang/test_models.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,35 @@ def test_dataset_deprecated_fields(self, deprecated_field, value) -> None:
540540
}
541541
)
542542

543+
def test_dataset_collection_skip_processing(self):
544+
collection = DatasetCollection(
545+
name="dataset_collection_1",
546+
data_qualifier="data_collection_data_qualifier_1",
547+
data_categories=["dataset_collection_data_category_1"],
548+
fields=[],
549+
)
550+
assert not collection.fides_meta
551+
552+
collection = DatasetCollection(
553+
name="dataset_collection_1",
554+
data_qualifier="data_collection_data_qualifier_1",
555+
data_categories=["dataset_collection_data_category_1"],
556+
fides_meta={"after": ["third_dataset.blue_collection"]},
557+
fields=[],
558+
)
559+
560+
assert collection.fides_meta.skip_processing is False
561+
562+
collection = DatasetCollection(
563+
name="dataset_collection_1",
564+
data_qualifier="data_collection_data_qualifier_1",
565+
data_categories=["dataset_collection_data_category_1"],
566+
fides_meta={"skip_processing": True},
567+
fields=[],
568+
)
569+
570+
assert collection.fides_meta.skip_processing
571+
543572

544573
class TestDataUse:
545574
def test_minimal_data_use(self):

0 commit comments

Comments
 (0)