[Power Pages][Actions Hub][Code Site] Skip properties when present in powerpages.config.json #1204
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 introduces enhancements to the Power Pages code upload functionality, including improved configuration file handling, better error management, and expanded test coverage. The changes aim to make the upload process more robust and user-friendly.
Enhancements to Configuration Handling:
IPowerPagesConfig
, to define the structure of the Power Pages configuration file, andIPowerPagesConfigData
to represent parsed configuration data. (src/client/power-pages/actions-hub/models/IPowerPagesConfig.ts
)readPowerPagesConfig
function to read and parse thepowerpages.config.json
file, ensuring proper handling of missing or invalid configurations. (src/client/power-pages/actions-hub/ActionsHubCommandHandlers.ts
)POWER_PAGES_CONFIG_FILE_NAME
to standardize the configuration file name. (src/client/power-pages/actions-hub/Constants.ts
)Improvements to Code Upload Process:
uploadCodeSite
function to use a dynamic command builder (buildUploadCodeSiteCommand
) based on the parsed configuration data, reducing hardcoded logic and improving flexibility. (src/client/power-pages/actions-hub/ActionsHubCommandHandlers.ts
)Error Management Enhancements:
POWER_PAGES_CONFIG_PARSE_FAILED
. (src/client/power-pages/actions-hub/Constants.ts
)src/client/power-pages/actions-hub/ActionsHubCommandHandlers.ts
)Expanded Test Coverage:
src/client/test/Integration/power-pages/actions-hub/ActionsHubCommandHandlers.test.ts
)