texei / sfdx-pull-issues

Improvement of force:source:pull to take care of known bugs
3 stars 0 forks source link

When a field is deleted, Permission Sets referencing this field are not pulled #1

Closed FabienTaillon closed 2 years ago

FabienTaillon commented 4 years ago

What is the use case that doesn't work? Please describe. When I delete a field, the related record types are not pulled.

Full steps to reproduce Steps to reproduce the behavior:

  1. Create a Scratch Org (no specific setting needed)
  2. Create a field
  3. Create a Permission Set and add the FLS for the previous field
  4. Pull everything
  5. Delete the field
  6. Pull again

Expected result The field and the Permission Set are pulled.

Actual result Only the field is pulled. Local repo still has a reference to the field that doesn't exists anymore, because of the Permission Set not being pulled. Next Scratch Org creation will fail.

FabienTaillon commented 2 years ago

FIxed by Salesforce