cli icon indicating copy to clipboard operation
cli copied to clipboard

remote source tracking is wrong

Open mshanemc opened this issue 3 years ago • 2 comments

Summary

sometimes it thinks the remote changed is an add, after you ask it repeatedly (see repro) it's losing the local source path when it thinks things are an add

Steps To Reproduce:

<clone dreamhouse>
sfdx force:org:create -f config/project-scratch-def.json -s -a dreamhouse-org -v DEVHUB
sfdx force:source:push

this is correct

➜  concise-qa git:(main) ../../plugin-source/bin/dev force:source:status 
Source Status
 STATE      FULL NAME TYPE    PROJECT PATH 
 ────────── ───────── ─────── ──────────── 
 Remote Add Admin     Profile undefined
➜  concise-qa git:(main) ../../plugin-source/bin/dev force:source:status --concise
No local or remote changes found.

remove **/profiles/** from forceignore. The profile should have appeared

➜  concise-qa git:(main) ../../plugin-source/bin/dev force:source:status --concise
No local or remote changes found.
➜  concise-qa git:(main) ✗ ../../plugin-source/bin/dev force:source:status          
Source Status
 STATE      FULL NAME TYPE    PROJECT PATH 
 ────────── ───────── ─────── ──────────── 
 Remote Add Admin     Profile undefined    

make changes in a one remote and one local apex class (this is good)

➜  concise-qa git:(main) ✗ ../../plugin-source/bin/dev force:source:status --concise
Source Status
 STATE          FULL NAME        TYPE      PROJECT PATH                                            
 ────────────── ──────────────── ───────── ─────────────────────────────────────────────────────── 
 Local Changed  GeocodingService ApexClass force-app/main/default/classes/GeocodingService.cls     
 Remote Changed PagedResult      ApexClass force-app/main/default/classes/PagedResult.cls-meta.xml 
 Remote Changed PagedResult      ApexClass force-app/main/default/classes/PagedResult.cls

add **/classes/** to the ignore file (this is good--they are omitted)

➜  concise-qa git:(main) ✗ ../../plugin-source/bin/dev force:source:status --concise
No local or remote changes found.

this should have returned the same results as before but

  1. remote add should be changed
  2. path is missing even though local files exist
  3. [local is fine]
➜  concise-qa git:(main) ✗ ../../plugin-source/bin/dev force:source:status          
Source Status
 IGNORED   STATE         FULL NAME        TYPE      PROJECT PATH                                        
 ───────── ───────────── ──────────────── ───────── ─────────────────────────────────────────────────── 
 true      Local Changed GeocodingService ApexClass force-app/main/default/classes/GeocodingService.cls 
 undefined Remote Add    PagedResult      ApexClass undefined                                           
 undefined Remote Add    Admin            Profile   undefined                                           
➜  concise-qa git:(main) ✗ 

mshanemc avatar Jun 23 '22 16:06 mshanemc

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

github-actions[bot] avatar Jun 23 '22 16:06 github-actions[bot]

This issue has not received a response in 60 days. It will auto-close in 7 days unless a response is posted.

github-actions[bot] avatar Sep 21 '22 16:09 github-actions[bot]