scolladon / sfdx-git-delta

Generate the sfdx content in source format from two git commits
Other
436 stars 115 forks source link

UserAccessPolicy missing #792

Closed deanjesper closed 7 months ago

deanjesper commented 7 months ago

Issue verification check:

What is the problem?


UserAccessPolicy isn't being picked up as a change

e.g. if I have a file called Admin.useraccesspolicy-meta.xml in the useraccesspolicies folder, when sfdx sgd:source:delta runs, it doesn't pick up these files.

What is the parameter and the value you used with it?

N/A

What is the expected result?

User Access Policies should be picked up

What is the actual result?

User Access Policies are not picked up (delta folder is empty)

Steps to reproduce


Create a User Access Policy, retrieve the metadata, commit metadata to branch, push branch, create PR, run pipeline with sfdx sgd:source:delta command

Execution context


N/A - latest version of sfdx-git-delta

From searching the repo, I couldn't find UserAccessPolicy in any of the metadata version files

https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_useraccesspolicy.htm

deanjesper commented 7 months ago

This should be as easy as adding:

{ "directoryName": "useraccesspolicies", "inFolder": false, "metaFile": false, "xmlName": "UserAccessPolicy" }

to v57+

scolladon commented 7 months ago

I'll give it a shot soon, it will be available next week if everything goes fine

github-actions[bot] commented 7 months ago

Shipped in release v5.37.0. You can install the new version using the version number or the latest-rc channel

$ sfdx plugins:install sfdx-git-delta@latest-rc
$ sfdx plugins:install sfdx-git-delta@v5.37.0

Happy incremental deployment!