Skip to content

Avoid mutating adapter data during JSON export#1010

Merged
jnunemaker merged 2 commits into
mainfrom
fix-json-exporter-hash-mutation
Jul 8, 2026
Merged

Avoid mutating adapter data during JSON export#1010
jnunemaker merged 2 commits into
mainfrom
fix-json-exporter-hash-mutation

Conversation

@jnunemaker

Copy link
Copy Markdown
Collaborator

Summary

JSON export no longer risks changing adapter-owned feature data while preparing Set-backed gates for serialization. The exporter now builds a fresh feature structure for JSON output, preserving the existing export shape without feeding array-converted gates back into live adapter state.

Validation

bundle exec rspec spec/flipper/exporters/json/v1_spec.rb spec/flipper/exporters/json/export_spec.rb (8 examples, 0 failures).


Compound Engineering
GPT--5

@jnunemaker jnunemaker merged commit 7892d7b into main Jul 8, 2026
46 checks passed
@jnunemaker jnunemaker deleted the fix-json-exporter-hash-mutation branch July 8, 2026 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant