Skip to content

Commit

Permalink
chore: format, update changelog, and trigger release
Browse files Browse the repository at this point in the history
  • Loading branch information
z3z1ma committed May 5, 2024
1 parent 8ffda56 commit 3439838
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .changes/0.12.10.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 0.12.10 - 2024-05-05
### Added
* New --add-inheritance-for-specified-keys flag to allow inheriting arbitrary keys from model node
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
and is generated by [Changie](https://github.com/miniscruff/changie).


## 0.12.10 - 2024-05-05
### Added
* New --add-inheritance-for-specified-keys flag to allow inheriting arbitrary keys from model node

## 0.12.9 - 2024-04-07
### Changed
* update setup python and checkout action in ci workflow
Expand Down
12 changes: 3 additions & 9 deletions src/dbt_osmosis/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,7 @@ def wrapper(*args, **kwargs):
"--add-inheritance-for-specified-keys",
multiple=True,
type=click.STRING,
help=(
"If specified, will add inheritance for the specified keys."
)
help="If specified, will add inheritance for the specified keys.",
)
@click.argument("models", nargs=-1)
def refactor(
Expand Down Expand Up @@ -321,9 +319,7 @@ def refactor(
"--add-inheritance-for-specified-keys",
multiple=True,
type=click.STRING,
help=(
"If specified, will add inheritance for the specified keys."
)
help="If specified, will add inheritance for the specified keys.",
)
@click.argument("models", nargs=-1)
def organize(
Expand Down Expand Up @@ -478,9 +474,7 @@ def organize(
"--add-inheritance-for-specified-keys",
multiple=True,
type=click.STRING,
help=(
"If specified, will add inheritance for the specified keys."
)
help="If specified, will add inheritance for the specified keys.",
)
@click.argument("models", nargs=-1)
def document(
Expand Down
2 changes: 2 additions & 0 deletions tests/test_column_level_knowledge_propagator.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ def test_update_undocumented_columns_with_prior_knowledge_add_progenitor_to_meta
}
assert set(target_node.columns["customer_id"].tags) == set(["my_tag1", "my_tag2"])


def test_update_undocumented_columns_with_prior_knowledge_with_add_inheritance_for_specified_keys():
manifest = load_manifest()
manifest.nodes["model.jaffle_shop_duckdb.stg_customers"].columns[
Expand Down Expand Up @@ -559,6 +560,7 @@ def test_update_undocumented_columns_with_prior_knowledge_with_add_inheritance_f
)
assert set(target_node.columns["customer_id"]._extra["policy_tags"]) == set(["my_policy_tag1"])


@pytest.mark.parametrize("use_unrendered_descriptions", [True, False])
def test_use_unrendered_descriptions(use_unrendered_descriptions):
manifest = load_manifest()
Expand Down

0 comments on commit 3439838

Please sign in to comment.