Replies: 2 comments 2 replies
-
Hi @irfanlai Thanks for raising this very interesting question. |
Beta Was this translation helpful? Give feedback.
-
Hi @irfanlai, I have a few questions, this will help me understand what is going on with git here. When you say : "Dev create a PR to UATSandbox which is again created from main", you mean there is a UATSandbox branch created from main ? or the branch used to create the PR is created from main ? What trigger the deployment to UAT sandbox ? Does it deploys to UAT before the merge of the feature branch to UATSandbox or after ? When creating the PR to UATSandbox with the QQQ branch, does the code from the XYZ branch is visible in the diff ? I'll probably have more questions after that 😅 |
Beta Was this translation helpful? Give feedback.
-
This is just a question
We use Github actions for Salesforce deployment using sfdx-git-delta. Pipeline is not configured to deploy destructive changes.
Our branching strategy is all feature branches are created from main(Production).
Dev will commit their changes in the branch and create a PR to UATSandbox which is again created from main.
Once PR is merged the changes gets deployed to UAT Org. Same branch will be used to deploy to main/Prod
My scenario and question:
Dev A creates a XYZ branch from main and add some new functions in a common Util class. The changes gets deployed to UAT.
Dev B creates a QQQ branch from main and modify an existing code in the same Util class. The changes gets deployed to UAT and removing Dev A changes
Actual Result:
When Dev A branch gets deployed to UAT the changes look good as expected
When Dev B branch gets deployed to UAT then Dev A branch changes gets wiped which jeopardizes the effort of Dev A
This created a huge problem as changes are getting overwritten when same file is getting updated.
Expected Result:
What should have happened in such case? I am assuming both changes should be on UAT.
Open to suggestions.
Note: What happens if it's a flow or page layout? Will it work in a different way when the same file gets deployed
Beta Was this translation helpful? Give feedback.
All reactions