Open defabien opened 1 month ago
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.
Hey @defabien, I don't know exactly what you are trying to do based on the info you provided, but I am pretty sure this is working as designed.
Are you moving a custom field from one Object to another Object?
If you are moving a child type, the Parent has to have the same metadata type and Name. Otherwise it needs to deleted and added. If you happen to be moving from a child type from one Project directory to another and the Parent name and type are the same, it will properly track (commit to local source tracking) the move.
If that is not what you are doing, I need exact steps to replicate your findings. Thanks!
Hi @iowillhoit,
Thank you for your time!
To clarify; I'm not moving a field from one object to another, in that case I would of course understand the behavior.
The steps I can take to reproduce;
Hey @defabien, I am not seeing a "delete" when moving fields as you described. Here is a screencast, let me know if I missed something!
https://github.com/user-attachments/assets/0a815bac-447f-4d5c-a604-6d0f153950e9
@defabien Do you see anything that I missed in my screencast?
Expected result
when moving a field from one place to another, I expect tracking deploy to to something close to a noop
Actual result
when moving a field from one place to another, it tries to delete the field and insert it, resulting in errors when the field is being used
System Information
Diagnostics
:white_check_mark: pass - salesforcedx plugin isn’t installed :white_check_mark: pass - you don't have any linked plugins :white_check_mark: pass - [@salesforce/plugin-trust] can ping: https://registry.npmjs.org :white_check_mark: pass - [@salesforce/plugin-trust] can ping: https://registry.yarnpkg.com :white_check_mark: pass - [@salesforce/plugin-trust] can ping: https://registry.npmjs.org/ :white_check_mark: pass - using latest or latest-rc CLI version :white_check_mark: pass - [@salesforce/plugin-deploy-retrieve] sourceApiVersion matches apiVersion :x: warn - [@salesforce/plugin-deploy-retrieve] sourceApiVersion matches default target org max apiVersion :white_check_mark: pass - can access: https://test.salesforce.com :white_check_mark: pass - can access: https://appexchange.salesforce.com/services/data :white_check_mark: pass - [@salesforce/plugin-auth] CLI supports v2 crypto :white_check_mark: pass - can access: https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-win32-x64-buildmanifest