Skip to content
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

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open

Conversation

OnkarVO7
Copy link
Contributor

Describe your changes:

Add ER diagram APIs and sample data

Type of change:

  • Bug fix
  • Improvement
  • [s] New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.

Copy link
Contributor

The Java checkstyle failed.

Please run mvn spotless:apply in the root of your repository and commit the changes to this PR.
You can also use pre-commit to automate the Java code formatting.

You can install the pre-commit hooks with make install_test precommit_install.

Copy link
Contributor

The Python checkstyle failed.

Please run make py_format and py_format_check in the root of your repository and commit the changes to this PR.
You can also use pre-commit to automate the Python code formatting.

You can install the pre-commit hooks with make install_test precommit_install.

Copy link
Contributor

github-actions bot commented Sep 27, 2024

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 64%
64.21% (37979/59152) 40.89% (15119/36978) 42.99% (4568/10626)

if (depth <= 0) {
return;
}
es.org.elasticsearch.action.search.SearchRequest searchRequest =
Copy link
Collaborator

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

String direction,
boolean deleted)
throws IOException {
if (depth <= 0) {
Copy link
Collaborator

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

Copy link
Contributor Author

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

if (depth <= 0) {
return;
}
os.org.opensearch.action.search.SearchRequest searchRequest =
Copy link
Collaborator

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

Copy link

Copy link

1 similar comment
Copy link

Copy link

1 similar comment
Copy link

Copy link

1 similar comment
Copy link

@OnkarVO7 OnkarVO7 changed the title [ER Diagrams] (WIP) Add ER diagram APIs and sample data [ER Diagrams] Add ER diagram APIs and sample data Oct 15, 2024
Copy link

1 similar comment
Copy link

Copy link

Copy link

sonarcloud bot commented Oct 20, 2024

Copy link

sonarcloud bot commented Oct 20, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ingestion safe to test Add this label to run secure Github workflows on PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants