We use SFDX with our Managed Package development, and have been for a few months now. All was fine until today where new scratch orgs are messing up sharing.
We have scripting that creates the scratch org with the scratch def JSON including:
"features": [ "ExternalSharing",
We then push our source base to the newly created scratch org. Our custom objects' object-meta.xml files include defaulting the sharing thus:
It used to be that this would result in entries like the following in the Sharing Settings:
Object | Default Internal Access | Default External Access | Grant Access Using Hierarchies Invoice | Public Read/Write | Public Read/Write | Checked
Today we are finding that the Sharing Settings show:
Invoice | Public Read/Write | Private | Checked
We have some unit tests that rely on running some code as a different user, and this change in behaviour is breaking our tests.
This happens with SFDX CLI 7.8.1 and 7.11.2.
I'm assuming this is some breaking change in the Summer '19 release (the instance on which the scratch org resides is running "Summer '19 Patch 9.5" according to the status dashboard though I don't know when this changed last).
Anyone seen the same problem? Do you have an automated solution?