Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect Conflict at sync feature is not working #3414

Closed
puchini104 opened this issue Jul 13, 2021 · 3 comments
Closed

Detect Conflict at sync feature is not working #3414

puchini104 opened this issue Jul 13, 2021 · 3 comments
Labels

Comments

@puchini104
Copy link

Summary

I was using without problems the funtionality of "Detect Conflict at sync" till last week, but from now on each time that I retrieve something it does not work.

Steps To Reproduce:

This is step 1. File->Preferences->Setting Extension-> Salesforce Feature Preview
This is step 2. Check the checkbox Detect conflict at sync.
This is step 3. Retrieve from package.xml

Expected result

It should not retrieve without showing conflict first

Actual result

Retrieve all components

Additional information

Version: 1.58.0 (system setup)
Commit: 2d23c42a936db1c7b3b06f918cde29561cc47cd6
Date: 2021-07-08T06:54:55.083Z
Electron: 12.0.13
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: 8.9.255.25-electron.0
OS: Windows_NT x64 10.0.17763

@smaddox-sf
Copy link
Contributor

Hi @puchini104 - Thanks for reaching out on this.  We have work in flight to deliver the remainder of Conflict Detection.  With the beta last year, the Conflict Detection was purely doing a diff and showing you anything with a difference.  This led to a lot of noise since there will be diffs every time you deploy (assuming you made changes).  With the updates to this feature, we are upgrading the logic to compare the modified date in the org with the local sync date to surface potential conflicts on deploy.  This logic doesn't quite make sense for retrieves and can lead to unexpected overwrites, so we will no longer be checking for potential conflicts for retrieves.  Instead, you can execute a diff, which now works for directories and additional metadata types.  

Our updated documentation will be published for Conflict Detection later this week. In the meantime, you can see the original spec here.

@ralphcallaway
Copy link

still useless, every save generates a conflict regardless of whether there is one

@smaddox-sf
Copy link
Contributor

@ralphcallaway - Have you checked out the latest version of conflict detection? With the updates to this feature, the logic now compares the modified date in the org with the local sync date to surface potential conflicts on deploy. You should not be seeing a conflict every time you deploy (unless there have been changes in the org). You can see more details in the documentation. If you are seeing conflicts on deploys when there haven't been changes in the org, please consider opening a new issue with the repro details so we can get to the bottom of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants