Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Conversation

@jsidewhite
Copy link
Member

Summary of the pull request

Check for feature presence dynamically for experimental features that request it.

This enables hiding features on OSes that don't have support.

Validation steps performed

Manually ran it on an OS that doesn't support the feature, and it doesn't render in Settings.

PR checklist

  • Closes #xxx
  • Tests added/passed
  • Documentation updated

public ExperimentalFeaturesViewModel(IExperimentationService experimentationService)
{
ExperimentalFeatures = experimentationService!.ExperimentalFeatures.Where(x => x.IsVisible).OrderBy(x => x.Id).ToList();
ExperimentalFeatures = experimentationService!.ExperimentalFeatures.Where(x => x.IsVisible && (!x.NeedsFeaturePresenceCheck || IsFeaturePresent(x))).OrderBy(x => x.Id).ToList();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Comment might help here

@jsidewhite jsidewhite merged commit b7a5328 into main Aug 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Quiet background processes" should not be offered as an experimental feature on OSes that don't support it

5 participants