mirror of
https://github.com/datahub-project/datahub.git
synced 2025-10-16 19:38:26 +00:00
Update MCE schema and test (#954)
This commit is contained in:
parent
f376789364
commit
5987ab5ed0
@ -77,8 +77,8 @@ public class DatasetComplianceDaoTest {
|
|||||||
policy.complianceEntities = Arrays.asList(entity);
|
policy.complianceEntities = Arrays.asList(entity);
|
||||||
policy.datasetConfidentiality = SecurityClassification.HIGHLY_CONFIDENTIAL;
|
policy.datasetConfidentiality = SecurityClassification.HIGHLY_CONFIDENTIAL;
|
||||||
|
|
||||||
String complianceEntityStr = "[{fieldPath: field1, complianceDataType: ADDRESS, fieldFormat: null, "
|
String complianceEntityStr = "[{fieldPath: field1, complianceDataType: ADDRESS, complianceDataTypeUrn: null, "
|
||||||
+ "securityClassification: CONFIDENTIAL}]";
|
+ "fieldFormat: null, securityClassification: CONFIDENTIAL}]";
|
||||||
|
|
||||||
complianceDao.fillDsComplianceByCompliancePolicy(dsCompliance, policy, datasetUrn2, actor2);
|
complianceDao.fillDsComplianceByCompliancePolicy(dsCompliance, policy, datasetUrn2, actor2);
|
||||||
|
|
||||||
|
@ -14,8 +14,8 @@
|
|||||||
"type": {
|
"type": {
|
||||||
"type": "enum",
|
"type": "enum",
|
||||||
"name": "ComplianceDataType",
|
"name": "ComplianceDataType",
|
||||||
"doc": "The business / semantic meaning or data type of data fields. http://go/gdpr-taxonomy",
|
"doc": "[Deprecated] Please set this to UNUSED and use complianceDataTypeUrn instead.",
|
||||||
"symbols" : [
|
"symbols": [
|
||||||
"NONE",
|
"NONE",
|
||||||
"MEMBER_ID",
|
"MEMBER_ID",
|
||||||
"SUBJECT_MEMBER_ID",
|
"SUBJECT_MEMBER_ID",
|
||||||
@ -46,9 +46,10 @@
|
|||||||
"CONTRACT_ID",
|
"CONTRACT_ID",
|
||||||
"SEAT_ID",
|
"SEAT_ID",
|
||||||
"ADVERTISER_ID",
|
"ADVERTISER_ID",
|
||||||
"SLIDESHARE_USER_ID"
|
"SLIDESHARE_USER_ID",
|
||||||
|
"UNUSED"
|
||||||
],
|
],
|
||||||
"symbolDocs" : {
|
"symbolDocs": {
|
||||||
"NONE": "None of the following types apply",
|
"NONE": "None of the following types apply",
|
||||||
"MEMBER_ID": "ID for LinkedIn members",
|
"MEMBER_ID": "ID for LinkedIn members",
|
||||||
"SUBJECT_MEMBER_ID": "Member ID that are subject owner of the record",
|
"SUBJECT_MEMBER_ID": "Member ID that are subject owner of the record",
|
||||||
@ -79,14 +80,26 @@
|
|||||||
"CONTRACT_ID": "ID for a contract, a grouping of enterprise users for an LTS product",
|
"CONTRACT_ID": "ID for a contract, a grouping of enterprise users for an LTS product",
|
||||||
"SEAT_ID": "ID for a user of an LTS enterprise product",
|
"SEAT_ID": "ID for a user of an LTS enterprise product",
|
||||||
"ADVERTISER_ID": "ID for an LMS advertiser",
|
"ADVERTISER_ID": "ID for an LMS advertiser",
|
||||||
"SLIDESHARE_USER_ID": "ID for a slideshare user"
|
"SLIDESHARE_USER_ID": "ID for a slideshare user",
|
||||||
|
"UNUSED": "This field is not used. Refer to complianceDataTypeUrn instead."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "complianceDataTypeUrn",
|
||||||
|
"type": [
|
||||||
|
"null",
|
||||||
|
"string"
|
||||||
|
],
|
||||||
|
"doc": "[Required] A ComplianceDataType urn, e.g. urn:li:complianceDataType:MEMBER_ID. See the full list at compliance-data-type.",
|
||||||
|
"default": null
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "fieldFormat",
|
"name": "fieldFormat",
|
||||||
"doc": "Specify the optional field format",
|
"doc": "Specify the optional field format",
|
||||||
"type": [ "null", {
|
"type": [
|
||||||
|
"null",
|
||||||
|
{
|
||||||
"type": "enum",
|
"type": "enum",
|
||||||
"name": "FieldFormat",
|
"name": "FieldFormat",
|
||||||
"symbols": [
|
"symbols": [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user