Add UpdateLineage in rule (#2442)

This commit is contained in:
Matt 2022-01-25 23:12:24 -08:00 committed by GitHub
parent 76f1db95b9
commit 76e1b2e696
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -49,7 +49,7 @@ const AddRuleModal: FC<AddRuleProps> = ({
const [isEnabled, setIsEnabled] = useState<boolean>(
Boolean(initialData.enabled)
);
const onChangeHadler = (
const onChangeHandler = (
e: React.ChangeEvent<HTMLInputElement | HTMLSelectElement>
) => {
e.persist();
@ -105,11 +105,14 @@ const AddRuleModal: FC<AddRuleProps> = ({
disabled={isEditing}
name="operation"
value={data.operation}
onChange={onChangeHadler}>
onChange={onChangeHandler}>
<option value="">Select Operation</option>
<option value={Operation.UpdateDescription}>
Update Description
</option>
<option value={Operation.UpdateLineage}>
Update Lineage
</option>
<option value={Operation.UpdateOwner}>Update Owner</option>
<option value={Operation.UpdateTags}>Update Tags</option>
</select>

View File

@ -60,6 +60,7 @@ export enum Operation {
SuggestDescription = 'SuggestDescription',
SuggestTags = 'SuggestTags',
UpdateDescription = 'UpdateDescription',
UpdateLineage = 'UpdateLineage',
UpdateOwner = 'UpdateOwner',
UpdateTags = 'UpdateTags',
}