-
Notifications
You must be signed in to change notification settings - Fork 252
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
(#770) Provide ability to "see" saved installation parameters #834
Conversation
steviecoaster
commented
Mar 28, 2021
- Adds PackageArgumentsService Interface
- Adds button to PackageViewModel
- Adds method for decrypting .arguments file
Lots of work yet to do here. We need to make this look "pretty", but I'm no WPF/XAML expert, so right now functionality just uses a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great start, thanks so much for picking this up!
Source/ChocolateyGui.Common.Windows/Services/IPackageArgumentsService.cs
Outdated
Show resolved
Hide resolved
Source/ChocolateyGui.Common.Windows/Services/PackageArgumentsService.cs
Outdated
Show resolved
Hide resolved
Source/ChocolateyGui.Common.Windows/Services/PackageArgumentsService.cs
Outdated
Show resolved
Hide resolved
Source/ChocolateyGui.Common.Windows/Services/PackageArgumentsService.cs
Outdated
Show resolved
Hide resolved
Source/ChocolateyGui.Common.Windows/Services/PackageArgumentsService.cs
Outdated
Show resolved
Hide resolved
Source/ChocolateyGui.Common.Windows/ViewModels/Items/PackageViewModel.cs
Outdated
Show resolved
Hide resolved
Source/ChocolateyGui.Common.Windows/Services/PackageArgumentsService.cs
Outdated
Show resolved
Hide resolved
Source/ChocolateyGui.Common.Windows/Services/PackageArgumentsService.cs
Outdated
Show resolved
Hide resolved
Source/ChocolateyGui.Common.Windows/Services/PackageArgumentsService.cs
Outdated
Show resolved
Hide resolved
@steviecoaster I have taken the liberty of making some changes to this PR, based on the comments that I made above. Let me know if you have any questions about what I did. @punker76 currently, this looks like the following: Do you have any suggestions on a better UI to use here for this purpose? One thing that we are going to want to include is the ability to have a custom button on whatever UI we select, to allow the deletion of the .arguments file for the selected package. Any ideas? |
ab5c396
to
2fc1e77
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@AdmiringWorm I rebased this one, and the build is failing, but I don't know whether it as failing before the rebase. Can you take a look and let me know if this is something that can be fixed up. Thanks |
hmm, looks like the resource string defined in the Designer for Should be enough to just open the EDIT: It actually looks like I had not included that string in the Designer when checking in 🤦 |
No, there was no conflict. I will get it fixed up, but might be tomorrow morning now. |
@gep13 yeah, I looked through the history on AppVeyor, so it seems it was a mistake on my part to forget to include the Designer change for that string. I'll get that fixed up tomorrow when I log on unless you are able to do that before me. |
This allows the viewing of the contents of the .arguments file, which is stored on a per package version, and contains the arguments that were passed into the choco install command for that package. This file is encrypted, and can't be viewed directly, but this allows decryption of the contents for viewing. Co-authored-by: steviecoaster <stephen@chocolatey.io>
This commit updates the behavior used when parsing package arguments to use the same logic as Chocolatey itself when it is parsing persisted upgrade arguments.
This commit removes the use of a normal Windows MessageBox to instead use the Dialog service to show a message instead. This flows better into how the styling is used in the rest of the application.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@AdmiringWorm thank you for getting this over the finishing line! 👍🏻 |