Skip to content

Commit

Permalink
invalidate_hard_deletes for snapshots (#100)
Browse files Browse the repository at this point in the history
* update schemas and tests

* update to boolean or jinja string ref
  • Loading branch information
dave-connors-3 authored Nov 1, 2023
1 parent d5beba0 commit 5072929
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 0 deletions.
9 changes: 9 additions & 0 deletions schemas/1.5/dbt_project-1.5.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@
},
"additionalProperties": false
},
"invalidate_hard_deletes": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"jinja_string": {
"type": "string",
"pattern": "\\{\\{.*\\}\\}"
Expand Down Expand Up @@ -557,6 +560,9 @@
"+group": {
"$ref": "#/$defs/group"
},
"+invalidate_hard_deletes": {
"$ref": "#/$defs/invalidate_hard_deletes"
},
"+meta": {
"$ref": "#/$defs/meta"
},
Expand Down Expand Up @@ -608,6 +614,9 @@
"group": {
"$ref": "#/$defs/group"
},
"invalidate_hard_deletes": {
"$ref": "#/$defs/invalidate_hard_deletes"
},
"meta": {
"$ref": "#/$defs/meta"
},
Expand Down
9 changes: 9 additions & 0 deletions schemas/1.6/dbt_project-1.6.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@
},
"additionalProperties": false
},
"invalidate_hard_deletes": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"jinja_string": {
"type": "string",
"pattern": "\\{\\{.*\\}\\}"
Expand Down Expand Up @@ -519,6 +522,9 @@
"+group": {
"$ref": "#/$defs/group"
},
"+invalidate_hard_deletes": {
"$ref": "#/$defs/invalidate_hard_deletes"
},
"+meta": {
"$ref": "#/$defs/meta"
},
Expand Down Expand Up @@ -570,6 +576,9 @@
"group": {
"$ref": "#/$defs/group"
},
"invalidate_hard_deletes": {
"$ref": "#/$defs/invalidate_hard_deletes"
},
"meta": {
"$ref": "#/$defs/meta"
},
Expand Down
9 changes: 9 additions & 0 deletions schemas/dbt_project.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@
},
"additionalProperties": false
},
"invalidate_hard_deletes": {
"$ref": "#/$defs/boolean_or_jinja_string"
},
"jinja_string": {
"type": "string",
"pattern": "\\{\\{.*\\}\\}"
Expand Down Expand Up @@ -527,6 +530,9 @@
"+grants": {
"$ref": "#/$defs/grants"
},
"+invalidate_hard_deletes": {
"$ref": "#/$defs/invalidate_hard_deletes"
},
"+meta": {
"$ref": "#/$defs/meta"
},
Expand Down Expand Up @@ -575,6 +581,9 @@
"grants": {
"$ref": "#/$defs/grants"
},
"invalidate_hard_deletes": {
"$ref": "#/$defs/invalidate_hard_deletes"
},
"meta": {
"$ref": "#/$defs/meta"
},
Expand Down
1 change: 1 addition & 0 deletions tests/1.5/valid/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ tests:
snapshots:
test:
+target_schema: schema
+invalidate_hard_deletes: true
+target_database: database
+grants:
select: ["role"]
Expand Down
1 change: 1 addition & 0 deletions tests/1.6/valid/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ snapshots:
test:
+target_schema: schema
+target_database: database
+invalidate_hard_deletes: true
+grants:
select: ['role']

Expand Down

0 comments on commit 5072929

Please sign in to comment.