-
Notifications
You must be signed in to change notification settings - Fork 358
feat(experimental): add official support for model grants #5275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
7a002a0
feat(experimental): add official support for grants
newtonapple bfc365c
fix: rework dbt grants to sqlmesh grants converstion
newtonapple cb505d0
fix: snapshot test due to metadata changes
newtonapple ca207bc
remove _apply_grants_config _revoke_grants_config API from engine ada…
newtonapple a9996cc
fix: expand grants_config parsing to support more complex expressions
newtonapple 5efad1a
refactor: consolidate grants tests
newtonapple 603cef1
refactor: move private grants method to the end of EngineAdapter
newtonapple 4e42ba1
Push apply grants down to evaluation strategies
newtonapple 12fd5b0
fix: ignore grants for model kinds that don't support it
newtonapple f7e3b55
fix: add column types for non-SEED test models
newtonapple d2b1911
fix: apply grants to the physical layer table on promote
newtonapple e3d5356
refactor: add skip_grants flag to SnapshotEvaluator.create
newtonapple 9c3c2b2
fix: allow sync_grants_config to be duplicated on when planned w/ cre…
newtonapple bb5e171
remove virtual_environment_mode field_validator
newtonapple 4be3d74
fix: ensure dev_only VDE always applies grants in production
newtonapple 5354644
fix _replace_query_for_model now requires **kwargs & specifically "is…
newtonapple 4edece1
Change default grants_target_layer to VIRTUAL
newtonapple 19a00b9
add grants and grants_target_layer metadata migration
newtonapple 081c170
remove outdated comment
newtonapple 409940f
remove dead code
newtonapple 93c838d
fix: SCD Type 2 models should apply grants on insert
newtonapple 7f6d173
refactor: grants validations and _apply_grants logic
newtonapple 576b3c1
fix migration version conflict & test changes after rebasing main
newtonapple 84988c3
make is_snapshot_deployable optional
newtonapple 42030e4
Add metadata-only grants for different model types
newtonapple 5c4f9e2
feat: add snowflake grant support (#5433)
eakmanrq ec7a704
Remove physical grants application in promotion stage.
newtonapple a7d52da
feat: Databricks grants (#5436)
eakmanrq 0587a9d
feat: redshift grant support (#5440)
eakmanrq 598749a
fix: force seed model to rebuild on grant changes
newtonapple 11db09e
chore: grant mixin and normalize (#5447)
eakmanrq 98cad60
feat: add grants for BigQuery (#5444)
newtonapple 090fe11
uncomment integration tests & fix dupicate migration
newtonapple 4c14578
inline current_schema() expression in base_postgres._get_current_sche…
newtonapple d1639da
fix: map materialized views to views when granting permissions
newtonapple 4301c4d
refactor: rename grant_config to grants_config for consistency
newtonapple e8b93d3
fix: bigquery actually requires "MATERIALIZED VIEW" in DCL for
newtonapple 0a2495c
turn on integration tests.
newtonapple 3e06aca
fix redshift view grant
eakmanrq a212ec8
refactor: remove _grant_object_kind from redshift as object_type /
newtonapple 3d23892
Revert "turn on integration tests."
newtonapple 28e6156
fix: mypy after rebasing main
newtonapple File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.