sfpowerkit
sfpowerkit copied to clipboard
Standard Tab Visibilities removed on reconcile
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:
- sfdx sfpowerkit:source:profile:retrieve -f src/main/default/profiles
- 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
@genoud are you able to look into this one?
@genoud , I was able to reproduce this issue
@genoud - Are you able to test and see if you have any recommendations to fix this?
I will look into this...
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
@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.