UI: Export/Import single feature configurations (JSON/Clipboard) for easy cross-environment migration

未关闭
#7,072 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
领域
frontend

调研方向

未指定任何文件、测试或入口点。先定位 feature 详情和 feature 创建 UI,然后追踪 feature 字段和 segment overrides 的加载与保存方式;完成标准是用户能够跨环境审查、导出、导入并保存完整配置。

由索引模型根据 Issue 内容生成。

描述

Is your feature request related to a problem?

Currently, our developers are seriously struggling with the existing UI when trying to migrate complex feature flags across environments (or to isolated local instances).

It is extremely hard and time-consuming for them to manually recreate a feature flag, especially when it involves multiple segment overrides. For example, if a developer creates a new feature in a Development environment that includes 5 specific segment overrides, moving that exact configuration to Production requires manually recreating the feature, the values, and clicking through to rebuild all 5 segment overrides from scratch.

This manual "copy-paste" operation across different browser tabs or instances is not only tedious and painful for the team, but it is also highly error-prone. One typo in a segment rule during manual copying can easily break production logic.

Describe the solution you'd like.

We would like a simple "Export/Import" capability built directly into the UI for individual features.

Export to JSON/Clipboard: On the feature detail page, add an "Export Configuration" button. This should generate a JSON payload (with a quick "Copy to Clipboard" option) that contains the feature's complete footprint for that environment:

  • Feature Name & Description
  • Tags
  • Default State (Enabled/Disabled)
  • Default Value
  • All Segment Overrides and their specific values/states

Import via UI: When navigating to a different environment (or a completely different Flagsmith instance), provide an "Import Configuration" button. Pasting the JSON payload should automatically populate all the fields, create the segment overrides, and allow the user to review the changes before saving.

Describe alternatives you've considered

Terraform (Our Current Workaround): We are currently using Terraform to sync all environments as a workaround. However, requiring developers to create a PR for every small change is tedious and completely kills the beautiful and simple idea of the Flagsmith Dashboard. The dashboard is supposed to provide agility, but the lack of an easy UI sync forces us back into heavy, slow GitOps workflows just to copy a feature.

Additional context

This feature would be a massive quality-of-life improvement for teams working across air-gapped or isolated environments. By allowing a simple JSON export/import, you eliminate the severe time drain our developers currently face, reduce the risk of human error during manual data entry, and significantly speed up the release pipeline.

主要语言
Python
星标
9.9k
派生
658
平均合并
1 天 15 小时
30 天内合并 PR
168

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Flagsmith/flagsmith 的其他 Issue

查看 Flagsmith/flagsmith 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。