Add ability to detect status of feature in WindowsFeature alternate source
- Dominant language
- C#
- Stars
- 11.5k
- Forks
- 960
- PR merge metrics
- No merged PRs in 30d
Description
It would be useful to check if a feature is already enabled/disabled to increase the speed of installs/uninstalls if no action is required.
As noted by the todo comments:
https://github.com/chocolatey/choco/blob/d8ca7bad2ad64538a0c1026a9317700dbb7f03db/src/chocolatey/infrastructure.app/services/WindowsFeatureService.cs#L272-L279
https://github.com/chocolatey/choco/blob/d8ca7bad2ad64538a0c1026a9317700dbb7f03db/src/chocolatey/infrastructure.app/services/WindowsFeatureService.cs#L356-L363
Contributor guide
Research direction
Start in src/chocolatey/infrastructure.app/services/WindowsFeatureService.cs at the two linked TODO sections around lines 272-279 and 356-363. Trace the alternate-source install and uninstall paths, then verify that already-enabled or already-disabled features avoid unnecessary actions and that the existing Windows feature behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100