fixes saving compliance policy: misrepresented securityClassification as classification. renames people urns

This commit is contained in:
Seyi Adebajo 2017-08-23 11:00:10 -07:00
parent 2ee59eea01
commit af62c93d4e
2 changed files with 4 additions and 4 deletions

View File

@ -569,7 +569,7 @@ export default Component.extend({
identifierField, identifierField,
identifierType, identifierType,
logicalType, logicalType,
classification securityClassification: classification
})); }));
// Fields that do not have a logicalType, and no identifierType or identifierType is `fieldIdentifierTypes.none` // Fields that do not have a logicalType, and no identifierType or identifierType is `fieldIdentifierTypes.none`
const { formatted, unformatted } = datasetFields.reduce( const { formatted, unformatted } = datasetFields.reduce(
@ -593,8 +593,8 @@ export default Component.extend({
unformattedComplianceEntities = unformatted.map(({ identifierField }) => ({ unformattedComplianceEntities = unformatted.map(({ identifierField }) => ({
identifierField, identifierField,
identifierType: fieldIdentifierTypes.none.value, identifierType: fieldIdentifierTypes.none.value,
logicalType: void 0, logicalType: null,
classification: void 0 securityClassification: null
})); }));
isConfirmed = confirm( isConfirmed = confirm(

View File

@ -19,7 +19,7 @@ export default Ember.Controller.extend({
latestVersion: '0', latestVersion: '0',
ownerTypes: [], ownerTypes: [],
datasetSchemaFieldsAndTypes: [], datasetSchemaFieldsAndTypes: [],
userTypes: [{ name: 'Corporate User', value: 'urn:li:corpuser' }, { name: 'Group User', value: 'urn:li:griduser' }], userTypes: [{ name: 'Corporate User', value: 'urn:li:corpuser' }, { name: 'Group User', value: 'urn:li:corpGroup' }],
isPinot: function() { isPinot: function() {
var model = this.get('model'); var model = this.get('model');
if (model) { if (model) {