OpenMetadata/openmetadata-service
Ram Narayan Balaji e35dc186b0
Feature #21893 ER Diagram - Pagination, Efficient Upstream, downstream node retrieval (#21996)
* Initial Implementation of ER Diagram Upstream and downstream implementation

* Fix: Extra endpoint of entityRelationship removed

* Fix: Add upstreamEntityRelationship property in table index mappings for ES

* Fix: Removed isConnectedVia since it is not required for ER Diagram

* Improved some code, not final

* Fixed: Working with test cases

* Moved to TableResource from Database resource, need to fix tests

* Improved code and fixed test cases

* Fixing Painless Scipts along with reindexing Null Pointer Exceptions

* Reverted changes for Database Schema entity relationship

* Revert "Reverted changes for Database Schema entity relationship"

This reverts commit 544dd342fec924062d769472e59b29f0aa0eaf30.

* Minor: Reverted changes for Database Schema entity relationship - Fixed Build

* Refactor code: Fix Unnecessary functions, corrected imports

* Refactor code: Improve Test cases , fixed addNode to fqn hash inconsistency, Added Extra test cases for multihop and multi parent use case

* Refactor code: Make tests run in the same thread to not collide with other entity relationship tests

* Refactor code: Create Foreign Keys during the create table itself to avoid orphans

* Refactor code: Improve Test Cases to find the node and upstream details for matching as well

* Refactor code: Corrected Typo

* Update generated TypeScript types

* Database Schema ER Diagram Initial Implementation

* Refactor: Safe Delete function

* Update generated TypeScript types

* Refactored: GraphBuilders to closely Follow Lineage, Fixed Test Cases, refactored constants and generic pagination

* Test cases for Lineage and Improved Test cases for EntityRelationship for Table Level

* Test cases for Platform Lineage and DatabaseSchema ER Diagram

* Initial Improved Implementation of Database Schema ER with pagination

* mvn spotless apply

* Fixed the Test for auto approval

* Update generated TypeScript types

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ashish Gupta <ashish@getcollate.io>
2025-07-28 15:25:40 +05:30
..