-
Notifications
You must be signed in to change notification settings - Fork 58
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 optional subdirectory for stage in application package #1916
Open
sfc-gh-pjafari
wants to merge
48
commits into
main
Choose a base branch
from
pj-subartifacts-subdirs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
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
8 tasks
…kedb/snowflake-cli into pj-subartifacts-subdirs
sfc-gh-pjafari
changed the base branch from
pj-template-processor-error
to
main
December 5, 2024 18:33
src/snowflake/cli/_plugins/nativeapp/entities/application_package.py
Outdated
Show resolved
Hide resolved
src/snowflake/cli/_plugins/nativeapp/entities/application_package.py
Outdated
Show resolved
Hide resolved
src/snowflake/cli/_plugins/nativeapp/entities/application_package.py
Outdated
Show resolved
Hide resolved
src/snowflake/cli/_plugins/nativeapp/entities/application_package.py
Outdated
Show resolved
Hide resolved
tests_integration/test_data/projects/napp_stage_subdirs/snowflake.yml
Outdated
Show resolved
Hide resolved
tests_integration/test_data/projects/napp_stage_subdirs/snowflake.yml
Outdated
Show resolved
Hide resolved
sfc-gh-pjafari
force-pushed
the
pj-subartifacts-subdirs
branch
from
December 18, 2024 15:04
8347118
to
b94bad5
Compare
sfc-gh-melnacouzi
previously approved these changes
Dec 18, 2024
@@ -192,7 +192,8 @@ def stage_diff( | |||
Diffs a stage with a local folder. | |||
""" | |||
diff: DiffResult = compute_stage_diff( | |||
local_root=Path(folder_name), stage_fqn=stage_name | |||
local_root=Path(folder_name), | |||
stage_path=StageManager._stage_path_part_factory(stage_name), # noqa: SLF001 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_stage_path_part_factory
is a private function, could you rename it to something like stage_path_patrs_of_str
and add a docstring?
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.
Pre-review checklist
Changes description
Added an optional
stage_subdirectory
to the application package.This change means that the root of the stage is no longer the assumed path to finding the artifacts and the
manifest.yml
. If specified, the application package will only ever operate onstage/stage_subdirectory
. This includesdeploy
,diff
, andversion create
.For detailed information on how this affects each command, if specified, refer to the design document.