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

fix(ingestion/looker): ingest looks not part of dashboard #8140

Conversation

siddiquebagwan
Copy link
Contributor

No description provided.

@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label May 26, 2023
@anshbansal anshbansal requested a review from hsheth2 May 29, 2023 08:27
)
)
# Add soft deleted looks
looks.extend(self.search_looks(fields=fields, deleted=True))
Copy link
Collaborator

Choose a reason for hiding this comment

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

why are we including soft-deleted looks?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have config to include soft deleted Dashboards source_config.include_deleted.
I put a condition on line 214 to add soft deleted looks if include_deleted is set

self.client_stats.search_looks_calls += 1
return list(
self.client.search_looks(
fields=self.__fields_mapper(fields),
Copy link
Collaborator

Choose a reason for hiding this comment

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

just an fyi - python convention is to use a single _ for private methods. the double underscore __method has a different meaning and should be avoided

Copy link
Contributor Author

@siddiquebagwan siddiquebagwan Jun 6, 2023

Choose a reason for hiding this comment

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

noted...

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 nits but otherwise lgtm

@@ -135,7 +135,8 @@ class LookerDashboardSourceConfig(
description="Patterns for selecting chart ids that are to be included",
)
include_deleted: bool = Field(
False, description="Whether to include deleted dashboards."
False,
description="Whether to include deleted dashboards and deleted independent looks.",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
description="Whether to include deleted dashboards and deleted independent looks.",
description="Whether to include deleted dashboards and looks.",

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -1196,6 +1203,8 @@ def extract_independent_looks(self) -> Iterable[MetadataWorkUnit]:
dashboard_element=dashboard_element
)

self.reporter.report_stage_end("extract_independent_looks")
Copy link
Collaborator

Choose a reason for hiding this comment

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

The indentation is off here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@anshbansal anshbansal merged commit 45e592b into datahub-project:master Jun 8, 2023
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ingestion PR or Issue related to the ingestion of metadata
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants