sfpowerkit icon indicating copy to clipboard operation
sfpowerkit copied to clipboard

Standard Tab Visibilities removed on reconcile

Open pinkj24 opened this issue 2 years ago • 6 comments

Describe the bug When running the reconcile command against source control - tab visibilities for standard tabs are removed from the file.

To Reproduce Steps to reproduce the behavior:

  1. sfdx sfpowerkit:source:profile:retrieve -f src/main/default/profiles
  2. sfdx sfpowerkit:source:profile:reconcile -s

Expected behavior Profiles should contain tab visibilities for all standard tabs as well as custom tabs held in source.

Desktop (please complete the following information):

  • OS: Linux Subsystem for Windows
  • Node Version: 16.15.0
  • Version of sfpowerkit: 5.0.0

pinkj24 avatar Sep 20 '22 16:09 pinkj24

@genoud are you able to look into this one?

Caitlyn-Mills avatar Sep 28 '22 09:09 Caitlyn-Mills

@genoud , I was able to reproduce this issue

Janani-26 avatar Sep 28 '22 15:09 Janani-26

@genoud - Are you able to test and see if you have any recommendations to fix this?

vuha-acn avatar Sep 28 '22 17:09 vuha-acn

I will look into this...

genoud avatar Sep 28 '22 17:09 genoud

I have tested this and from my perspective it is working as expected. the -s parameter makes the command reconcile profiles based on components present in the source. If standard tabs are not held in source, they will be stripped out. Custom tabs present in source are kept as expected.

Standard tabs cannot be retrieved, and that explains the behaviour

$ sfdx force:source:retrieve -m CustomTab:standard-Account Preparing retrieve request... done === Retrieved Source

No results found === Retrieved Source Warnings

FILE NAME PROBLEM ────────────────────── ────────────────────────────── unpackaged/package.xml Cannot retrieve a standard tab

genoud avatar Oct 01 '22 15:10 genoud

@pinkj24 - can you confirm if you have made any customizations to the standard tabs that would require for them to be in the source control repository? I agree with @genoud analysis that if they can't be retrieved or stored, then they won't be reconciled.

crazynammer avatar Oct 02 '22 00:10 crazynammer