Skip to content

Commit

Permalink
Merge branch 'current' into feat_defer_clone
Browse files Browse the repository at this point in the history
  • Loading branch information
aranke authored Oct 16, 2023
2 parents c723424 + 5c40a44 commit 89e0c3f
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 11 deletions.
28 changes: 28 additions & 0 deletions website/docs/reference/commands/deps.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,31 @@ Installing calogica/[email protected]
Updates available for packages: ['tailsdotcom/dbt_artifacts', 'dbt-labs/snowplow']
Update your versions in packages.yml, then run dbt deps
```

<VersionBlock firstVersion="1.7">

dbt generates the `package-lock.yml` file in the _project_root_ where `packages.yml` is recorded, which contains all the resolved packages, the first time you run `dbt deps`. Each subsequent run records the packages installed in this file. If the subsequent `dbt deps` runs contain no updated packages in `depenedencies.yml` or `packages.yml`, dbt-core installs from `package-lock.yml`.

When you update the package spec and run `dbt deps` again, the package-lock and package files update accordingly. You can run `dbt deps --lock` to update the `package-lock.yml` with the most recent dependencies from `packages`.

The `--add` flag allows you to add a package to the `packages.yml` with configurable `--version` and `--source` information. The `--dry-run` flag, when set to `False`(default), recompiles the `package-lock.yml` file after a new package is added to the `packages.yml` file. Set the flag to `True` for the changes to not persist.

Examples of the `--add` flag:
```shell
# add package from hub (--source arg defaults to "hub")
dbt deps add --package dbt-labs/dbt_utils --version 1.0.0

# add package from hub with semantic version
dbt deps add --package dbt-labs/snowplow --version ">=0.7.0,<0.8.0"

# add package from git
dbt deps add --package https://github.com/fivetran/dbt_amplitude --version v0.3.0 --source git

# add package from local (--version not required for local)
dbt deps add --package /opt/dbt/redshift --source local

# add package to packages.yml WITHOUT updating package-lock.yml
dbt deps add --package dbt-labs/dbt_utils --version 1.0.0 --dry-run True

```
</VersionBlock>
22 changes: 11 additions & 11 deletions website/snippets/_enterprise-permissions-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ Account roles enable you to manage the dbt Cloud account and manage the account
| Audit logs | R | | | R | |
| Auth provider | W | | | W | R |
| Billing | W | W | | | R |
| Groups | W | | R | W | R |
| Invitations | W | | W | W | R |
| IP restrictions | W | | | W | R |
| Licenses | W | | W | W | R |
| Members | W | | W | W | R |
| Project (create) | W | | W | | |
| Public models | R | R | R | R | R |
Expand All @@ -34,20 +36,18 @@ Account roles enable you to manage the dbt Cloud account and manage the account
|:-------------------------|:-------------:|:-------------:|:---------------:|:--------------:|:------:|
| Connections | W | | W | | R |
| Credentials | W | | W | | R |
| Custom env. variables | W | | W | | R |
| Custom env. variables | W | | W | | R |
| dbt adapters | W | | W | | R |
| Develop (IDE) | W | | W | | |
| Environments | W | | W | | R |
| Groups | W | | R | W | R |
| Jobs | W | | W | | R |
| Licenses | W | | W | W | R |
| Metadata | R | | R | | R |
| Permissions | W | | W | W | R |
| Profile | W | | W | | R |
| Projects | W | | W | R | R |
| Repositories | W | | W | | R |
| Runs | W | | W | | R |
| Semantic Layer Config | W | | W | | R |
| Semantic Layer Config | W | | W | | R |


### Project role permissions
Expand All @@ -61,26 +61,26 @@ The project roles enable you to work within the projects in various capacities.
| Account settings | R | | R | | R | | | | | | R | |
| Auth provider | | | | | | | | | | | | |
| Billing | | | | | | | | | | | | |
| Invitations | W | R | R | R | R | R | R | | | R | R | |
| Members | W | | R | R | R | | | | | R | R | |
| Groups | R | | R | R | R | | | | | R | R | |
| Invitations | W | R | R | R | R | R | R | | | R | R | |
| Licenses | W | R | R | R | R | R | R | | | | R | |
| Members | W | | R | R | R | | | | | R | R | |
| Project (create) | | | | | | | | | | | | |
| Public models | R | R | R | R | R | R | R | R | R | R | R | R |
| Public models | R | R | R | R | R | R | R | R | R | R | R | R |
| Service tokens | | | | | | | | | | | | |
| Webhooks | W | | | W | | | | | | | | W |
| Webhooks | W | | | W | | | | | | | | W |

#### Project permissions for project roles

|Project-level permission | Admin | Analyst | Database admin | Developer | Git Admin | Job admin | Job viewer | Metadata | Semantic Layer | Stakeholder | Team admin | Webhook |
|--------------------------|:-----:|:-------:|:--------------:|:---------:|:---------:|:---------:|:-----------:|:--------:|:--------------:|:-----------:|:----------:|:------:|
| Connections | W | R | W | R | R | R | | | | R | R | |
| Credentials | W | W | W | W | R | W | | | | R | R | |
| Custom env. variables | W | W | W | W | W | W | R | | | R | W | |
| Custom env. variables | W | W | W | W | W | W | R | | | R | W | |
| dbt adapters | W | W | W | W | R | W | | | | R | R | |
| Develop (IDE) | W | W | | W | | | | | | | | |
| Environments | W | R | R | R | R | W | R | | | R | R | |
| Groups | R | | R | R | R | | | | | R | R | |
| Jobs | W | R | R | W | R | W | R | | | R | R | |
| Licenses | W | R | R | R | R | R | R | | | | R | |
| Metadata | R | R | R | R | R | R | R | R | | R | R | |
| Permissions | W | | R | R | R | | | | | | W | |
| Profile | W | R | W | R | R | R | | | | R | R | |
Expand Down

0 comments on commit 89e0c3f

Please sign in to comment.