THe changes in this pull request updates outdated and advanced installation to have an option to be able to skip any cached HTTP items that Chocolatey CLI has created.
THe automatic outdated calls will still use the normal cached items as it is used with Chocolatey CLI, but if the the user forced the check of outdated it will bypass any cached items already created.
The advanced installation dialog has a new option under advanced options that can toggle on or off the ability to ignore cached items, that can be useful when targeting sources that allows the same version to be replaced.
Motivation and Context
To give similar ability in Chocolatey GUI as with Chocolatey CLI.
Testing
Build a debug version of Chocolatey CLI from latest develop branch.
Open up fiddler and clear out all http caches from Chocolatey CLI.
Open up Chocolatey GUI (ensure you have packages installed, and enabled automatic outdated check, restart Chocolatey GUI if changes are needed).
Go to settings and click the button for clearing out Outdated packages (this only clears out Chocolatey GUI packages).
Close and re-open Chocolatey GUI
Wait until outdated check is complete
Verify no new outgoing query was sent (other than to main entry point of v2/v3 feeds).
Click button to force an outdated check to happen.
Verify queries are sent to get outdated packages.
Go to CCR feed and search for windirstat
Install and uninstall package (take a note of the Query URL used to search for the version, not the actual download URL).
Go to windirstat again and open details page, then press Install Advance
Install the package again and verify the previously noted Query URL is not being used (only the download of the package).
Uninstall the package and do step number 12 again
Expand the the Advanced Option expandable group
Enable the option called Ignore HTTP Cache
Install the package again
Verify the same query used in step 11 was issued again.
Backwards compatibility check
Build a debug version of the Chocolatey CLI from the tag 2.1.0-alpha-20230614
Open up Chocolatey GUI and search for windirstat (if package is installed, uninstall the package first)
Open up details page and press Install Advanced.
Expand the section Advanced Options
Ensure that the option Ignore HTTP Cache is not shown.
Operating Systems Testing
Windows 10
Change Types Made
[ ] Bug fix (non-breaking change).
[x] Feature / Enhancement (non-breaking change).
[ ] Breaking change (fix or feature that could cause existing functionality to change).
Description Of Changes
THe changes in this pull request updates outdated and advanced installation to have an option to be able to skip any cached HTTP items that Chocolatey CLI has created. THe automatic outdated calls will still use the normal cached items as it is used with Chocolatey CLI, but if the the user forced the check of outdated it will bypass any cached items already created.
The advanced installation dialog has a new option under advanced options that can toggle on or off the ability to ignore cached items, that can be useful when targeting sources that allows the same version to be replaced.
Motivation and Context
To give similar ability in Chocolatey GUI as with Chocolatey CLI.
Testing
Ignore HTTP Cache
Backwards compatibility check
2.1.0-alpha-20230614
Install Advanced
.Advanced Options
Ignore HTTP Cache
is not shown.Operating Systems Testing
Change Types Made
Change Checklist
Related Issue
Fixes #1014