Sub topic 1
From change sets to a managed release process
Prerequisites
This chapter assumes you have:
- Basic Salesforce administration or development experience, including sandboxes, metadata, and change sets.
- A general idea of Git concepts such as branches, commits, and pull requests. You do not need to run any Git commands yet.
Why change sets stop working
A change set is a package of metadata components that you build in one org and upload to another. It works for small, single-person releases. As a team grows, several problems appear:
- There is no history. You cannot see who changed a component, when, or why.
- There is no merge. If two people edit the same component in different sandboxes, the last upload silently overwrites the other.
- Each deployment is manual. Someone rebuilds the change set for every target org, so mistakes creep in.
- Rollback is guesswork. Undoing a release means building a new change set from memory.
What a managed release process adds
A managed release process treats metadata as versioned files, and it moves them through fixed steps. DevOps Center is the Salesforce tool for this. It puts a Git repository at the center, so every change has a record, and it moves changes between orgs in a set order.
| Concern | Change sets | Managed process |
|---|---|---|
| Source of truth | The org | A Git repository |
| Change history | None | Commits and pull requests |
| Conflicts | Overwritten silently | Detected at merge |
| Promotion | Rebuilt by hand per org | Same change moved through stages |
| Rollback | Manual rebuild | Revert a commit |
The release flow at a glance
Every change follows the same path. A developer makes it in a sandbox, records it in Git, has it reviewed, and then promotes it stage by stage toward production.
Common mistakes when moving from change sets
- Treating the sandbox as the source of truth. In a managed process, the repository is the source of truth. A sandbox is only a place to build changes.
- Skipping review because it feels slow. The pull request is where conflicts and errors get caught before they reach shared orgs.
- Bundling unrelated changes. Large mixed packages are hard to review and hard to undo. Later chapters show how work items keep changes small.
The next chapters cover source control in more detail, then how DevOps Center is built and set up.
Exercise
A teammate says, "Two of us edited the same Apex class in different sandboxes, and the second change set deployed fine." Why is that a problem, and which feature of a managed process addresses it?
Show answer
A change set uploads the whole component, so the second deployment overwrote the first person's edits without any warning. A Git-based process detects the overlap as a conflict when the changes are merged, so someone resolves it before release.