Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
Remove uplifting of dataClassification values as it is one time task …
Browse files Browse the repository at this point in the history
…taken care by script already
  • Loading branch information
aman-minz committed Dec 21, 2023
1 parent a74ace1 commit 07d08d3
Showing 1 changed file with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,16 +243,11 @@ object TopicMetadataV2ValueOptionalTagList {
case Restricted => "Restricted"
},
decode = {
case "Public" => Right(Public)
case "InternalUse" => Right(InternalUse)
case "Confidential" => Right(Confidential)
case "Restricted" => Right(Restricted)
// Below are added to uplift old Data Classification value to the corresponding policy-specific value.
case "InternalUseOnly" => Right(InternalUse)
case "ConfidentialPII" => Right(Confidential)
case "RestrictedFinancial" => Right(Restricted)
case "RestrictedEmployeeData" => Right(Restricted)
case other => Left(AvroError(s"$other is not a DataClassification. Valid value is one of: ${DataClassification.values}"))
case "Public" => Right(Public)
case "InternalUse" => Right(InternalUse)
case "Confidential" => Right(Confidential)
case "Restricted" => Right(Restricted)
case other => Left(AvroError(s"$other is not a DataClassification. Valid value is one of: ${DataClassification.values}"))
}
)

Expand Down

0 comments on commit 07d08d3

Please sign in to comment.