Skip to content

Commit

Permalink
fix(models): remove unused model (datahub-project#1748)
Browse files Browse the repository at this point in the history
* fix(models): remove unused model

Fixes datahub-project#1719

* Drop DeploymentInfo from Dataset's value model & rebuild snapshot
  • Loading branch information
mars-lan authored Aug 2, 2020
1 parent 9b06eda commit 352eb3f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 126 deletions.
5 changes: 0 additions & 5 deletions gms/api/src/main/pegasus/com/linkedin/dataset/Dataset.pdl
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@ record Dataset includes DatasetKey, ChangeAuditStamps, VersionTag {
*/
uri: optional Uri

/**
* List of dataset instances for this dataset
*/
deploymentInfos: array[DeploymentInfo] = [ ]

/**
* tags for searching dataset
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,32 +125,6 @@
"EI" : "Designates early-integration (staging) fabrics",
"PROD" : "Designates production fabrics"
}
}, {
"type" : "typeref",
"name" : "FabricUrn",
"namespace" : "com.linkedin.common",
"doc" : "Should match the forms used in configs: envInfoFinder.envToEnvByteMap. PROD-ELA4, PROD-ECH3, EI, EI2, prod-lva1, etc",
"ref" : "string",
"java" : {
"class" : "com.linkedin.common.urn.FabricUrn"
},
"validate" : {
"com.linkedin.common.validator.TypedUrnValidator" : {
"doc" : "Should match the forms used in configs: envInfoFinder.envToEnvByteMap. PROD-ELA4, PROD-ECH3, EI, EI2, prod-lva1, etc",
"entityType" : "fabric",
"fields" : [ {
"doc" : "",
"maxLength" : 36,
"name" : "fabricName",
"type" : "string"
} ],
"maxLength" : 50,
"name" : "Fabric",
"namespace" : "li",
"owners" : [ "urn:li:corpuser:fbar", "urn:li:corpuser:bfoo" ],
"owningTeam" : "urn:li:internalTeam:Tools"
}
}
}, {
"type" : "record",
"name" : "InstitutionalMemory",
Expand Down Expand Up @@ -295,30 +269,6 @@
"type" : "string",
"optional" : true
} ]
}, {
"type" : "record",
"name" : "DataLocation",
"namespace" : "com.linkedin.dataset",
"doc" : "DataLocation describes where dataset is located within LinkedIn environment. Location is identified with fabric:cluster pair.",
"fields" : [ {
"name" : "fabricGroup",
"type" : "com.linkedin.common.FabricType",
"doc" : "Fabric group type of Linkedin internal data center fabrics."
}, {
"name" : "fabric",
"type" : "com.linkedin.common.FabricUrn",
"doc" : "Designated fabric where dataset is located such as prod-ltx1, ei-lva1 etc.",
"optional" : true
}, {
"name" : "cluster",
"type" : "string",
"doc" : "Designated cluster where dataset is located such as kafka-tracking-cluster, queuing, etc."
}, {
"name" : "region",
"type" : "string",
"doc" : "Standardized geographical region where dataset is deployed.",
"optional" : true
} ]
}, {
"type" : "record",
"name" : "Dataset",
Expand Down Expand Up @@ -386,31 +336,6 @@
"type" : "com.linkedin.common.Uri",
"doc" : "The abstracted such as hdfs:///data/tracking/PageViewEvent, file:///dir/file_name. Uri should not include any environment specific properties. Some datasets might not have a standardized uri, which makes this field optional (i.e. kafka topic).",
"optional" : true
}, {
"name" : "deploymentInfos",
"type" : {
"type" : "array",
"items" : {
"type" : "record",
"name" : "DeploymentInfo",
"doc" : "Deployment information of a dataset. Locations were dataset is deployed.",
"fields" : [ {
"name" : "dataLocation",
"type" : "DataLocation",
"doc" : "Deployment location"
}, {
"name" : "additionalDeploymentInfo",
"type" : {
"type" : "map",
"values" : "string"
},
"doc" : "Additional deployment info, such as Zookeeper, Connection, Graphite URL, native reference ID or KEY",
"optional" : true
} ]
}
},
"doc" : "List of dataset instances for this dataset",
"default" : [ ]
}, {
"name" : "tags",
"type" : {
Expand Down Expand Up @@ -504,7 +429,7 @@
"doc" : "A key-value map to capture any other non-standardized properties for the dataset",
"default" : { }
} ]
}, "com.linkedin.dataset.DeploymentInfo", {
}, {
"type" : "record",
"name" : "Downstream",
"namespace" : "com.linkedin.dataset",
Expand Down

This file was deleted.

0 comments on commit 352eb3f

Please sign in to comment.