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(dbt): show source and compiled code in the UI #10028

Merged
merged 4 commits into from
Mar 19, 2024

Conversation

hsheth2
Copy link
Collaborator

@hsheth2 hsheth2 commented Mar 12, 2024

PR based on top of #10026

image

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 github-actions bot added ingestion PR or Issue related to the ingestion of metadata product PR or Issue related to the DataHub UI/UX devops PR or Issue related to DataHub backend & deployment labels Mar 12, 2024
@hsheth2 hsheth2 marked this pull request as ready for review March 12, 2024 19:53
@hsheth2 hsheth2 force-pushed the show-dbt-compiled-code branch from a876291 to bd3489f Compare March 12, 2024 19:59
Copy link
Collaborator

@asikowitz asikowitz left a comment

Choose a reason for hiding this comment

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

A couple nits, otherwise LGTM

const materialized = (baseEntity?.dataset?.viewProperties?.materialized && true) || false;
const language = baseEntity?.dataset?.viewProperties?.language || 'UNKNOWN';

const isDbt = baseEntity?.dataset?.platform?.name?.toLowerCase() === 'dbt';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we use a constant here? At the least, DBT in src/app/ingest/source/builder exists

const materialized = (baseEntity?.dataset?.viewProperties?.materialized && true) || false;
const language = baseEntity?.dataset?.viewProperties?.language || 'UNKNOWN';

const isDbt = baseEntity?.dataset?.platform?.name?.toLowerCase() === 'dbt';
const canShowFormatted = formattedLogic && true;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Missing conditional here? Otherwise can remove && true

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

replaced it with !!formattedLogic

@hsheth2 hsheth2 merged commit 64cb5d1 into master Mar 19, 2024
6 of 7 checks passed
@hsheth2 hsheth2 deleted the show-dbt-compiled-code branch March 19, 2024 01:16
sleeperdeep pushed a commit to sleeperdeep/datahub that referenced this pull request Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devops PR or Issue related to DataHub backend & deployment ingestion PR or Issue related to the ingestion of metadata product PR or Issue related to the DataHub UI/UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants