This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
forked from pluralsight/hydra
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from ps-dev/ADAPT-1802-dataClassification
ADAPT-1802: [hydra-publish] Adapt data classification changes according to our policy
- Loading branch information
Showing
29 changed files
with
614 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ import cats.implicits._ | |
import hydra.kafka.algebras.MetadataAlgebra.TopicMetadataContainer | ||
import hydra.kafka.algebras.TestMetadataAlgebra | ||
import hydra.kafka.model.ContactMethod.Email | ||
import hydra.kafka.model.DataClassification.Public | ||
import hydra.kafka.model.TopicMetadataV2Request.Subject | ||
import hydra.kafka.model._ | ||
import org.apache.avro.SchemaBuilder | ||
|
@@ -25,6 +26,7 @@ object TopicUtils { | |
deprecated = false, | ||
deprecatedDate = None, | ||
Public, | ||
None, | ||
NonEmptyList.of(Email.create("[email protected]").get), | ||
Instant.now(), | ||
List.empty, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
ingestors/kafka/src/main/scala/hydra/kafka/model/DataClassification.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package hydra.kafka.model | ||
|
||
import enumeratum.{Enum, EnumEntry} | ||
|
||
import scala.collection.immutable | ||
|
||
sealed trait DataClassification extends EnumEntry | ||
|
||
object DataClassification extends Enum[DataClassification] { | ||
|
||
case object Public extends DataClassification | ||
case object InternalUse extends DataClassification | ||
case object Confidential extends DataClassification | ||
case object Restricted extends DataClassification | ||
|
||
override val values: immutable.IndexedSeq[DataClassification] = findValues | ||
} | ||
|
||
sealed trait SubDataClassification extends EnumEntry | ||
|
||
object SubDataClassification extends Enum[SubDataClassification] { | ||
|
||
case object Public extends SubDataClassification | ||
case object InternalUseOnly extends SubDataClassification | ||
case object ConfidentialPII extends SubDataClassification | ||
case object RestrictedFinancial extends SubDataClassification | ||
case object RestrictedEmployeeData extends SubDataClassification | ||
|
||
override val values: immutable.IndexedSeq[SubDataClassification] = findValues | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.