Dependency-Aware Deployment Sequencing in Gearset
Currently, deployments in Gearset can fail when interdependent metadata components are deployed simultaneously without respecting their dependencies. For example, deploying a new Lightning page that references a report or dashboard will fail if both are included in the same deployment, as the referenced report or dashboard does not yet exist in the target org.
While the current workaround is to manually split deployments into separate feature branches based on dependencies, a more intuitive approach would be for Gearset to detect these dependencies automatically when multiple related components are included in a deployment. The tool could then offer options to handle the sequencing, such as:
Automatically restructuring the deployment order to deploy dependencies first.
Providing a warning or suggested deployment plan based on detected dependencies.
Allowing users to confirm or adjust the deployment sequence before execution.
This enhancement would streamline deployments, reduce errors, and minimize the need for manual intervention, making metadata deployments more efficient and reliable.
