mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-27 02:25:58 +00:00
makes nonOwner compliance entity attribute nullable
This commit is contained in:
parent
035ea922ae
commit
8b36ab0fce
@ -20,6 +20,7 @@ import { IComplianceDataType } from 'wherehows-web/typings/api/list/compliance-d
|
||||
import { getFieldSuggestions } from 'wherehows-web/utils/datasets/compliance-suggestions';
|
||||
import noop from 'wherehows-web/utils/noop';
|
||||
import { hasEnumerableKeys } from 'wherehows-web/utils/object';
|
||||
import { IComplianceEntity } from 'wherehows-web/typings/api/datasets/compliance';
|
||||
|
||||
/**
|
||||
* Constant definition for an unselected field format
|
||||
@ -89,7 +90,7 @@ export default class DatasetComplianceRow extends DatasetTableRow {
|
||||
* @type {ComputedProperty<boolean>}
|
||||
* @memberof DatasetComplianceRow
|
||||
*/
|
||||
nonOwner: ComputedProperty<boolean> = alias('field.nonOwner').readOnly();
|
||||
nonOwner: ComputedProperty<IComplianceEntity['nonOwner']> = alias('field.nonOwner').readOnly();
|
||||
|
||||
/**
|
||||
* The field's dataType attribute
|
||||
|
@ -906,7 +906,7 @@ export default class DatasetCompliance extends Component {
|
||||
identifierType: ComplianceFieldIdValue.None,
|
||||
logicalType: null,
|
||||
securityClassification: null,
|
||||
nonOwner: false
|
||||
nonOwner: null
|
||||
}));
|
||||
|
||||
const confirmHandler = (function() {
|
||||
|
@ -27,7 +27,7 @@ export interface IComplianceEntity {
|
||||
// User specified / default security classification for the related schema field
|
||||
securityClassification: Classification | null;
|
||||
// Flag indicating that the dataset is of a subject type, default is false
|
||||
nonOwner: boolean;
|
||||
nonOwner: boolean | null;
|
||||
// Flag indicating that this compliance field is not editable by the end user
|
||||
// field should also be filtered from persisted policy
|
||||
readonly readonly?: boolean;
|
||||
|
Loading…
x
Reference in New Issue
Block a user