Skip to content

Where a field is renamed the pull don't change field file name #2

@mguemmar

Description

@mguemmar

Describe the bug
When you rename field API Name, the field with the new api name is not pulled and the existing field in repo is deleted
To Reproduce
Steps to reproduce the behavior:

  • Rename field name , for exemple : from "myField__c" to "MyField__c" in MyCustoObject__c
  • After pull : the original field "myField__c" is deleted in repo (the file "myField__c.field-meta.xml" is deleted) and the new field "MyField__c" is not pulled (the file "MyField__c.field-meta.xml" is not created as expected)
  • The next push generate this kind of error
    Error force-app/main/default/objects/MyCustoObject__c.object-meta.xml Not in package.xml

Expected behavior
after rename field , the sfdx must rename the file name in repo like when the field is retrieved for first time.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Additional context
It possible that problem is related to git file management.
I tried the Git Option : git config core.ignorecase false without success

Desktop (please complete the following information):

  • OS: [e.g. iOS]

  • sfdx version :
    @oclif/plugin-autocomplete 0.1.5 (core)
    @oclif/plugin-commands 1.3.0 (core)
    @oclif/plugin-help 3.1.0 (core)
    @oclif/plugin-not-found 1.2.4 (core)
    @oclif/plugin-plugins 1.9.0 (core)
    @oclif/plugin-update 1.3.10 (core)
    @oclif/plugin-warn-if-update-available 1.7.0 (core)
    @oclif/plugin-which 1.0.3 (core)
    @salesforce/sfdx-trust 3.2.1 (core)
    analytics 1.12.0 (core)
    config 1.1.6 (core)
    generator 1.1.3 (core)
    salesforcedx 49.8.0 (core)
    ├─ templates 49.4.4 (core)
    ├─ custom-metadata 1.0.8 (core)
    ├─ @salesforce/sfdx-plugin-lwc-test 0.1.7 (core)
    └─ salesforce-alm 49.8.0 (core)
    sfdx-cli 7.72.0 (core)
    shane-sfdx-plugins 4.39.2
    texei-sfdx-plugin 1.6.2

  • nodejs version : v6.11.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    change not tracked on orgChange in Org isn't tracked correctly in SourceMember

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions