Resolves #173 Update Environment Deployment #157
Closed
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.
This pull request includes significant changes to the
src/fabric_cicd/_items/_environment.py
file, focusing on simplifying the code and removing unnecessary functions. The changes include removing unused imports, refactoring thepublish_environments
function, and deleting several helper functions.Code simplification and refactoring:
src/fabric_cicd/_items/_environment.py
: Removed unused imports and redundant comments.src/fabric_cicd/_items/_environment.py
: Refactored thepublish_environments
function to useitem_guid
instead ofitem_name
and simplified the publishing process by removing the_publish_environment_metadata
function.src/fabric_cicd/_items/_environment.py
: Removed several helper functions (_check_environment_publish_state
,_update_compute_settings
,_get_repo_libraries
,_add_libraries
,_remove_libraries
,_remove_library
,_convert_environment_compute_to_camel
) that were no longer needed after the refactor.Behavioral change:
src/fabric_cicd/fabric_workspace.py
: Updated the_publish_item
function to exclude "Environment" from theshell_only_publish
list, ensuring that environments are fully published.