-
Notifications
You must be signed in to change notification settings - Fork 3k
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(ingest): move datahub-lite to optional dep and add shim when missing #7097
Conversation
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.
LGTM!
@@ -155,15 +155,25 @@ def init() -> None: | |||
datahub.add_command(telemetry_cli) | |||
datahub.add_command(migrate) | |||
datahub.add_command(timeline) | |||
datahub.add_command(lite) | |||
|
|||
try: |
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.
Awesome changes here.
@@ -704,3 +704,25 @@ def get_aspects_for_entity( | |||
return {k: v for (k, v) in aspect_map.items() if k in aspects} | |||
else: | |||
return dict(aspect_map) | |||
|
|||
|
|||
def make_shim_command(name: str, suggestion: str) -> click.Command: |
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.
Really nice!
Looks like this:
Checklist