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

feat(cli): Adds ability to upload recipes to DataHub's UI #8317

Merged
merged 24 commits into from
Aug 1, 2023

Conversation

pedro93
Copy link
Collaborator

@pedro93 pedro93 commented Jun 27, 2023

Also updates listIngestionSources graphQL endpoint to use filters. This is to bring it in-line with other list endpoints. I added up not using it but I think it's useful.

Checklist

Adds support to upload recipes to DataHub's UI ingestion section using the cli.

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@pedro93 pedro93 changed the title feat(cli): Adds ability to upload recipes to DataHub feat(cli): Adds ability to upload recipes to DataHub's UI Jun 27, 2023
@github-actions github-actions bot added docs Issues and Improvements to docs ingestion PR or Issue related to the ingestion of metadata labels Jun 27, 2023
docs/cli.md Show resolved Hide resolved
metadata-ingestion/src/datahub/cli/ingest_cli.py Outdated Show resolved Hide resolved
metadata-ingestion/src/datahub/cli/ingest_cli.py Outdated Show resolved Hide resolved
metadata-ingestion/src/datahub/cli/ingest_cli.py Outdated Show resolved Hide resolved
metadata-ingestion/setup.py Outdated Show resolved Hide resolved
metadata-ingestion/src/datahub/cli/ingest_cli.py Outdated Show resolved Hide resolved
metadata-ingestion/src/datahub/cli/ingest_cli.py Outdated Show resolved Hide resolved
metadata-ingestion/src/datahub/cli/ingest_cli.py Outdated Show resolved Hide resolved
metadata-ingestion/src/datahub/cli/ingest_cli.py Outdated Show resolved Hide resolved
metadata-ingestion/src/datahub/cli/ingest_cli.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@hsheth2 hsheth2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

few minor nits, but good to merge once those are fixed

It'd be great to add some testing for this too

config: str,
urn: str,
executor_id: str,
cli_version: str,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for the non-required ones with no defaults, let's fix the type annotations to be Optional[str]

click.echo(
f"✅ Successfully wrote data ingestion source metadata for recipe {name}:"
)
click.echo(response)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this show the urn of the newly created ingestion recipe?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not the urn, the user visible name

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it's not too much work, can we should the urn too?

Deploy an ingestion recipe to your DataHub instance.

The urn of the ingestion source will be based on the name parameter in the format:
urn:li:dataHubIngestionSource:<name>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is this name -> urn logic? is that in the backend?

@hsheth2
Copy link
Collaborator

hsheth2 commented Jul 28, 2023

re tests - you can take a look at smoke-test/tests/cli/delete_cmd/test_timeseries_delete.py as an example

@iprentic iprentic merged commit a4a8182 into datahub-project:master Aug 1, 2023
43 checks passed
@hsheth2 hsheth2 deleted the ps-add-recipe-deploy branch August 4, 2023 17:37
yoonhyejin pushed a commit that referenced this pull request Aug 24, 2023
spadhi7 added a commit to spadhi7/datahub that referenced this pull request Aug 29, 2023
* tag 'v0.10.5': (222 commits)
  fix(test): increase siblings.js test stability (datahub-project#8542)
  feat(search): Allow aggregating on facets that are not explicitly part of default filter set (datahub-project#8540)
  fix(ui) Make multiple small updates to new search and browse (datahub-project#8524)
  feat(presto-on-hive): allow v1 fieldpaths in the presto-on-hive source (datahub-project#8474)
  feat(cli): Adds ability to upload recipes to DataHub's UI (datahub-project#8317)
  feat(browseV2): add browseV2 logic to system update (datahub-project#8506)
  fix(ingest/json-schema): convert non-string enums to strings (datahub-project#8479)
  feat(ingestion/tableau): support column level lineage for custom sql (datahub-project#8466)
  test(ingest): test case statements with sql parser (datahub-project#8437)
  feat(ingest/vertica): performance improvement and bug fixes (datahub-project#8328)
  ci: reduce git fetch depth (datahub-project#8473)
  fix(ingest): remove duplication of tags (datahub-project#8532)
  docs: small update to homepage (datahub-project#8483)
  fix(ingest): pin boto3-stubs in CI (datahub-project#8527)
  feat(siblings): hiding non-existant siblings in FE (datahub-project#8528)
  fix(ingest/build): Fix sagemaker mypy and flake8 issues (datahub-project#8530)
  feat(metrics): add metrics for aspect write and bytes (datahub-project#8526)
  feat(elasticsearch): allow bulk delete (datahub-project#8424)
  fix(ui): use locale lowercase when filtering columns of an entity in the lineage (datahub-project#8213)
  fix(auth): ignore case when comparing http headers (datahub-project#8356)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Issues and Improvements to docs ingestion PR or Issue related to the ingestion of metadata
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants