Update MCE schema and test (#954)

This commit is contained in:
Mars Lan 2018-02-01 11:12:59 -08:00 committed by GitHub
parent f376789364
commit 5987ab5ed0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 8 deletions

View File

@ -77,8 +77,8 @@ public class DatasetComplianceDaoTest {
policy.complianceEntities = Arrays.asList(entity);
policy.datasetConfidentiality = SecurityClassification.HIGHLY_CONFIDENTIAL;
String complianceEntityStr = "[{fieldPath: field1, complianceDataType: ADDRESS, fieldFormat: null, "
+ "securityClassification: CONFIDENTIAL}]";
String complianceEntityStr = "[{fieldPath: field1, complianceDataType: ADDRESS, complianceDataTypeUrn: null, "
+ "fieldFormat: null, securityClassification: CONFIDENTIAL}]";
complianceDao.fillDsComplianceByCompliancePolicy(dsCompliance, policy, datasetUrn2, actor2);

View File

@ -14,8 +14,8 @@
"type": {
"type": "enum",
"name": "ComplianceDataType",
"doc": "The business / semantic meaning or data type of data fields. http://go/gdpr-taxonomy",
"symbols" : [
"doc": "[Deprecated] Please set this to UNUSED and use complianceDataTypeUrn instead.",
"symbols": [
"NONE",
"MEMBER_ID",
"SUBJECT_MEMBER_ID",
@ -46,9 +46,10 @@
"CONTRACT_ID",
"SEAT_ID",
"ADVERTISER_ID",
"SLIDESHARE_USER_ID"
"SLIDESHARE_USER_ID",
"UNUSED"
],
"symbolDocs" : {
"symbolDocs": {
"NONE": "None of the following types apply",
"MEMBER_ID": "ID for LinkedIn members",
"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",
"SEAT_ID": "ID for a user of an LTS enterprise product",
"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",
"doc": "Specify the optional field format",
"type": [ "null", {
"type": [
"null",
{
"type": "enum",
"name": "FieldFormat",
"symbols": [