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

Ensure boolean feature flags are booleans via CLI #9599

Merged
merged 2 commits into from
Apr 11, 2024

Conversation

marcins
Copy link
Contributor

@marcins marcins commented Mar 26, 2024

↪️ Pull Request

Small improvement that ensures when you override a boolean feature flag via the CLI, the value is a boolean not a string.

💻 Examples

Before:
parcel --feature-flag exampleFeature=false

Feature flags: { exampleFeature: 'false' }

After:
parcel --feature-flag exampleFeature=false

Feature flags: { exampleFeature: false }

🚨 Test instructions

As there are no explicit CLI tests, tested manually with string & boolean feature flags.

✔️ PR Todo

  • Added/updated unit tests for this change
  • Filled out test instructions (In case there aren't any unit tests)
  • Included links to related issues/PRs

@marcins marcins merged commit e60cbeb into v2 Apr 11, 2024
14 of 17 checks passed
@mischnic mischnic deleted the mszczepanski/improve-feature-flag-type-in-cli branch April 21, 2024 15:14
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.

3 participants