feat: implement Flagsmith feature flags
What does this PR do?
Fixes #12598
used flagsmith which is an open-source Feature Flag Service that we can self-host as well, (currently using their hosted service)
https://www.loom.com/share/d91d727549f74f2984a3327e00265878
Take a look and let me know if it aligns with the requirements, and i'll be happy to work on it further.
@SomayChauhan is attempting to deploy a commit to the cal Team on Vercel.
A member of the Team first needs to authorize it.
Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link.
📦 Next.js Bundle Analysis for @calcom/web
This analysis was generated by the Next.js Bundle Analysis action. 🤖
This PR introduced no changes to the JavaScript bundle! 🙌
@zomars do we wanna use this instead of our own?
understood, will start working on it further then!!!
@zomars do we wanna use this instead of our own?
As @keithwillcode mentioned. We don't want to rely on third parties for this. It would be nice to opt-in if a hoster wants it. But it's not quite there in the current state.
@keithwillcode @PeerRich @zomars can you take a look to quickly setup and test:
- set
FLAGSMITH_ENVIRONMENT_ID=QLCiG9qqCJRfN34e6BAwjWin .env - go to http://13.233.201.155:8000/
- login with
[email protected]andPasswordPassword@111 - and test on maybe insights page
- kinda have to login to set traits (email and orgID)
if the FLAGSMITH_ENVIRONMENT_ID is not set it fetches flags from our Features table, otherwise it will fetch flags form flagsmith and save them in our existing FeatureProvider
Hey there, there is a merge conflict, can you take a look?
closing in favour of #13420