Fix #1529: Add the enum integer inside Relationship.java (#1531)

This commit is contained in:
Alberto Miorin 2021-12-03 03:05:38 +01:00 committed by GitHub
parent f9436c65f0
commit 13fb6b5c96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,53 +29,53 @@ public enum Relationship {
// Organization --- contains --> Team // Organization --- contains --> Team
// Team --- contains --> User // Team --- contains --> User
// Service --- contains --> Database // Service --- contains --> Database
CONTAINS("contains"), CONTAINS("contains"), // 0
// User/Bot --- created ---> Thread // User/Bot --- created ---> Thread
CREATED("createdBy"), CREATED("createdBy"), // 1
// User/Bot --- repliedTo ---> Thread // User/Bot --- repliedTo ---> Thread
REPLIED_TO("repliedTo"), REPLIED_TO("repliedTo"), // 2
// Thread --- isAbout ---> Entity // Thread --- isAbout ---> Entity
IS_ABOUT("isAbout"), IS_ABOUT("isAbout"), // 3
// Thread --- addressedTo ---> User/Team // Thread --- addressedTo ---> User/Team
ADDRESSED_TO("addressedTo"), ADDRESSED_TO("addressedTo"), // 4
// User, Team, Data assets --- mentionedIn ---> Thread // User, Team, Data assets --- mentionedIn ---> Thread
MENTIONED_IN("mentionedIn"), MENTIONED_IN("mentionedIn"), // 5
// Entity --- testedBy ---> Test // Entity --- testedBy ---> Test
TESTED_BY("testedBy"), TESTED_BY("testedBy"), // 6
// {Dashboard|Pipeline|Query} --- uses ---> Table // {Dashboard|Pipeline|Query} --- uses ---> Table
// {User} --- uses ---> {Table|Dashboard|Query} // {User} --- uses ---> {Table|Dashboard|Query}
// {MlModel} --- uses ---> {Dashboard} // {MlModel} --- uses ---> {Dashboard}
USES("uses"), USES("uses"), // 7
// {User|Team|Org} --- owns ---> {Table|Dashboard|Query} // {User|Team|Org} --- owns ---> {Table|Dashboard|Query}
OWNS("owns"), OWNS("owns"), // 8
// {Role} --- parentOf ---> {Role} // {Role} --- parentOf ---> {Role}
PARENT_OF("parentOf"), PARENT_OF("parentOf"), // 9
// {User} --- has ---> {Role} // {User} --- has ---> {Role}
// {Table} --- has ---> {Location} // {Table} --- has ---> {Location}
// {Database} --- has ---> {Location} // {Database} --- has ---> {Location}
HAS("has"), HAS("has"), // 10
// {User} --- follows ----> {Table, Database, Metrics...} // {User} --- follows ----> {Table, Database, Metrics...}
FOLLOWS("follows"), FOLLOWS("follows"), // 11
// {Table.Column...} --- joinedWith ---> {Table.Column} // {Table.Column...} --- joinedWith ---> {Table.Column}
JOINED_WITH("joinedWith"), JOINED_WITH("joinedWith"), // 12
// Lineage relationship // Lineage relationship
// {Table1} --- upstream ---> {Table2} (Table1 is used for creating Table2} // {Table1} --- upstream ---> {Table2} (Table1 is used for creating Table2}
// {Pipeline} --- upstream ---> {Table2} (Pipeline creates Table2) // {Pipeline} --- upstream ---> {Table2} (Pipeline creates Table2)
// {Table} --- upstream ---> {Dashboard} (Table was used to create Dashboard) // {Table} --- upstream ---> {Dashboard} (Table was used to create Dashboard)
UPSTREAM("upstream"); UPSTREAM("upstream"); // 13
/*** Add new enums to the end of the list **/ /*** Add new enums to the end of the list **/
private final String value; private final String value;