updates security spec creation, removes unused specification
/**
- * Builds a privacyCompliancePolicy map with default / unset values for non null properties
+ * Builds a privacyCompliancePolicy map with default / unset
+ * values for non null properties
*/
export const createPrivacyCompliancePolicy = () => {
const policy = {
@@ -13,16 +14,19 @@ export const createPrivacyCompliancePolicy = () => {
};
/**
- * Builds a securitySpecification map with default / unset values for non null properties as per avro schema
+ * Builds a securitySpecification map with default / unset values
+ * for non null properties as per avro schema
* @param {number} id
*/
export const createSecuritySpecification = id => {
- const classification = [
- 'highlyConfidential', 'confidential', 'limitedDistribution', 'mustBeEncrypted', 'mustBeMasked'
- ].reduce((classification, classifier) => {
+ const classification = ['highlyConfidential', 'confidential'].reduce(
+ (classification, classifier) => {
classification[classifier] = [];
return classification;
- }, {});
+ },
+ {}
+ );
+
const securitySpecification = {
classification,
datasetId: id,
