Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat(ingest): add rewrite option for metadata file check #5763

Merged
merged 5 commits into from
Sep 1, 2022

Conversation

hsheth2
Copy link
Collaborator

@hsheth2 hsheth2 commented Aug 29, 2022

Checklist

  • 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

@github-actions
Copy link

github-actions bot commented Aug 29, 2022

Unit Test Results (build & test)

508 tests  ±0   508 ✔️ ±0   8m 36s ⏱️ -33s
118 suites ±0       0 💤 ±0 
118 files   ±0       0 ±0 

Results for commit c25a3ed. ± Comparison against base commit 6aec44d.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Aug 29, 2022

Unit Test Results (metadata ingestion)

       8 files         8 suites   56m 40s ⏱️
   658 tests    655 ✔️ 3 💤 0
1 316 runs  1 310 ✔️ 6 💤 0

Results for commit c25a3ed.

♻️ This comment has been updated with latest results.

is_flag=True,
help="Rewrite the JSON file to it's canonical form.",
)
def metadata_file(json_file: str, rewrite: bool) -> None:
Copy link
Contributor

Choose a reason for hiding this comment

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

do you want to leave the old command in for backwards compat, with help text saying: "Deprecated: use metadata_file instead"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Given that we don't reference this command in our docs at all, my suspicion is that nobody was really using it (we really should have telemetry for cli commands by default). We can add the alias + deprecation warning, but I don't think it's necessary.

Copy link
Contributor

@shirshanka shirshanka left a comment

Choose a reason for hiding this comment

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

LGTM

@shirshanka shirshanka merged commit c05f397 into datahub-project:master Sep 1, 2022
@hsheth2 hsheth2 deleted the mcp-canonical-command branch December 15, 2022 02:32
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants