-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ER Diagrams] Add ER diagram APIs and sample data #18021
Conversation
The Java checkstyle failed. Please run You can install the pre-commit hooks with |
The Python checkstyle failed. Please run You can install the pre-commit hooks with |
if (depth <= 0) { | ||
return; | ||
} | ||
es.org.elasticsearch.action.search.SearchRequest searchRequest = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to put full package names here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file is references a specific class for the SearchRequest. hence the full name here. It is done for other APIs as well
String direction, | ||
boolean deleted) | ||
throws IOException { | ||
if (depth <= 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how can be depth be below 0 here? we should throw an error not return
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a function that will be called recursively. The depth is there for handling that
E.g by default depth with start at 3 and then with each recursion it'll get decremented unless it reaches 0
openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/SearchIndex.java
Outdated
Show resolved
Hide resolved
if (depth <= 0) { | ||
return; | ||
} | ||
os.org.opensearch.action.search.SearchRequest searchRequest = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
avoid full package names like this here
1 similar comment
@@ -644,6 +645,41 @@ public DatabaseSchema deleteDataProfilerConfig( | |||
return addHref(uriInfo, databaseSchema); | |||
} | |||
|
|||
@GET | |||
@Path("/getEntityRelationship") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets not add "Get" , lets just call it as /entityRelationship. GET is indicated by the HTTP Method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@OnkarVO7 any reason not to add this at database level?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@harshach Main to add this at schema level was to make sure the performance remains consistent. We can extend database level too once this is out
@OnkarVO7 lets make sure we are adding EDIT_ENTITY_RELATIONSHIP similar to EDIT_LINEAGE. |
…tch and use only in service tables
Quality Gate passed for 'open-metadata-ui'Issues Measures |
Quality Gate passed for 'open-metadata-ingestion'Issues Measures |
* Add ER diag APIs and sample data * fix pylint * formatting fixes2 * fixed es client return * fixed os client return * supported TableDetailPage tabs as classBase for supporting collate only tabs * Added schema Apis * change the base class to .ts and move the component in the util files * beautify function arguments * Added optimizations * Ingestion changes * svg dimension change * supported class base tab in databaseSchema * supported classBase action button in schema table name column * added further keys data for constraint modal * fix sonar issue * remove old method to override edit action on column and shifted to DisplayNameModal for fields * supported table right panel component to further extends on collate side * minor fix around duplicate constraint * added support to update table constraints and column constraints in the UI * code optimization and minor fixes * review comments and multi col fix * added queryFilter option in NodeSuggestion and tableConstrainst to fetch and use only in service tables --------- Co-authored-by: Ashish Gupta <ashish@getcollate.io>
Describe your changes:
Add ER diagram APIs and sample data
UI :
Screen.Recording.2024-10-27.at.3.57.34.PM.mov
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>