Closed mdesmet closed 3 weeks ago
The pull request modifies the DBTCloudProjectIntegration
class in src/dbt_client/dbtCloudIntegration.ts
. The initializePaths
method has been updated to replace the lookupValue
function with a new method for setting the projectName
using DBTProject.readAndParseProjectConfig
. This change ensures the project name is sourced from the dbt_project.yml
configuration file. Additionally, error handling within this method has been improved, providing clearer error messages when the environment show
command fails to return necessary information.
File | Change Summary |
---|---|
src/dbt_client/dbtCloudIntegration.ts | - Updated initializePaths to use DBTProject.readAndParseProjectConfig for setting projectName instead of regex lookup.- Improved error messages related to the environment show command. |
DBTCloudProjectIntegration
class in src/dbt_client/dbtCloudIntegration.ts
, which is directly related to the changes made in the main PR that also modifies the same class and method (initializePaths
).Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Hey @mdesmet, here is an example of how you can ask me to improve this pull request:
@sweep Add unit tests for the new project name reading logic in `DBTCloudProjectIntegration` that cover:
1. Successfully reading project name from dbt_project.yml
2. Handling the case where dbt_project.yml cannot be read/parsed
3. Handling the case where project name is missing from dbt_project.yml
:book: For more information on how to use Sweep, please read our documentation.
Overview
Problem
Describe the problem you are solving. Mention the ticket/issue if applicable.
Solution
Describe the implemented solution. Add external references if needed.
Screenshot/Demo
A picture is worth a thousand words. Please highlight the changes if applicable.
How to test
Checklist
README.md
updated and added information about my changeSummary by CodeRabbit
New Features
dbt_project.yml
configuration file for improved accuracy.Bug Fixes
dbt environment show
command.