Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Adds support for dbt Deps #30

Merged
merged 3 commits into from
Nov 18, 2021
Merged

Adds support for dbt Deps #30

merged 3 commits into from
Nov 18, 2021

Conversation

racheldaniel
Copy link
Contributor

@racheldaniel racheldaniel commented Nov 3, 2021

Adds a /deps endpoint that expects a dict of packages with package (name) and version keys, uses the core function package_version to make a call to the hub API for package details, and returns all necessary details for package installation to the client.

Right now I'm differentiating hub packages by expecting the package and version keys (as other package types use different keys). I have no idea whether or not this is sound. As it stands, if the package requested is not available on the hub site, the server will return the error to the client (status will be 200, but ok will be False and the data will contain the error). If this dbt-server PR is approved, I'll update this handling to match RuntimeException handling (though perhaps not with a blanket catch) and will update handling client-side accordingly.

Corresponding PR in dbt-client: https://github.com/dbt-labs/dbt-client/pull/10
Small change made to dbt-core: dbt-labs/dbt-core#4218

@racheldaniel racheldaniel changed the title [DRAFT] Adds beginnings of deps support Adds support for dbt Deps Nov 8, 2021
@racheldaniel racheldaniel marked this pull request as ready for review November 8, 2021 14:13
@racheldaniel racheldaniel requested a review from kwigley November 16, 2021 19:41
Copy link
Contributor

@kwigley kwigley left a comment

Choose a reason for hiding this comment

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

one question, looks good otherwise 👍

dbt_server/views.py Show resolved Hide resolved
@racheldaniel racheldaniel merged commit 4ee03fb into main Nov 18, 2021
@racheldaniel racheldaniel deleted the tiger/support-dbt-deps branch November 18, 2021 19:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants