-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package Version Creation - all dependencies are installed for AllUsers #2969
Comments
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. |
Hello @dschach , thanks for the detailed description of what you're facing. Which doc are you referring to vis-a-vis "The docs say that packages install with AdminsOnly by default?" AFAIK the ephemeral build system has only one user so in effect AdminsOnly == AllUsers, but maybe there circumstances where that is not the case, that ephemeral system is complicated and built on scratch orgs so... Just so I make sure I'm understanding: the reason package2 fails to have a version created is due to a test failure? And if that's the case then the pain is simply having to change the test, or is there further pain points? (I'm not implying changing test code isn't a big deal, just want to make sure I'm fully grokking the problem scope) I understand your feature requests and can put them in front of our product team. Since this is issue is more of an issue/feature-request hybrid: what would help your case:
Thank you! |
Hi @sethmuss - The ephemeral build system has multiple users. One of our devs found that the last names are The docs for The reason Package2 is failing to create is because a test is failing - a test that would not fail if the dependency were installed AdminsOnly. It's difficult to make a zip with all the items, but I can see about spinning up something. In the meantime, the issue stands that ISVs and package creators have no input into how the dependencies are installed in the ephemeral build system, which can lead to undesired outcomes. |
I believe this will help reproduce example packages are attached as zip files and a separate devhub will be needed to create them and complete the troubleshooting steps.
triage_packageTwoWithDependency (1).zip expected error message: |
We have determined that the issue you reported exists in code owned by another team that uses only the official support channels. To ensure that your issue is addressed, open an official Salesforce customer support ticket with a link to this issue. We encourage anyone experiencing this issue to do the same to increase the priority. We will keep this issue open for the community to collaborate on. |
Summary
We have a package with dependencies on other packages. We want to create a new
PackageVersion
.One of the dependencies has a custom permission (to disable triggers) that we DO NOT want added to every profile in an org.
Creation of a package version "installs" the dependencies in that ephemeral creation system with
AllUsers
and we know this because version creation fails with errors that only happen if the triggers in our package are disabled.Steps To Reproduce
We have a repository but it is private for Department of Veterans Affairs. Please contact me for a demo.
Package1
)Package2
).Package2
that exits if the flag is on the user's profile, and does something if that flag is not present.Package2
Expected result
The docs say that packages install with
AdminsOnly
by default, so it is expected that the package version can be created.Actual result
Package version creation fails because no trigger tests pass because
Package1
put the bypass custom permission on every profile.System Information
OSX zsh in VSCode
Additional information
FEATURE REQUEST:
AdminsOnly
,AllUsers
, or (maybe) an array of profile namessecurity-type
It even fails if I put a profile in
unpackagedMetadata
, and I don't want to have to package a profile inPackage2
if I don't have to.The text was updated successfully, but these errors were encountered: