-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
Incrementally get Profile Changes #198
Comments
Hi @ronika-das ! Thanks for your interest in the plugin and for your help to make it better This is a very tricky question to answer because we all know all the joy we have to deal with Profile and Permission Set. To address this topic we have created a very old pull request which add a command to the plugin in order to deal with those metadata. This pull request is not moving forward yet because we do not see a lot of traction from the community for it (you are the first). |
Duplicate of #328 |
Hello @ronika-das , this plugin lacks this feature that is very important to deal with some metadata Checkout git:delta command : mdt:git:delta You can also read more on this article :Generate a delta 🛆 of your Salesforce ☁️ metadata for deployment 🚀 |
Hi @benahm Thanks you for enforcing the fact that this feature should be implemented. There is another person interested in this feature as well. Instead we have revamped it with new parameter and are working on it ! Thanks for this awesome feature in your plugin @benahm, I personally love your contributions to the Salesforce ecosystem, especially your test data factory, it is one of the best in the ecosystem and I love using it when I need to. 👏 🙇 |
Thank you @scolladon :) There is one thing I wanted to share. Recently for us, we had removed certain field permissions, class access etc from a Permission Set. One would expect it to not to remove anything from the Salesforce environment. I guess this is something that should be checked once. |
@benahm thank you sharing details on your plugin and I going to check it out |
Shipped in release $ sfdx plugins:install sfdx-git-delta@latest-rc
$ sfdx plugins:install [email protected] |
Hi @ronika-das We have extended the content pruning algorithm to more types (I think all of them now). It is available in the |
Hi @scolladon-sfdc, wondering whether this ever made it to a release? I am running |
Hi @e-bacho, sorry to ear that. It seems to be working on my local machine (just tested). |
Thanks for the prompt response @scolladon. I've updated everything to latest versions: macOS 14.2.1 I added a single field permission and re-ran the delta. It turns out the field permission is picked up and added to the output file, but so are all the layout assignments and IP ranges too. Is this an expected behaviour or a bug? |
Hi @e-bacho, Yes it is expected, layout assignments and ip ranges do not have a clear unique way to be identified (no fullname per example). I hope it helps, and happy incremental deployments |
Hi @scolladon, I'm currently testing the latest version and testing it with my CI/CD. Props for the amazing work! I am facing the same situation as e-bacho. We usually go generating the delta file folder, so when we get to changes in Profiles, we're getting the LayoutAssignments and LoginIpRanges when there's no need for it.
Thanks and regards, |
Thanks @gvivo for the kind words, I'm glad the plugin helps you. I understand it is not useful to have those metadata when they are not changed. I'll work soon on an improvement to try to remove those metadata when they are not changed. Stay tuned! |
Is your proposal related to a problem?
Similar to how it currently for custom label and workflows, We are not able to pick changes incrementally from Profile Files
Describe the solution you'd like
So for example, there is a profile file, and I am newly adding a field permission to it. I would want want only the newly Field permission to be present while running the command.
Describe alternatives you've considered
Assume we have this profile file at commit abc123
![image](https://user-images.githubusercontent.com/32714099/138047433-208236dc-d32b-421a-9dd3-a85b55406b14.png)
And then we add a new field permission as follows at commit def456
![image](https://user-images.githubusercontent.com/32714099/138047550-934d12da-8161-48f9-9a65-29fabe078ec3.png)
After running the command
we want the file to look as follows
Additional context
N/A
The text was updated successfully, but these errors were encountered: