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(ingestion/lookml): resolve access notation for LookML Constant #12277

Conversation

sagar-salvi-apptware
Copy link
Contributor

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

@sagar-salvi-apptware sagar-salvi-apptware changed the title lookml parameter support feat(ingestion/lookml): resolve access notation for LookML parameters Jan 6, 2025
@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Jan 6, 2025
@sagar-salvi-apptware sagar-salvi-apptware marked this pull request as ready for review January 8, 2025 11:14
@sagar-salvi-apptware sagar-salvi-apptware force-pushed the fix/ING-784-lookml-parameter branch from e6de550 to 4ef052f Compare January 8, 2025 11:18
@sagar-salvi-apptware sagar-salvi-apptware force-pushed the fix/ING-784-lookml-parameter branch from 4ef052f to 4a9ec88 Compare January 8, 2025 11:20
@datahub-cyborg datahub-cyborg bot added the needs-review Label for PRs that need review from a maintainer. label Jan 8, 2025
@datahub-cyborg datahub-cyborg bot added pending-submitter-response Issue/request has been reviewed but requires a response from the submitter and removed needs-review Label for PRs that need review from a maintainer. labels Jan 8, 2025
@datahub-cyborg datahub-cyborg bot added needs-review Label for PRs that need review from a maintainer. pending-submitter-response Issue/request has been reviewed but requires a response from the submitter and removed pending-submitter-response Issue/request has been reviewed but requires a response from the submitter needs-review Label for PRs that need review from a maintainer. labels Jan 8, 2025
Copy link
Contributor

@sgomezvillamor sgomezvillamor left a comment

Choose a reason for hiding this comment

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

LGTM

My only suggestion would be to refactor the logic in resolve_lookml_parameter into a separate class. Then, the different warning scenarios can be easily unit tested.

Copy link

codecov bot commented Jan 10, 2025

Codecov Report

Attention: Patch coverage is 98.03922% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...c/datahub/ingestion/source/looker/lookml_source.py 92.85% 1 Missing ⚠️
Files with missing lines Coverage Δ
...ahub/ingestion/source/looker/looker_dataclasses.py 84.07% <100.00%> (+0.58%) ⬆️
...ahub/ingestion/source/looker/looker_file_loader.py 80.39% <100.00%> (+0.39%) ⬆️
...ngestion/source/looker/looker_template_language.py 93.42% <100.00%> (+1.17%) ⬆️
...c/datahub/ingestion/source/looker/lookml_config.py 93.20% <100.00%> (+0.13%) ⬆️
...c/datahub/ingestion/source/looker/lookml_source.py 82.23% <92.85%> (+1.97%) ⬆️

... and 4 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d8ac6cd...31a1152. Read the comment docs.

@datahub-cyborg datahub-cyborg bot removed the pending-submitter-response Issue/request has been reviewed but requires a response from the submitter label Jan 10, 2025
@sagar-salvi-apptware sagar-salvi-apptware force-pushed the fix/ING-784-lookml-parameter branch from 91e5296 to 00d1392 Compare January 24, 2025 16:14
@datahub-cyborg datahub-cyborg bot added needs-review Label for PRs that need review from a maintainer. and removed pending-submitter-response Issue/request has been reviewed but requires a response from the submitter labels Jan 24, 2025
@datahub-cyborg datahub-cyborg bot added pending-submitter-response Issue/request has been reviewed but requires a response from the submitter and removed needs-review Label for PRs that need review from a maintainer. labels Jan 27, 2025
@datahub-cyborg datahub-cyborg bot added needs-review Label for PRs that need review from a maintainer. and removed pending-submitter-response Issue/request has been reviewed but requires a response from the submitter labels Jan 27, 2025
Copy link
Collaborator

@mayurinehate mayurinehate left a comment

Choose a reason for hiding this comment

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

LGTM

@mayurinehate mayurinehate requested a review from hsheth2 January 27, 2025 15:33
@datahub-cyborg datahub-cyborg bot added pending-submitter-response Issue/request has been reviewed but requires a response from the submitter and removed needs-review Label for PRs that need review from a maintainer. labels Jan 27, 2025
@hsheth2 hsheth2 dismissed their stale review January 27, 2025 16:57

Issues have been addressed

@datahub-cyborg datahub-cyborg bot added merge-pending-ci A PR that has passed review and should be merged once CI is green. and removed pending-submitter-response Issue/request has been reviewed but requires a response from the submitter labels Jan 27, 2025
@mayurinehate mayurinehate merged commit 563656c into datahub-project:master Jan 28, 2025
190 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 merge-pending-ci A PR that has passed review and should be merged once CI is green.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants