TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How do you deal with feature flag cleanup?

2 点作者 collinc7776 个月前
I work for a startup and as we grow we are increasingly depending on feature flags for releases.<p>One of the side-effects that come with more feature flag(FF) use is the FF cleanup burden. I was curious if anyone has developed any tooling that makes this cleanup easier and automated?<p>I know there&#x27;s the obvious candidate of creating a clean up ticket as part story(or whatever equivalent) conclusion, but i&#x27;d like to see if cleanup is solvable via automation as opposed to process.<p>An idea I have is for every merge to main, check to see if any feature flags have been added. For every feature flag added, create a &quot;cleanup PR&quot; per added flag that removes the feature flag and check, removes the old functionality, and persists the new functionality.<p>I recognize that this solution design could be pretty specific to how my team uses feature-flags.<p>Any feedback on a tool that works like I described or are do you think there&#x27;s an alternative approach I should consider?

1 comment

viraptor6 个月前
Not at a planning level, but monitoring. Each feature flag in our environment comes with a &quot;delete-by&quot; date. If it&#x27;s still in the code by then, the relevant team&#x27;s slack gets an annoying message every day.<p>To be clear, sometimes the right action is to extend the date. But it&#x27;s a loud reminder to do some action.
评论 #42290832 未加载