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

Allow uppercase letters in feature keys #2491

Merged
merged 2 commits into from
May 10, 2024
Merged

Allow uppercase letters in feature keys #2491

merged 2 commits into from
May 10, 2024

Conversation

jdorn
Copy link
Member

@jdorn jdorn commented May 8, 2024

Features and Changes

Previously, if someone entered MyFeature as the key when creating a new feature, it would silently lowercase it before saving, so the result would be myfeature. Not only was this unexpected behavior, it also meant users couldn't use camel case for features. In some languages, camel case is standard so this forced users to go against the language naming best practices.

This PR removes this restriction and allows uppercase letters to remain as part of feature keys.

With the recent change in #2479 , organizations can add their own regex to enforce a stricter naming convention if desired.

Copy link

github-actions bot commented May 8, 2024

Deploy preview for docs ready!

✅ Preview
https://docs-idftr6hrh-growthbook.vercel.app

Built with commit e5ca7bc.
This pull request is being automatically deployed with vercel-action

Copy link

github-actions bot commented May 8, 2024

Your preview environment pr-2491-bttf has been deployed.

Preview environment endpoints are available at:

@jdorn jdorn merged commit a2a7d19 into main May 10, 2024
6 checks passed
@jdorn jdorn deleted the mixed-case-feature-keys branch May 10, 2024 14:12
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.

[Feature] camelCasing support for feature flags Support case-sensitive (upper-case) feature names
1 participant