Skip to content
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

Solution is imported as "update" instead of "upgrade" and there is no option to do an "upgrade". #368

Open
BrainSlugs83 opened this issue Jun 22, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@BrainSlugs83
Copy link

Using import solution, there is no option to import it as an "upgrade" (i.e. where items not present in the solution are deleted from the environment). -- Instead it seems to be forcing an "update" (i.e. only new and changed are added; but items not present do not get removed).

Please add the option to do an "update" of a solution. So that removed objects are properly removed from the target environment.

Here's an image of what I'm talking about (see below). -- And to be clear: I don't want to stage it for an upgrade and then upgrade it as a second action -- that would double the size and complexity of my script. -- I just want to import it as a (non-staged) upgrade and be done all in one step. -- Like just with an extra parameter to the import solution action.

Thanks!
image

@petrochuk petrochuk added the need more information Will need more information from the issue author label Jun 22, 2023
@petrochuk
Copy link
Contributor

Thanks for feedback. Can you tell us how this is related to GitHub Actions for Microsoft Power Platform which this repository contains?

@tehcrashxor
Copy link
Member

Solution upgrade is performed with the upgrade-solution action.
Note that the solution first needs to first be staged for the upgrade, which can be done via the import-as-holding parameter of the import-solution action

@BrainSlugs83
Copy link
Author

BrainSlugs83 commented Sep 26, 2023

Solution upgrade is performed with the upgrade-solution action. Note that the solution first needs to first be staged for the upgrade, which can be done via the import-as-holding parameter of the import-solution action

I'm aware that you can do it as a two step process (in fact I addressed that in the original issue description) -- but, as I said before, that's massively inconvenient when you're importing 9 or 10 solutions. (e.g. a 300 lines of code deployment changes to 600+ lines of code just to change one parameter!?).

In all of the other tooling (both GUI and CLI) it's the same command with a single parameter that you change (yes you can do it in two steps via those routes, but you can also do it in a single step so that your scripts don't need to be overly bloated).

It would be good to automate this as a single step command so that our deployments don't need to double in size just to change one parameter of the deployment process. 🫤

@BrainSlugs83
Copy link
Author

BrainSlugs83 commented Sep 26, 2023

@petrochuk I apologize, but I'm deeply confused by your question -- I feel like enough information was provided in the original issue. -- I'm specifically asking about the GitHub Actions for Microsoft Power Platform, hence I have posted the issue here in this repo. -- Please let me know how I can assist or provide additional information. -- This issue is not in the wrong place.

Edit: It occurs to me that maybe the image I pasted could cause some confusion. That makes sense. -- Please read the text of the issue though. The image is to show what UI equivalent of the feature I am asking you to implement in the GitHub Actions framework. Thank you. 🙂

@petrochuk petrochuk added enhancement New feature or request and removed need more information Will need more information from the issue author labels Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants