-
Notifications
You must be signed in to change notification settings - Fork 1.8k
fix(dbt-doc): Allow copying asset when dbt docs command is run outside th… #11219
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
Conversation
Thanks for your pull request, and welcome to our community! We require contributors to sign our Contributor License Agreement and we don't seem to have your signature on file. Check out this article for more information on why we have a CLA. In order for us to review and merge your code, please submit the Individual Contributor License Agreement form attached above above. If you have questions about the CLA, or if you believe you've received this message in error, please reach out through a comment on this PR. CLA has not been signed by users: @cedric-orange |
Before correction, when running After this fix: there is now a directory on target output containing assets. |
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.
thanks for the PR @cedric-orange! You're right that it's a small change.
Two requests:
- remove the
.devcontainer/devcontainer.json
file you've added - if possible add a unit test to ensure we don't break this behavior in future releases. #8388 contains a test that Doug thinks would get you most of the way but needs some tweaking
Looking at the linked issue, there was a unit
Thanks for the review, I added a new test according to this topic. I also remove devcontainer.json file. |
Hello @zqureshi , Any update on this issue ? |
Concerns have been addressed, unit test added.
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.
Thank you @cedric-orange!
@jtcohen6 and I reviewed and this looks good.
Closing and reopening to trigger tests. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #11219 +/- ##
==========================================
- Coverage 88.90% 88.89% -0.01%
==========================================
Files 194 194
Lines 24509 24510 +1
==========================================
Hits 21789 21789
- Misses 2720 2721 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Hey @cedric-orange there is a github change that went into effect yesterday that is causing one of the CI tests to fail. Once we resolve that (fix is already up) we should be good to merge this. |
@cedric-orange the fix has been merged, if you want to rebase your changes on top of latest |
@zqureshi This fork has just been updated to sync dbt-core main. |
Thank you so much @cedric-orange! 🚀 |
Resolves #9308
Problem
The directory assets is not being copied to target/assets when running dbt docs generate if you are not in root dbt project.
Solution
Add dbt_project_dir to asset path
Note: I added a devcontainer.json file to have quickly a full-featured development environment
Checklist