flipt-io / flipt

Enterprise-ready, GitOps enabled, CloudNative feature management solution
https://flipt.io
GNU General Public License v3.0
3.64k stars 200 forks source link

[Bug]: export fails on variant flag with no rules #3417

Open danilobuerger opened 1 month ago

danilobuerger commented 1 month ago

Bug Description

If you create a variant flag that does not have rules yet, the export will error out with

wrong format for rule segments

Version Info

1.48.1

Search

Steps to Reproduce

1) create a variant flag 2) export

Expected Behavior

The export should work even if there are no rules attached

Additional Context

No response

erka commented 1 month ago

Hi @danilobuerger. Thank you for your bug report

I can't repo the problem with your steps. This issue could happen when some rule has the reference to the deleted segment. This most-likely is related to #2403.