Code cleanup.20230718 (#12493)

* Move setting common patch and updated fields to EntityRepository

* Cleanup entityReferenceList.json and references
This commit is contained in:
Suresh Srinivas 2023-07-18 15:10:22 -07:00 committed by GitHub
parent 159b6a2e4f
commit 35154615d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
32 changed files with 61 additions and 65 deletions

View File

@ -55,7 +55,7 @@
},
"queryUsedIn": {
"description": "list of entities to which the query is joined.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
}
},
"required": ["query"],

View File

@ -15,7 +15,7 @@
},
"assignees": {
"description": "List of users or teams the task is assigned to",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"oldValue": {
"description": "The value of old object for which the task is created.",

View File

@ -46,7 +46,7 @@
},
"children": {
"description": "Children tags under this tag.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"version": {
"description": "Metadata version of the entity.",

View File

@ -107,7 +107,7 @@
},
"followers": {
"description": "Followers of this chart.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"tags": {
"description": "Tags for this chart.",
@ -145,7 +145,7 @@
},
"dataProducts" : {
"description": "List of of data products this entity is part of.",
"$ref" : "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref" : "../../type/entityReferenceList.json"
}
},
"required": ["id", "name", "service"],

View File

@ -109,7 +109,7 @@
},
"children": {
"description": "References to child containers residing under this entity.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"dataModel": {
"description": "References to the container's data model, if data is structured, or null otherwise",
@ -145,7 +145,7 @@
},
"followers": {
"description": "Followers of this container.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"tags": {
"description": "Tags for this container.",

View File

@ -73,12 +73,12 @@
},
"charts": {
"description": "All the charts included in this Dashboard.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList",
"$ref": "../../type/entityReferenceList.json",
"default": null
},
"dataModels": {
"description": "List of data models used by this dashboard or the charts contained on it.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList",
"$ref": "../../type/entityReferenceList.json",
"default": null
},
"href": {
@ -91,7 +91,7 @@
},
"followers": {
"description": "Followers of this dashboard.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"tags": {
"description": "Tags for this dashboard.",
@ -133,7 +133,7 @@
},
"dataProducts" : {
"description": "List of of data products this entity is part of.",
"$ref" : "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref" : "../../type/entityReferenceList.json"
}
},
"required": ["id", "name", "service"],

View File

@ -104,7 +104,7 @@
},
"followers": {
"description": "Followers of this dashboard.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"service": {
"description": "Link to service where this data model is hosted in.",

View File

@ -84,7 +84,7 @@
},
"databaseSchemas": {
"description": "References to schemas in the database.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"changeDescription": {
"description": "Change that lead to this version of the entity.",

View File

@ -71,7 +71,7 @@
},
"tables": {
"description": "References to tables in the schema.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"usageSummary": {
"description": "Latest usage information for this database.",

View File

@ -66,11 +66,11 @@
},
"children": {
"description": "Other glossary terms that are children of this glossary term.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"relatedTerms": {
"description": "Other glossary terms that are related to this glossary term.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"references": {
"description": "Link to a reference from an external glossary.",
@ -97,7 +97,7 @@
},
"reviewers": {
"description": "User names of the reviewers for this glossary.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"owner": {
"description": "Owner of this glossary term.",

View File

@ -217,7 +217,7 @@
},
"followers": {
"description": "Followers of this ML Model.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"tags": {
"description": "Tags for this ML Model.",

View File

@ -210,7 +210,7 @@
},
"followers": {
"description": "Followers of this Pipeline.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"tags": {
"description": "Tags for this Pipeline.",

View File

@ -66,7 +66,7 @@
},
"followers": {
"description": "Followers of this Query.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"votes" : {
"$ref": "../../type/votes.json"
@ -93,7 +93,7 @@
},
"queryUsedIn": {
"description": "Entities that are using this query",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"deleted": {
"description": "When `true` indicates the entity has been soft deleted.",

View File

@ -961,7 +961,7 @@
},
"followers": {
"description": "Followers of this table.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"joins": {
"description": "Details of other tables this table is frequently joined with.",
@ -1017,7 +1017,7 @@
},
"dataProducts" : {
"description": "List of of data products this entity is part of.",
"$ref" : "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref" : "../../type/entityReferenceList.json"
}
},
"required": [

View File

@ -126,7 +126,7 @@
},
"followers": {
"description": "Followers of this table.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"tags": {
"description": "Tags for this table.",
@ -159,7 +159,7 @@
},
"dataProducts" : {
"description": "List of of data products this entity is part of.",
"$ref" : "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref" : "../../type/entityReferenceList.json"
}
},
"required": ["id", "name", "partitions", "service"],

View File

@ -49,7 +49,7 @@
},
"experts": {
"description": "List of of users who are experts for this Data Product.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList",
"$ref": "../../type/entityReferenceList.json",
"default" : null
},
"domain": {

View File

@ -64,7 +64,7 @@
},
"children" : {
"description" : "Children domains or sub-domains.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"owner": {
"description": "Owner of this Domain.",
@ -72,7 +72,7 @@
},
"experts": {
"description": "List of of users who are experts in this Domain.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList",
"$ref": "../../type/entityReferenceList.json",
"default" : null
},
"changeDescription": {

View File

@ -49,7 +49,7 @@
},
"assignees": {
"description": "List of users or teams the task is assigned to",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"status": {
"$ref": "#/definitions/threadTaskStatus"

View File

@ -72,11 +72,11 @@
},
"teams" : {
"description": "Teams that use this policy directly and not through roles.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"roles" : {
"description": "Roles that use this policy.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"location": {
"description": "Location to which a policy is applied. This field is relevant only for `lifeCycle` policies.",

View File

@ -136,7 +136,7 @@
},
"pipelines": {
"description": "References to pipelines deployed for this dashboard service.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"testConnectionResult": {
"description": "Last test connection results for this service",

View File

@ -290,7 +290,7 @@
},
"pipelines": {
"description": "References to pipelines deployed for this database service to extract metadata, usage, lineage etc..",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"testConnectionResult": {
"description": "Last test connection results for this service",

View File

@ -97,7 +97,7 @@
},
"pipelines": {
"description": "References to pipelines deployed for this messaging service to extract topic configs and schemas.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"testConnectionResult": {
"description": "Last test connection results for this service",

View File

@ -89,7 +89,7 @@
},
"pipelines": {
"description": "References to pipelines deployed for this database service to extract metadata, usage, lineage etc..",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"version": {
"description": "Metadata version of the entity.",

View File

@ -98,7 +98,7 @@
},
"pipelines": {
"description": "References to pipelines deployed for this pipeline service to extract metadata",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"connection": {
"$ref": "#/definitions/mlModelConnection"

View File

@ -159,7 +159,7 @@
},
"pipelines": {
"description": "References to pipelines deployed for this pipeline service to extract metadata",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"connection": {
"$ref": "#/definitions/pipelineConnection"

View File

@ -79,7 +79,7 @@
},
"pipelines": {
"description": "References to pipelines deployed for this storage service to extract metadata, usage, lineage etc..",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"testConnectionResult": {
"description": "Last test connection results for this service",

View File

@ -66,15 +66,15 @@
},
"policies": {
"description": "Policies that is attached to this role.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"users": {
"description": "Users that have this role assigned to them.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"teams": {
"description": "Teams that have this role assigned to them.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"provider" : {
"$ref": "../../type/basic.json#/definitions/providerType"

View File

@ -70,15 +70,15 @@
},
"parents" : {
"description" : "Parent teams. For an `Organization` the `parent` is always null. A `BusinessUnit` always has only one parent of type `BusinessUnit` or an `Organization`. A `Division` can have multiple parents of type `BusinessUnit` or `Division`. A `Department` can have multiple parents of type `Division` or `Department`.",
"$ref" : "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref" : "../../type/entityReferenceList.json"
},
"children" : {
"description" : "Children teams. An `Organization` can have `BusinessUnit`, `Division` or `Department` as children. A `BusinessUnit` can have `BusinessUnit`, `Division`, or `Department` as children. A `Division` can have `Division` or `Department` as children. A `Department` can have can have `Department` as children.",
"$ref" : "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref" : "../../type/entityReferenceList.json"
},
"users": {
"description": "Users that are part of the team.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList",
"$ref": "../../type/entityReferenceList.json",
"default": null
},
"childrenCount": {
@ -91,7 +91,7 @@
},
"owns": {
"description": "List of entities owned by the team.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"owner": {
"description": "Owner of this team. ",
@ -114,15 +114,15 @@
},
"defaultRoles": {
"description": "Default roles of a team. These roles will be inherited by all the users that are part of this team.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"inheritedRoles": {
"description": "Roles that a team is inheriting through membership in teams that have set team default roles.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"policies": {
"description": "Policies that is attached to this team.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"domain" : {
"description": "Domain the Team belongs to.",

View File

@ -102,15 +102,15 @@
},
"teams": {
"description": "Teams that the user belongs to.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"owns": {
"description": "List of entities owned by the user.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"follows": {
"description": "List of entities followed by the user.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"changeDescription": {
"description": "Change that lead to this version of the entity.",
@ -123,11 +123,11 @@
},
"roles": {
"description": "Roles that the user has been assigned.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"inheritedRoles": {
"description": "Roles that a user is inheriting through membership in teams that have set team default roles.",
"$ref": "../../type/entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "../../type/entityReferenceList.json"
},
"isEmailVerified": {
"description": "If the User has verified the mail",

View File

@ -57,7 +57,7 @@
},
"pipelines": {
"description": "References to pipelines deployed for this database service to extract metadata, usage, lineage etc..",
"$ref": "../type/entityReferenceList.json#/definitions/entityReferenceList",
"$ref": "../type/entityReferenceList.json",
"default": null
},
"serviceType": {

View File

@ -3,13 +3,9 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Entity Reference List",
"description": "This schema defines the EntityReferenceList type used for referencing an entity. EntityReference is used for capturing relationships from one entity to another. For example, a table has an attribute called database of type EntityReference that captures the relationship of a table `belongs to a` database.",
"definitions": {
"entityReferenceList": {
"type": "array",
"items": {
"$ref": "entityReference.json"
},
"default": null
}
}
"type": "array",
"items": {
"$ref": "entityReference.json"
},
"default": null
}

View File

@ -30,11 +30,11 @@
},
"upVoters": {
"description": "List of all the Users who upVoted",
"$ref": "./entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "./entityReferenceList.json"
},
"downVoters": {
"description": "List of all the Users who downVoted",
"$ref": "./entityReferenceList.json#/definitions/entityReferenceList"
"$ref": "./entityReferenceList.json"
}
},
"additionalProperties": false