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
fabric_cicd
module to improve error handling, file processing, and the publishing workflow for different item types. The most important changes include modifying error handling in theinvoke
method, adding a newItemFile
class for file processing, and updating the publishing methods for data pipelines, notebooks, and reports.Error Handling Improvements:
src/fabric_cicd/_common/_fabric_endpoint.py
: Improved error message handling by checking theContent-Type
header to determine if the response is JSON. [1] [2] [3]New File Processing Class:
src/fabric_cicd/_common/_item_file.py
: Introduced theItemFile
class to handle file reading, encoding, and path manipulation.Publishing Workflow Enhancements:
src/fabric_cicd/_items/_datapipeline.py
: Added_process_datapipeline_file_contents
function to process data pipeline files during publishing. [1] [2]src/fabric_cicd/_items/_notebook.py
: Added_process_notebook_file_contents
function to replace default workspace IDs in notebook files during publishing.src/fabric_cicd/_items/_report.py
: Added_process_report_file_contents
function to handle semantic model dependencies in report files during publishing. [1] [2]Codebase Simplification:
src/fabric_cicd/fabric_workspace.py
: Refactored_publish_item
method to use the newItemFile
class and streamline the file processing workflow. [1] [2] [3] [4] [5]