DEVOPS-652 feat: extend create scratch org to accept snapshot as extra param that allow to create an org from a template#2
Conversation
…a param that allow to create an org from a template
…g creation and clean up the file
There was a problem hiding this comment.
Pull Request Overview
This PR extends the CumulusCI scratch org creation functionality to support creating scratch orgs from Salesforce snapshots. This allows users to create scratch orgs based on predefined templates rather than starting from scratch.
- Adds a new
snapshotparameter to the ScratchOrg schema and configuration - Modifies scratch org creation logic to handle snapshot-based org creation with automatic config file adjustments
- Includes comprehensive unit tests for the new snapshot functionality
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| cumulusci/utils/yaml/cumulusci_yml.py | Adds snapshot field to ScratchOrg model |
| cumulusci/schema/cumulusci.jsonschema.json | Adds JSON schema definition for the snapshot parameter |
| cumulusci/core/config/scratch_org_config.py | Implements snapshot support in org creation logic with temporary config file handling |
| cumulusci/core/config/tests/test_config.py | Adds unit tests for snapshot-based scratch org creation |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
@coderabbitai full review |
|
@codex can you review this? |
|
Codex Review: Didn't find any major issues. 🎉 About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback". |
…tion in ScratchOrgConfig
|
@codex can you review this? |
…a param that allow to create an org from a template (#2) * DEVOPS-652 feat: extend create scratch org to accept snapshot as extra param that allow to create an org from a template * DEVOPS-652 test: add unit test for creating org with snapshot configuration * DEVOPS-652 refactor: remove snapshot assignment from org config during creation and clean up the file * DEVOPS-652 fix: improve error handling for temporary config file creation in ScratchOrgConfig * DEVOPS-652 fix: remove snapshot from config when using snapshot in ScratchOrgConfig
Overview
Extend create scartch org to allow create scratch org from a salesforce snapshot
Related Jira Tickets
DEVOPS-652
Changes Proposed
Types of Changes
Indicate the type of changes your PR introduces to the project. Check the box that applies by replacing
[ ]with[x]and Ensure you understand the implications of each type.Compliance and Security
Ensure your changes adhere to project policies and do not introduce security vulnerabilities.