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

Issue/vcs toggle vcs modes #352

Merged
merged 3 commits into from
Feb 21, 2025
Merged

Issue/vcs toggle vcs modes #352

merged 3 commits into from
Feb 21, 2025

Conversation

pancaspe87
Copy link
Contributor

We want to implement a consistency check pattern to enable VCS modes under a feature flag. There are 4 different scenarios that will be controlled by combining a 'killswitch', already implemented in product, and a flag to toggle the relevant mode, as explains below:

Screenshot 2025-02-21 at 2 13 32 PM

The first 2 modes are already available in the products and are switched on/off by an infra ff. This PR introduces the ability to return different values for the last 2 modes through another infra ff.

Copy link

changeset-bot bot commented Feb 21, 2025

🦋 Changeset detected

Latest commit: bba2fe6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 99 packages
Name Type
@atlaspack/feature-flags Minor
@atlaspack/fs Minor
@atlaspack/bundler-experimental Patch
@atlaspack/bundler-default Patch
@atlaspack/cli Patch
@atlaspack/core Patch
@atlaspack/graph Patch
@atlaspack/types-internal Patch
@atlaspack/optimizer-inline-requires Patch
@atlaspack/packager-js Patch
@atlaspack/reporter-cli Patch
@atlaspack/runtime-js Patch
@atlaspack/transformer-js Patch
@atlaspack/node-resolver-core Patch
@atlaspack/cache Patch
@atlaspack/package-manager Patch
@atlaspack/register Patch
@atlaspack/test-utils Patch
@atlaspack/link Patch
@atlaspack/config-default Patch
@atlaspack/config-repl Patch
@atlaspack/bundle-stats Patch
@atlaspack/query Patch
@atlaspack/reporter-bundle-stats Patch
@atlaspack/transformer-html Patch
@atlaspack/profiler Patch
@atlaspack/types Patch
@atlaspack/workers Patch
@atlaspack/resolver-default Patch
@atlaspack/resolver-glob Patch
@atlaspack/config-webextension Patch
@atlaspack/plugin Patch
@atlaspack/packager-html Patch
@atlaspack/packager-svg Patch
@atlaspack/packager-xml Patch
@atlaspack/reporter-bundle-analyzer Patch
@atlaspack/reporter-dev-server-sw Patch
@atlaspack/reporter-dev-server Patch
@atlaspack/reporter-json Patch
@atlaspack/reporter-sourcemap-visualiser Patch
@atlaspack/transformer-babel Patch
@atlaspack/transformer-jsonld Patch
@atlaspack/validator-typescript Patch
@atlaspack/optimizer-image Patch
@atlaspack/transformer-image Patch
@atlaspack/bundler-library Patch
@atlaspack/compressor-brotli Patch
@atlaspack/compressor-gzip Patch
@atlaspack/compressor-raw Patch
@atlaspack/namer-default Patch
@atlaspack/optimizer-blob-url Patch
@atlaspack/optimizer-css Patch
@atlaspack/optimizer-cssnano Patch
@atlaspack/optimizer-data-url Patch
@atlaspack/optimizer-htmlnano Patch
@atlaspack/optimizer-svgo Patch
@atlaspack/optimizer-swc Patch
@atlaspack/optimizer-terser Patch
@atlaspack/packager-css Patch
@atlaspack/packager-raw-url Patch
@atlaspack/packager-raw Patch
@atlaspack/packager-ts Patch
@atlaspack/packager-wasm Patch
@atlaspack/packager-webextension Patch
@atlaspack/reporter-build-metrics Patch
@atlaspack/reporter-bundle-buddy Patch
@atlaspack/reporter-conditional-manifest Patch
@atlaspack/reporter-lsp Patch
@atlaspack/reporter-tracer Patch
@atlaspack/resolver-repl-runtimes Patch
@atlaspack/runtime-browser-hmr Patch
@atlaspack/runtime-react-refresh Patch
@atlaspack/runtime-service-worker Patch
@atlaspack/runtime-webextension Patch
@atlaspack/transformer-css Patch
@atlaspack/transformer-glsl Patch
@atlaspack/transformer-graphql Patch
@atlaspack/transformer-inline-string Patch
@atlaspack/transformer-inline Patch
@atlaspack/transformer-json Patch
@atlaspack/transformer-less Patch
@atlaspack/transformer-mdx Patch
@atlaspack/transformer-postcss Patch
@atlaspack/transformer-posthtml Patch
@atlaspack/transformer-pug Patch
@atlaspack/transformer-raw Patch
@atlaspack/transformer-react-refresh-wrap Patch
@atlaspack/transformer-sass Patch
@atlaspack/transformer-svg-react Patch
@atlaspack/transformer-svg Patch
@atlaspack/transformer-toml Patch
@atlaspack/transformer-typescript-tsc Patch
@atlaspack/transformer-typescript-types Patch
@atlaspack/transformer-webextension Patch
@atlaspack/transformer-webmanifest Patch
@atlaspack/transformer-worklet Patch
@atlaspack/transformer-xml Patch
@atlaspack/transformer-yaml Patch
@atlaspack/validator-eslint Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pancaspe87 pancaspe87 requested a review from yamadapc February 21, 2025 04:15
@@ -27,6 +28,12 @@ export function getFeatureFlag(flagName: $Keys<FeatureFlags>): boolean {
return value === true || value === 'NEW';
}

export function getFeatureFlagValue(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@yamadapc we can't use the existing getFeatureFlag as we need to differentiate between NEW_AND_CHECK and NEW

@pancaspe87 pancaspe87 force-pushed the issue/vcs-toggle-vcs-modes branch from 77962ce to e7a2eaf Compare February 21, 2025 05:33
@pancaspe87 pancaspe87 merged commit e962cd7 into main Feb 21, 2025
18 checks passed
@pancaspe87 pancaspe87 deleted the issue/vcs-toggle-vcs-modes branch February 21, 2025 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants