-
Notifications
You must be signed in to change notification settings - Fork 57
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
Add configurable presets for name prefixes, tags, etc. #1490
Merged
lennartkats-db
merged 29 commits into
databricks:main
from
lennartkats-db:cp-mutator-settings
Aug 19, 2024
Merged
Add configurable presets for name prefixes, tags, etc. #1490
lennartkats-db
merged 29 commits into
databricks:main
from
lennartkats-db:cp-mutator-settings
Aug 19, 2024
Conversation
This file contains 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
lennartkats-db
changed the title
[WIP] Add configurable transformations for name prefixes, tags, etc.
Add configurable transformations for name prefixes, tags, etc.
Jun 12, 2024
1 task
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1490 +/- ##
==========================================
+ Coverage 52.25% 53.69% +1.43%
==========================================
Files 317 353 +36
Lines 18004 20406 +2402
==========================================
+ Hits 9408 10956 +1548
- Misses 7903 8642 +739
- Partials 693 808 +115 ☔ View full report in Codecov by Sentry. |
pietern
reviewed
Jun 18, 2024
Thanks, will be great to have this. |
lennartkats-db
force-pushed
the
cp-mutator-settings
branch
from
June 19, 2024 08:33
6fd240d
to
82e1d49
Compare
pietern
reviewed
Jun 20, 2024
pietern
added a commit
that referenced
this pull request
Jun 21, 2024
This cherry-picks from #1490 to address an issue that came up in #1511. The function `dyn.SetByPath` requires intermediate values to be present. If they are not, it returns an error that it cannot index a map. This is not an issue on main where the intermediate maps are always created, even if they are not present in the dynamic configuration tree. As of #1511 we'll no longer populate empty maps for empty structs if they are not explictly set (i.e. a non-nil pointer). We can write a bool pointer to avoid this issue altogether.
github-merge-queue bot
pushed a commit
that referenced
this pull request
Jun 21, 2024
## Changes This cherry-picks from #1490 to address an issue that came up in #1511. The function `dyn.SetByPath` requires intermediate values to be present. If they are not, it returns an error that it cannot index a map. This is not an issue on main, where the intermediate maps are always created, even if they are not present in the dynamic configuration tree. As of #1511, we'll no longer populate empty maps for empty structs if they are not explicitly set (i.e., a non-nil pointer). This change writes a bool pointer to avoid this issue altogether. ## Tests Unit tests pass.
lennartkats-db
force-pushed
the
cp-mutator-settings
branch
2 times, most recently
from
July 19, 2024 19:39
c001314
to
40f3bb4
Compare
@pietern PTAL, I took another pass here |
pietern
reviewed
Aug 12, 2024
lennartkats-db
force-pushed
the
cp-mutator-settings
branch
from
August 14, 2024 14:53
61704c8
to
6159c3c
Compare
pietern
approved these changes
Aug 19, 2024
andrewnester
approved these changes
Aug 19, 2024
github-merge-queue bot
pushed a commit
that referenced
this pull request
Aug 21, 2024
## Changes In #1490 we regressed and started using the development mode prefix for UC schemas regardless of the mode of the bundle target. This PR fixes the regression and adds a regression test ## Tests Failing integration tests pass now.
andrewnester
added a commit
that referenced
this pull request
Aug 21, 2024
CLI: * Added filtering flags for cluster list commands ([#1703](#1703)). Bundles: * Remove reference to "dbt" in the default-sql template ([#1696](#1696)). * Pause continuous pipelines when 'mode: development' is used ([#1590](#1590)). * Add configurable presets for name prefixes, tags, etc. ([#1490](#1490)). * Report all empty resources present in error diagnostic ([#1685](#1685)). * Improves detection of PyPI package names in environment dependencies ([#1699](#1699)). * [DAB] Add support for requirements libraries in Job Tasks ([#1543](#1543)). * Add paths field to bundle sync configuration ([#1694](#1694)). Internal: * Add `import` option for PyDABs ([#1693](#1693)). * Make fileset take optional list of paths to list ([#1684](#1684)). * Pass through paths argument to libs/sync ([#1689](#1689)). * Correctly mark package names with versions as remote libraries ([#1697](#1697)). * Share test initializer in common helper function ([#1695](#1695)). * Make `pydabs/venv_path` optional ([#1687](#1687)). * Use API mocks for duplicate path errors in workspace files extensions client ([#1690](#1690)). * Fix prefix preset used for UC schemas ([#1704](#1704)).
github-merge-queue bot
pushed a commit
that referenced
this pull request
Aug 22, 2024
CLI: * Added filtering flags for cluster list commands ([#1703](#1703)). Bundles: * Remove reference to "dbt" in the default-sql template ([#1696](#1696)). * Pause continuous pipelines when 'mode: development' is used ([#1590](#1590)). * Add configurable presets for name prefixes, tags, etc. ([#1490](#1490)). * Report all empty resources present in error diagnostic ([#1685](#1685)). * Improves detection of PyPI package names in environment dependencies ([#1699](#1699)). * [DAB] Add support for requirements libraries in Job Tasks ([#1543](#1543)). * Add paths field to bundle sync configuration ([#1694](#1694)). Internal: * Add `import` option for PyDABs ([#1693](#1693)). * Make fileset take optional list of paths to list ([#1684](#1684)). * Pass through paths argument to libs/sync ([#1689](#1689)). * Correctly mark package names with versions as remote libraries ([#1697](#1697)). * Share test initializer in common helper function ([#1695](#1695)). * Make `pydabs/venv_path` optional ([#1687](#1687)). * Use API mocks for duplicate path errors in workspace files extensions client ([#1690](#1690)). * Fix prefix preset used for UC schemas ([#1704](#1704)).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Changes
This adds configurable transformations based on the transformations currently seen in
mode: development
.Example databricks.yml showcasing how some transformations:
Tests