Repository navigation
Rename per-type deploy files after their resource key - #8041
Draft
janniklasrose wants to merge 1 commit into
Draft
janniklasrose wants to merge 1 commit into
janniklasrose wants to merge 1 commit into
Conversation
Per-type files are named after the resource key under resources:, as <key>.go or <key>_<aspect>.go. These three files and their tests hold logic for a single resource type, so they follow the same rule. Content is unchanged. Co-authored-by: Isaac <no-reply@databricks.com>
Collaborator
✅ Integration test reportCommit: 9d6b639
Top 4 slowest tests (at least 2 minutes):
|
This branch has not been deployed
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
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
Pure renames with
git mv, no content change:bundle/deploy/metadata/annotate_jobs.gobundle/deploy/metadata/jobs_annotate.gobundle/deploy/metadata/annotate_pipelines.gobundle/deploy/metadata/pipelines_annotate.gobundle/deploy/check_dashboards_modified_remotely.gobundle/deploy/dashboards_modified_remotely.goTheir test files move with them. No Go identifier changes, so the mutator names in telemetry stay the same.
Why
Files that hold logic about one resource type are named after the key of that type under
resources:(<key>.goor<key>_<aspect>.go). These three put the key last, so tooling that recognises per-type files by name treats them as shared code.Tests
This pull request and its description were written by Isaac.