You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Enhance logging in grant_object macro to include detailed information about grants and roles being processed
* Refactor grant_object macro to improve logging and ensure unique role privileges are processed correctly
* Refactor grant management macros for consistency and improved logging
- Updated grant_share_read and grant_share_read_specific_schema macros to implement early exits and structured logging.
- Refactored ownership macros to include early exits and enhanced logging for ownership changes.
- Introduced shared helper macros for grant management to reduce redundancy and improve maintainability.
- Updated documentation in grants.yml and other macro YAML files for clarity and consistency.
- Added a new grants_smoke_test macro for lightweight validation of grant macros in dry-run mode.
- Standardized argument signatures and descriptions across macros for better usability.
* Add grant_schema_procedure_usage macros for managing procedure usage privileges
* Fix grant_procedure_usage macro to correctly access procedure names from query results
* Update README.md
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
* Update macros/grants/_helpers.sql
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
---------
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,10 @@
1
1
# Data Engineers Snowflake DataOps Utils Project Changelog
2
2
This file contains the changelog for the Data Engineers Snowflake DataOps Utils project, detailing updates, fixes, and enhancements made to the project over time.
3
3
4
+
## v0.3.9 2024-06-10 - Grant Object For Procedures
5
+
6
+
* added macro `grant_procedure_usage` to enable the ability to grant usage of a stored procedure to a role
7
+
4
8
## v0.3.8.5 2025-08-25 - Grant Usage to Application
5
9
6
10
* added grant usage to application for `sp_sync_` in the `grant_privileges` macro
Below is a catalogue of publicly supported macros grouped by domain. Internal helpers (those with docs.show: false or purely supportive behavior) are intentionally excluded. Where helpful, a short description is inlined; consult the YAML files for full argument metadata.
17
17
18
-
-`get_populated_array`
19
-
-`get_populated_array_value_as_string`
20
-
-`get_populated_array_value_as_number`
21
-
-`get_populated_numeric_value`
22
-
-`get_populated_string_value`
18
+
**checks**
19
+
20
+
-`get_populated_array` – first non-empty array from two candidates
21
+
-`get_populated_array_value_as_string` – join first non-empty array
22
+
-`get_populated_array_value_or_string_as_string` – array joined or fallback string
23
+
-`get_populated_numeric_value` – first numeric else 0
24
+
-`get_populated_string_value` – first string else ''
23
25
24
26
**clean**
25
27
26
-
-`clean_functions`
27
-
-`clean_generic`
28
-
-`clean_models`
29
-
-`clean_objects`
30
-
-`clean_schemas`
31
-
-`clean_stale_models`
32
-
-`drop_object`
28
+
-`clean_functions` – drop orphaned UDFs
29
+
-`clean_generic` – drop orphaned streams/tasks/stages
30
+
-`clean_models` – drop orphaned tables/views/external tables
31
+
-`clean_objects` – orchestrate all clean macros
32
+
-`clean_schemas` – drop schemas not in project
33
+
-`clean_stale_models` – drop models older than N days
33
34
34
35
**database**
35
36
36
-
-`database_clone`
37
-
-`database_desctroy`
38
-
-`schema_clone`
37
+
-`database_clone` – zero-copy clone a database
38
+
-`database_destroy` – drop database
39
+
-`schema_clone` – zero-copy clone a schema
39
40
40
-
**dependancies**
41
+
**dependencies** (non-lineage referencing)
41
42
42
-
-`depends_on_ref`
43
-
-`depends_on_source`
43
+
-`depends_on_ref` – commented reference to model
44
+
-`depends_on_source` – commented reference to source
44
45
45
46
**dynamic_tables**
46
47
47
-
-`target_lag_environment`
48
-
-`target_warehouse_environment`
48
+
-`target_lag_environment` – lag by environment
49
+
-`target_warehouse_environment` – warehouse by environment
49
50
50
-
**grants**
51
+
**grants** (see refactored patterns section below)
51
52
52
53
-`grant_database_ownership`
53
54
-`grant_integration_ownership`
@@ -56,15 +57,23 @@ Add the following to your packages.yml file
0 commit comments