-
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(dbt): show source and compiled code in the UI #10028
Conversation
a876291
to
bd3489f
Compare
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.
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'; |
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.
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; |
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.
Missing conditional here? Otherwise can remove && true
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.
replaced it with !!formattedLogic
PR based on top of #10026Checklist