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

Make new, possibly unstable functionality available but opt in via feature flags #2807

Closed
janpio opened this issue Jun 19, 2020 · 1 comment
Assignees
Labels
kind/feature A request for a new feature. tech/typescript Issue for tech TypeScript.
Milestone

Comments

@janpio
Copy link
Contributor

janpio commented Jun 19, 2020

Prisma 2.1.0 and other future Prisma versions will bring some new additional API functionality. As it is new, it is only slightly tested via our team and users of our dev tag on Npm (npm install @prisma/cli@dev). This means that publishing it in 2.1.0 (or other future Prisma versions) directly might lead to wrong expectations from users and disappointment if we indeed did not get it stable enough on the first try.

To work around this problem we want to introduce feature flags for Prisma Client.

Similar to --experimental on the CLI (for prisma studio and prisma migrate), this will enable us to not include functionality in the default API that all users get on installing Prisma and Prisma Client. (This will also involve auto completion via our generated types and our VSCode extension.)

But it gives us the ability to "hide" new functionality behind a "feature flag" that users can manually opt in to, when they want to help us by testing this functionality and providing valuable feedback via issues or Slack. Via their testing, we can make sure the feature is actually ready for all of our users.

Only when we remove the feature flag, the feature will be considered part of our stable Prisma release and be documented as such.

@janpio janpio added kind/feature A request for a new feature. tech/typescript Issue for tech TypeScript. labels Jun 19, 2020
@janpio janpio added this to the 2.1.0 milestone Jun 19, 2020
@timsuchanek
Copy link
Contributor

This is implemented in 2.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature A request for a new feature. tech/typescript Issue for tech TypeScript.
Projects
None yet
Development

No branches or pull requests

3 participants